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: Created July 17, 2017, 12:42 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/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 noreferrer">
ire 2017/07/17 12:46:20 Not sure if we typically add this, but I read that
juliandoucette 2017/07/18 16:58:50 Does this apply to any href? - We may want the ref
ire 2017/07/19 12:55:22 From what I can tell it seems like a good idea to,
juliandoucette 2017/07/19 15:03:31 - I want to exclude `noreferrer` in this case - I
ire 2017/07/19 18:10:10 I agree. It definitely makes sense to have this au
ire 2017/07/19 18:10:10 Done.
+ {{ 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" class="external-icon">
juliandoucette 2017/07/18 16:58:50 - missing translate filter on alt text - the icon
ire 2017/07/19 12:55:22 Done.
+ </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>
« README.md ('K') | « includes/breadcrumbs.tmpl ('k') | pages/blog/first-update.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld