aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/base.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-03-07 11:09:02 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-03-07 11:09:02 -0800
commitb7c189d3d6912c91874de54d44f6346adc635060 (patch)
tree737614edaa46fc3de52cabc9c9d419db5f453703 /python/fatcat_web/templates/base.html
parent49ac34c2b23ce586c19630999af9f72a976aa7df (diff)
downloadfatcat-b7c189d3d6912c91874de54d44f6346adc635060.tar.gz
fatcat-b7c189d3d6912c91874de54d44f6346adc635060.zip
clean up HTML whitespace
Diffstat (limited to 'python/fatcat_web/templates/base.html')
-rw-r--r--python/fatcat_web/templates/base.html24
1 files changed, 18 insertions, 6 deletions
diff --git a/python/fatcat_web/templates/base.html b/python/fatcat_web/templates/base.html
index 2a5e0dd6..d3353ca4 100644
--- a/python/fatcat_web/templates/base.html
+++ b/python/fatcat_web/templates/base.html
@@ -4,13 +4,21 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width">
- {# sorry this line is so long; don't want any whitespace #}
- <title>{% block title %}{% if config.FATCAT_DOMAIN.startswith('qa.') %}[QA] {% elif config.FATCAT_DOMAIN.startswith('dev.') %}[DEV] {% endif %}fatcat!{% endblock %}</title>
+ <title>{%- block title -%}
+ {%- if config.FATCAT_DOMAIN.startswith('qa.') -%}
+ {{- "[QA] " -}}
+ {%- elif config.FATCAT_DOMAIN.startswith('dev.') -%}
+ {{- "[DEV] " -}}
+ {%- endif -%}
+ fatcat!
+ {%- endblock -%}</title>
<meta name="referrer" content="origin-when-cross-origin">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.3.2/dist/semantic.min.css">
+ <link rel="stylesheet"
+ href="https://cdn.jsdelivr.net/npm/semantic-ui@2.3.2/dist/semantic.min.css"
+ crossorigin="anonymous">
<style>
- /* bnewbold: fix light grey bars in header */
+ {# bnewbold: fix light grey bars in header #}
.ui.inverted.menu .item:before { background: none; }
</style>
{% block extra_head %}{% endblock %}
@@ -112,8 +120,12 @@
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
- crossorigin="anonymous"></script>
-<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.3.2/dist/semantic.min.js"></script>
+ crossorigin="anonymous">
+</script>
+<script
+ src="https://cdn.jsdelivr.net/npm/semantic-ui@2.3.2/dist/semantic.min.js"
+ crossorigin="anonymous">
+</script>
{% block postscript %}{% endblock %}
</body>