Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: includes/navbar.tmpl

Issue 29611624: Issue 6047 - Updated templates and uninstalled pages (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Addressed comments Created Dec. 8, 2017, 4:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: includes/navbar.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/includes/navbar.tmpl
@@ -0,0 +1,38 @@
+{% from "macros/pageitem" import pageitem %}
+
+<nav id="navbar">
+ <div class="container">
+ {{ "index" | linkify(id="navbar-logo") }}
+ <img
+ src="/img/navbar-logo.png"
+ srcset="/img/navbar-logo.svg 2x">
+ <span>{{ "Adblock <strong>Plus</strong>" | translate("navbar-logo-text", "Navbar logo text") }}</span>
+ </a>
+ <a href="#" id="navbar-menu-toggle">
+ <img
+ src="/img/menu-toggle.png"
+ srcset="/img/menu-toggle.svg 2x">
+ </a>
+ <ul id="navbar-menu">
+ {% for pagename in ["about", "features", "bugs", "contribute"] %}
+ <li>
+ {{ pagename | linkify }}{{ get_string(pagename, "menu") }}</a>
+ </li>
+ {% endfor %}
+ <li id="navbar-locale-menubar">
+ <a href="#" id="navbar-locale-selected">
+ {{ config.get("langnames", locale) }} ({{ locale | to_og_locale | to_og_location }})
+ </a>
+ <ul id="navbar-locale-menu">
+ {% for available_locale in available_locales %}
+ <li>
+ {{ page | linkify(available_locale) }}
+ {{ config.get("langnames", available_locale) }} ({{ available_locale | to_og_locale | to_og_location }})
+ </a>
+ </li>
+ {% endfor %}
+ </ul>{# #navbar-locale-menu #}
+ </li>
+ </ul>{# #navbar-menu #}
+ </div>{# .container #}
+</nav>{# #navbar #}

Powered by Google App Engine
This is Rietveld