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

Unified Diff: templates/default.tmpl

Issue 29551734: Issue 5634 - Removed locale flags from abp.org header (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Created Sept. 21, 2017, 11:02 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
« no previous file with comments | « static/css/main.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/default.tmpl
===================================================================
--- a/templates/default.tmpl
+++ b/templates/default.tmpl
@@ -108,24 +108,24 @@
<input id="search-field" name="q" type="search">
<label id="search-field-label-button" for="search-field">
<button id="search-button" type="submit">{{get_string("search", "menu")}}</button>
</label>
</form>
</li>
<li id="language">
<div id="current-language">
- <div id="flag-{{locale}}" class="flag sprite"></div>
+ {{ config.get("langnames", locale) }} <span class="locale-code">({{ locale }})</span>
<span id="language-arrow" class="sprite"></span>
</div>
<ul id="language-selector">
- {% for lang in available_locales %}
+ {% for available_locale in available_locales %}
<li class="language-entry">
- {{page|linkify(lang)}}
- <div id="flag-{{lang}}" class="flag sprite"></div>{{config.get("langnames", lang)}}
+ {{ page | linkify(available_locale) }}
+ {{ config.get("langnames", available_locale) }} <span class="locale-code">({{ available_locale }})</span>
</a>
</li>
{% endfor %}
</ul>
</li>
</ul>
<a href="#" id="hamburger"></a>
</nav>
« no previous file with comments | « static/css/main.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld