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

Delta Between Two Patch Sets: templates/default.tmpl

Issue 29551738: Issue 5634 - Replaced logo and refactored navbar width and colors (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Left Patch Set: Minor refactoring, added fonts, added install background-color Created Sept. 25, 2017, 3:48 p.m.
Right Patch Set: Addressed comments Created Oct. 11, 2017, 11:59 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « static/js/main.js ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 {# 1 {#
2 # This file is part of the Adblock Plus website, 2 # This file is part of the Adblock Plus website,
3 # Copyright (C) 2006-present eyeo GmbH 3 # Copyright (C) 2006-present eyeo GmbH
4 # 4 #
5 # Adblock Plus is free software: you can redistribute it and/or modify 5 # Adblock Plus is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License version 3 as 6 # it under the terms of the GNU General Public License version 3 as
7 # published by the Free Software Foundation. 7 # published by the Free Software Foundation.
8 # 8 #
9 # Adblock Plus is distributed in the hope that it will be useful, 9 # Adblock Plus is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 27 matching lines...) Expand all
38 {% if alternate_locale != locale %} 38 {% if alternate_locale != locale %}
39 <meta property="og:locale:alternate" content="{{ alternate_locale | to_o g_locale }}"> 39 <meta property="og:locale:alternate" content="{{ alternate_locale | to_o g_locale }}">
40 {% endif %} 40 {% endif %}
41 {% endfor %} 41 {% endfor %}
42 <meta property="og:url" content="{{ get_canonical_url(page | ignore_browsers ) }}"> 42 <meta property="og:url" content="{{ get_canonical_url(page | ignore_browsers ) }}">
43 43
44 {# twitter https://dev.twitter.com/cards/markup #} 44 {# twitter https://dev.twitter.com/cards/markup #}
45 <meta name="twitter:site" content="@AdblockPlus" /> 45 <meta name="twitter:site" content="@AdblockPlus" />
46 <meta name="twitter:creator" content="@AdblockPlus" /> 46 <meta name="twitter:creator" content="@AdblockPlus" />
47 47
48 <link rel="stylesheet" href="/css/defaults.css" class="cssfx">
48 <link rel="stylesheet" href="/css/main.css" class="cssfx"> 49 <link rel="stylesheet" href="/css/main.css" class="cssfx">
49 <link rel="stylesheet" href="/css/main-desktop.css" media="(min-width: 1000p x)" class="cssfx"> 50 <link rel="stylesheet" href="/css/main-desktop.css" media="(min-width: 1000p x)" class="cssfx">
50 <link rel="stylesheet" href="/css/main-mobile.css" media="(max-width: 1000px )"> 51 <link rel="stylesheet" href="/css/main-mobile.css" media="(max-width: 1000px )">
51 <link rel="apple-touch-icon" href="/img/favicon-large.png" /> 52 <link rel="apple-touch-icon" href="/img/favicon-large.png" />
52 53
53 <!--[if IE 8]> 54 <!--[if IE 8]>
54 <script src="/js/vendor/ie8.js"></script> 55 <script src="/js/vendor/ie8.js"></script>
55 <![endif]--> 56 <![endif]-->
56 57
57 {% block head %} 58 {% block head %}
(...skipping 11 matching lines...) Expand all
69 <link rel="stylesheet" href="/css/empty.css" class="cssfx"/> 70 <link rel="stylesheet" href="/css/empty.css" class="cssfx"/>
70 <![endif]--> 71 <![endif]-->
71 </head> 72 </head>
72 73
73 <body> 74 <body>
74 <noscript> 75 <noscript>
75 <link rel="stylesheet" href="/css/noscript-desktop.css" media="(min-width: 1000px)"/> 76 <link rel="stylesheet" href="/css/noscript-desktop.css" media="(min-width: 1000px)"/>
76 <link rel="stylesheet" href="/css/noscript-mobile.css" media="(max-width: 1000px)"/> 77 <link rel="stylesheet" href="/css/noscript-mobile.css" media="(max-width: 1000px)"/>
77 </noscript> 78 </noscript>
78 79
79 {% macro pageitem(pagename) %} 80 {% macro pageitem(name) %}
80 <li{{ " class=\"selected\"" if pagename == page else "" }}> 81 {% if name == page %}
81 {{ pagename | linkify }}{{ get_string(pagename, "menu") }}</a> 82 <li class="selected">{{get_string(name, "menu")}}</li>
82 </li> 83 {% else %}
84 <li>{{name|linkify}}{{get_string(name, "menu")}}</a></li>
85 {% endif %}
83 {% endmacro %} 86 {% endmacro %}
84 87
85 <nav class="navbar accent"> 88 <nav id="navbar">
86 <div class="container"> 89 <div class="navbar-container">
87 {{ "index" | linkify(class="navbar-brand") }} 90 {{ "index" | linkify(id="navbar-logo") }}
88 <img 91 <img
89 alt="{{ "Adblock Plus" | translate("logo-alt", "Logo alt text") }}" 92 src="/img/navbar-logo.png"
90 title="{{ "Adblock Plus" | translate("logo-title", "Logo tooltip tex t") }}" 93 srcset="/img/navbar-logo.svg 2x">
91 src="/img/header-logo.png" 94 <span>{{ "Adblock <strong>Plus</strong>" | translate("navbar-logo-text ", "Navbar logo text") }}</span>
92 srcset="/img/header-logo-2x.png">
93 </a> 95 </a>
94 <ul class="navbar-nav"> 96 <a href="#" id="navbar-menu-toggle">
95 {% for name in ["about", "features", "bugs", "contribute", "locale", " installation"] %} 97 <img
96 {% if name == "locale" %} 98 src="/img/menu-toggle.png"
97 <li id="language" class="dropdown"> 99 srcset="/img/menu-toggle.svg 2x">
98 <a href="#" id="current-language" class="dropdown-toggle"> 100 </a>
99 {{ config.get("langnames", locale) }} ({{ locale | upper }}) 101 <ul id="navbar-menu">
100 </a> 102 {% for pagename in ["about", "features", "bugs", "contribute"] %}
101 <ul id="language-selector" class="dropdown-menu secondary"> 103 <li>
102 {% for available_locale in available_locales %} 104 {{ pagename | linkify }}{{ get_string(pagename, "menu") }}</a>
103 <li class="language-entry"> 105 </li>
104 {{ page | linkify(available_locale) }}
105 {{ config.get("langnames", available_locale) }} ({{ avai lable_locale | upper }})
106 </a>
107 </li>
108 {% endfor %}
109 </ul>
110 </li>
111 {% elif name == "installation" %}
112 <li class="install-link">
113 {{ "index" | linkify }}{{ get_string("installation", "menu") }}< /a>
114 </li>
115 {% else %}
116 {{ pageitem(name) }}
117 {% endif %}
118 {% endfor %} 106 {% endfor %}
119 </ul> 107 <li id="navbar-locale-menubar">
120 <a href="#" id="hamburger"></a> 108 <a href="#" id="navbar-locale-selected">
121 </nav> 109 {{ config.get("langnames", locale) }} ({{ locale | to_og_locale | to_og_location }})
122 </header> 110 </a>
123 111 <ul id="navbar-locale-menu">
124 <div id="content" {% if localefile == "index" %}class="{{page}}"{% endif %}> 112 {% for available_locale in available_locales %}
113 <li>
114 {{ page | linkify(available_locale) }}
115 {{ config.get("langnames", available_locale) }} ({{ availabl e_locale | to_og_locale | to_og_location }})
116 </a>
117 </li>
118 {% endfor %}
119 </ul>{# #navbar-locale-menu #}
120 </li>
121 </ul>{# #navbar-menu #}
122 </div>{# .container #}
123 </nav>{# #navbar #}
124
125 <div id="content" class="container content {{ localefile == "index" and page }}">
125 {% if abbnotification %} 126 {% if abbnotification %}
126 <? include abb-notification ?> 127 <? include abb-notification ?>
127 {% endif %} 128 {% endif %}
128 {% if not noheading %} 129 {% if not noheading %}
129 <h1>{{title|translate("title")}}</h1> 130 <h1>{{title|translate("title")}}</h1>
130 {% endif %} 131 {% endif %}
131 132
132 {% if not notoc %} 133 {% if not notoc %}
133 {% macro toc(toclist) %} 134 {% macro toc(toclist) %}
134 <ul> 135 <ul>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 <a rel="nofollow" id="social-gplus" class="sprite" href="https://p lus.google.com/110020691898167279887"></a> 201 <a rel="nofollow" id="social-gplus" class="sprite" href="https://p lus.google.com/110020691898167279887"></a>
201 </li> 202 </li>
202 </ul> 203 </ul>
203 </section> 204 </section>
204 </div> 205 </div>
205 </footer> 206 </footer>
206 207
207 <script src="/js/main.js"></script> 208 <script src="/js/main.js"></script>
208 </body> 209 </body>
209 </html> 210 </html>
LEFTRIGHT

Powered by Google App Engine
This is Rietveld