Skip to content

Commit

Permalink
do no show some menu items in the footer
Browse files Browse the repository at this point in the history
It takes more space in some languages.

Fixes #1640
  • Loading branch information
nijel committed Nov 2, 2023
1 parent 3399b9f commit f0bae5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion weblate_web/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
-->
</div>
{% include "snippets/languages.html" %}
{% include "snippets/main-menu.html" with full_menu=1 %}
{% include "snippets/main-menu.html" with footer=1 %}
<div class="clear"></div>
<div class="footer-center">
<a href="https://status.weblate.org/" class="service-status">{% trans "Service Status" %}</a>
Expand Down
2 changes: 1 addition & 1 deletion weblate_web/templates/snippets/main-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<li class="{% if request.resolver_match.url_name == 'hosting' %} active{% endif %}"><a href="{% url 'hosting' %}">{% trans "Pricing" %}</a></li>
<li class="{% if request.resolver_match.url_name == 'contribute' %} active{% endif %}"><a href="{% url 'contribute' %}">{% trans "Contribute" %}</a></li>
<li class="{% if request.resolver_match.url_name == 'donate' or request.resolver_match.url_name == 'donate-new' %} active{% endif %}"><a href="{% url 'donate' %}">{% trans "Donate" %}</a></li>
{% if full_menu %}
{% if full_menu or footer%}
<li class="{% if request.resolver_match.url_name == 'careers' %} active{% endif %}"><a href="{% url 'careers' %}">{% trans "Careers" %}</a></li>
{% endif %}
{% if full_menu %}
Expand Down

0 comments on commit f0bae5a

Please sign in to comment.