Skip to content

Commit

Permalink
Remove page title from pages which do not require it
Browse files Browse the repository at this point in the history
  • Loading branch information
anorthall committed Oct 24, 2023
1 parent 7268678 commit 7723ec0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
18 changes: 10 additions & 8 deletions app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,20 @@
</nav>
{% endif %}

<!-- Page display title -->
<div class="bg-light border-top border-bottom border-2 py-4">
<div class="container {% block display_title_container_class %}d-flex flex-column flex-lg-row justify-content-between align-items-center{% endblock %}">
<h1 class="{% block display_title_class %}fs-3 m-0 text-center{% endblock %}">{% block display_title %}caves.app{% endblock %}</h1>
{% block display_title_container %}
<!-- Page display title -->
<div class="bg-light border-top border-bottom border-2 py-4">
<div class="container {% block display_title_container_class %}d-flex flex-column flex-lg-row justify-content-between align-items-center{% endblock %}">
<h1 class="{% block display_title_class %}fs-3 m-0 text-center{% endblock %}">{% block display_title %}caves.app{% endblock %}</h1>

<div class="d-flex align-items-center justify-content-center">
<div class="text-muted fs-5">
{% block display_title_right %}{% endblock %}
<div class="d-flex align-items-center justify-content-center">
<div class="text-muted fs-5">
{% block display_title_right %}{% endblock %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}

{% block mobile_menu_container %}
<!-- Mobile top level menu -->
Expand Down
2 changes: 1 addition & 1 deletion app/templates/base_stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
{% load static %}

{% block title %}Statistics{% endblock %}
{% block display_title %}Statistics{% endblock %}
{% block display_title_container %}{% endblock %}
4 changes: 2 additions & 2 deletions app/templates/core/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{% load static %}
{% load markdownify %}

{% block title %}caves.app - help{% endblock %}
{% block display_title %}Help{% endblock %}
{% block title %}Help with caves.app{% endblock %}
{% block display_title_container %}{% endblock %}
{% block description %}Frequently asked questions about caves.app, and how to get help with the site.{% endblock %}

{% block main %}
Expand Down
4 changes: 2 additions & 2 deletions app/templates/core/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{% load users_tags %}
{% load markdownify %}

{% block title %}caves.app - news{% endblock %}
{% block display_title %}News{% endblock %}
{% block title %}News from caves.app{% endblock %}
{% block display_title_container %}{% endblock %}
{% block description %}Information about the latest updates to caves.app.{% endblock %}

{% block main %}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/logger/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% load humanize %}

{% block title %}Search caves.app{% endblock %}
{% block display_title %}Search{% endblock %}
{% block display_title_container %}{% endblock %}

{% block main %}
<form method="post" action="{% url 'log:search' %}">
Expand Down
2 changes: 1 addition & 1 deletion app/templates/logger/social_feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load markdownify %}

{% block title %}caves.app{% endblock %}
{% block display_title %}Recent trips{% endblock %}
{% block display_title_container %}{% endblock %}

{% block header_scripts %}
{% include "logger/_lightbox.html" %}
Expand Down

0 comments on commit 7723ec0

Please sign in to comment.