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

Unified Diff: includes/sidebar/primary-navigation.tmpl

Issue 29490624: Issue 5373 - Remove the "blog" from acceptableads.com and link to blog.acceptableads.com (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Patch Set: Translate alt text, Fix icon size and colour Created July 19, 2017, 12:54 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 | « includes/breadcrumbs.tmpl ('k') | pages/blog/first-update.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: includes/sidebar/primary-navigation.tmpl
===================================================================
--- a/includes/sidebar/primary-navigation.tmpl
+++ b/includes/sidebar/primary-navigation.tmpl
@@ -13,22 +13,31 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with acceptableads.org. If not, see <http://www.gnu.org/licenses/>.
#}
<ul>
{% for sitemap_page, sitemap_parent, sitemap_children in sitemap %}
- <li class="{% if parent == sitemap_page or page == sitemap_page %} active {% endif %} {% if sitemap_children | length > 0 %} has-submenu {% endif %}">
- {{ sitemap_page | linkify }}{{ sitemap_parent | translate(sitemap_page, "Primary navigation label") }}</a>
- {% if sitemap_children | length > 0 %}
- <ul>
- {% for sitemap_page, sitemap_child in sitemap_children %}
- <li class="{% if page == sitemap_page %} active {% endif %}">
- {{ sitemap_page | linkify }}{{ sitemap_child | translate(sitemap_page, "Primary navigation label under \"" + sitemap_parent + "\"") }}</a>
- </li>
- {% endfor %}
- </ul>
- {% endif %}
- </li>
+ {% if 'http' in sitemap_page %}
+ <li>
+ <a href="{{ sitemap_page }}" target="_blank" rel="noopener">
+ {{ sitemap_parent | translate(sitemap_parent, "Primary navigation label") }}
+ <img src="/img/png/icon-external-link.png" srcset="/img/png/icon-external-link.png, /img/svg/icon-external-link.svg 2x" alt="{{ "External Link" | translate("external-link-icon", "Image alt text") }}" class="external-icon">
+ </a>
+ </li>
+ {% else %}
+ <li class="{% if parent == sitemap_page or page == sitemap_page %} active {% endif %} {% if sitemap_children | length > 0 %} has-submenu {% endif %}">
+ {{ sitemap_page | linkify }}{{ sitemap_parent | translate(sitemap_page, "Primary navigation label") }}</a>
+ {% if sitemap_children | length > 0 %}
+ <ul>
+ {% for sitemap_page, sitemap_child in sitemap_children %}
+ <li class="{% if page == sitemap_page %} active {% endif %}">
+ {{ sitemap_page | linkify }}{{ sitemap_child | translate(sitemap_page, "Primary navigation label under \"" + sitemap_parent + "\"") }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ </li>
+ {% endif %}
{% endfor %}
</ul>
« no previous file with comments | « includes/breadcrumbs.tmpl ('k') | pages/blog/first-update.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld