[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [lego/master] Update navbar
commit eca6012cfb96add066e670bcb0a5102b764da029
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Tue Jun 25 17:05:34 2019 +0200
Update navbar
---
templates/navbar.html | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/templates/navbar.html b/templates/navbar.html
index ca26027..7514edc 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -9,7 +9,7 @@
<img alt="{{ 'The Tor Project' }}" src="{{ '/static/images/tor-logo@xxxxxx'|asseturl }}" >
<span class="sr-only">Tor Logo</span>
</a>
- <a href="https://donate.torproject.org" title="{{ _("Donate") }}"><h5><span class="badge badge-warning p-2">{{ _("Donate Now") }}</span></h5></a>
+ <a href="https://donate.torproject.org" title="{{ _("Donate") }}"><h4><span class="badge badge-warning p-2">{{ _("Donate Now") }}</span></h4></a>
<label for="nav-toggle">
<a class="btn btn-lg btn-primary navbar-toggler text-white p-3" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
{{ _("Menu") }} <span class="navbar-toggler-icon ml-1"></span>
@@ -46,11 +46,14 @@
{{ bag('alternatives', this.alt, 'language') }}
</button>
<div class="dropdown-menu">
- {% for id, item in bag('alternatives').items() %}
- {% if this.alt != id %}
- <a class="dropdown-item" href="{{ this.path|url(alt=id) }}">{{ item.language }}</a>
- {% endif %}
- {% endfor %}
+ {% set alts = bag('alternatives').items() %}
+ {% if alts|length > 1 %}
+ {% for id, item in bag('alternatives').items() %}
+ {% if this.alt != id %}
+ <a class="dropdown-item" href="{{ this.path|url(alt=id) }}">{{ item.language }}</a>
+ {% endif %}
+ {% endfor %}
+ {% endif %}
</div>
</div>
{% set download = site.get('/download') %}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits