templates: Fix duplicate inclusion of portico CSS.

Apparently, essentially every one of our landing pages extending
portico.html had two copies of portico.css included in their head
section; one from porticocustomhead (or the super of customhead) and
the other directly included.

Clean this up by removing all these duplicate inclusions of the
portico stylesheet.
This commit is contained in:
Tim Abbott
2018-04-24 08:45:31 -07:00
parent e86d5139bb
commit 697fd3c69b
17 changed files with 3 additions and 54 deletions

View File

@@ -5,10 +5,8 @@
<style media="screen"> <style media="screen">
.app.portico-page { padding-bottom: 0px; } .app.portico-page { padding-bottom: 0px; }
</style> </style>
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}
{% endblock %} {% endblock %}
{% block portico_content %} {% block portico_content %}

View File

@@ -1,11 +1,8 @@
{% extends "zerver/portico.html" %} {% extends "zerver/portico.html" %}
{% block customhead %} {% block customhead %}
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}
{% endblock %} {% endblock %}
{% block portico_content %} {% block portico_content %}

View File

@@ -5,10 +5,7 @@
{% endblock %} {% endblock %}
{% block customhead %} {% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}

View File

@@ -5,10 +5,7 @@
{% endblock %} {% endblock %}
{% block customhead %} {% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}

View File

@@ -5,13 +5,9 @@
{% endblock %} {% endblock %}
{% block customhead %} {% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}
{% endblock %} {% endblock %}
{% block portico_content %} {% block portico_content %}

View File

@@ -5,10 +5,7 @@
{% endblock %} {% endblock %}
{% block customhead %} {% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}

View File

@@ -2,7 +2,6 @@
{% block customhead %} {% block customhead %}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}
<style> <style>
@@ -10,7 +9,6 @@
padding-bottom: 0px; padding-bottom: 0px;
} }
</style> </style>
{% endblock %} {% endblock %}
{% block portico_content %} {% block portico_content %}

View File

@@ -5,10 +5,7 @@
{% endblock %} {% endblock %}
{% block customhead %} {% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}

View File

@@ -1,13 +1,9 @@
{% extends "zerver/portico.html" %} {% extends "zerver/portico.html" %}
{% block customhead %} {% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('integrations') }} {{ render_bundle('integrations') }}
{% endblock %} {% endblock %}
{% block hello_page_container %} hello-main{% endblock %} {% block hello_page_container %} hello-main{% endblock %}

View File

@@ -2,10 +2,8 @@
{% block customhead %} {% block customhead %}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}
{% endblock %} {% endblock %}
{% block portico_content %} {% block portico_content %}

View File

@@ -6,11 +6,9 @@
hence the name. hence the name.
#} #}
{% block customhead %}
{% stylesheet 'portico' %}
{% endblock %}
{% block porticocustomhead %} {% block porticocustomhead %}
{% stylesheet 'portico' %}
{{ render_bundle('translations') }}
{{ render_bundle('portico') }} {{ render_bundle('portico') }}
{% endblock %} {% endblock %}

View File

@@ -6,12 +6,9 @@
hence the name. hence the name.
#} #}
{% block customhead %} {% block porticocustomhead %}
{% stylesheet 'portico' %} {% stylesheet 'portico' %}
{{ render_bundle('translations') }} {{ render_bundle('translations') }}
{% endblock %}
{% block porticocustomhead %}
{{ render_bundle('portico') }} {{ render_bundle('portico') }}
{% endblock %} {% endblock %}

View File

@@ -5,13 +5,9 @@
{% endblock %} {% endblock %}
{% block customhead %} {% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}
{% endblock %} {% endblock %}
{% block portico_content %} {% block portico_content %}

View File

@@ -5,16 +5,12 @@
{% endblock %} {% endblock %}
{% block customhead %} {% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
<script> <script>
var contributors_list = {{ contrib|safe }}; var contributors_list = {{ contrib|safe }};
</script> </script>
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}
{% endblock %} {% endblock %}
{% block portico_content %} {% block portico_content %}

View File

@@ -3,10 +3,7 @@
{# Terms of Service. #} {# Terms of Service. #}
{% block customhead %} {% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}

View File

@@ -5,13 +5,9 @@
{% endblock %} {% endblock %}
{% block customhead %} {% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}
{% endblock %} {% endblock %}
{% block portico_content %} {% block portico_content %}

View File

@@ -2,10 +2,8 @@
{% block customhead %} {% block customhead %}
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %} {% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }} {{ render_bundle('landing-page') }}
{% endblock %} {% endblock %}
{% block portico_content %} {% block portico_content %}