Skip to content

Commit

Permalink
Mark tab_title as required, retitle index.html to 'Welcome'
Browse files Browse the repository at this point in the history
  • Loading branch information
skyvine committed Feb 14, 2023
1 parent ac3259c commit 8ffd659
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion securedrop/journalist_templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block tab_title %}{% endblock %} | {{ g.organization_name }}</title>
<title>{% block tab_title required %}{% endblock %} | {{ g.organization_name }}</title>

<link rel="stylesheet" href="/static/css/journalist.css">

Expand Down
2 changes: 1 addition & 1 deletion securedrop/source_templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex,nofollow">
{% if g.organization_name == "SecureDrop" %}
<title>{% block tab_title %}{% endblock %} | {{ g.organization_name }} | {{ gettext('Protecting Journalists and Sources') }}</title>
<title>{% block tab_title required %}{% endblock %} | {{ g.organization_name }} | {{ gettext('Protecting Journalists and Sources') }}</title>
{% else %}
<title>{{ self.tab_title() }} | {{ g.organization_name }} | {{ gettext('SecureDrop') }}</title>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions securedrop/source_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

<head>
{% if g.organization_name == "SecureDrop" %}
<title>Portal | {{ g.organization_name }} | {{ gettext('Protecting Journalists and Sources') }}</title>
<title>{{ gettext('Welcome') }} | {{ g.organization_name }} | {{ gettext('Protecting Journalists and Sources') }}</title>
{% else %}
<title>Portal | {{ g.organization_name }} | {{ gettext('SecureDrop') }}</title>
<title>{{ gettext('Welcome') }} | {{ g.organization_name }} | {{ gettext('SecureDrop') }}</title>
{% endif %}

<link rel="stylesheet" href="/static/css/source.css">
Expand Down

0 comments on commit 8ffd659

Please sign in to comment.