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

Side by Side Diff: templates/article.tmpl

Issue 29588588: Issue 5848 - Fix vertical alignment on .heading-icon images in help.eyeo.com (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Patch Set: Rebased Created Oct. 26, 2017, 10:29 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « static/scss/main.scss ('k') | templates/product-home.tmpl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% extends "templates/minimal" %} 1 {% extends "templates/minimal" %}
2 2
3 {% set product = products[product_id] %} 3 {% set product = products[product_id] %}
4 4
5 {% block body %} 5 {% block body %}
6 <nav aria-label="{{ "Breadcrumb" | translate("breadcrumb-label", "Label") }}" cl ass="breadcrumb"> 6 <nav aria-label="{{ "Breadcrumb" | translate("breadcrumb-label", "Label") }}" cl ass="breadcrumb">
7 <ol class="container clearfix" itemscope itemtype="http://schema.org/Breadcrum bList"> 7 <ol class="container clearfix" itemscope itemtype="http://schema.org/Breadcrum bList">
8 <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListIte m"> 8 <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListIte m">
9 <a itemscope itemtype="http://schema.org/Thing" itemprop="item" href="{{ p roduct.slug }}"> 9 <a class="aside-icon-container" itemscope itemtype="http://schema.org/Thin g" itemprop="item" href="{{ product.slug }}">
10 <img class="heading-icon" src="/img/png/logo-{{ product_id }}.png" srcse t="/img/svg/logo-{{ product_id }}.svg 2x" alt="{{ product.full_name+" Logo" | tr anslate(product_id+"-logo-alt", "Image alt text") }}"> 10 <img src="/img/png/logo-{{ product_id }}.png" srcset="/img/svg/logo-{{ p roduct_id }}.svg 2x" alt="{{ product.full_name+" Logo" | translate(product_id+"- logo-alt", "Image alt text") }}">
11 <span itemprop="name">{{ product.full_name | translate(product_id+"-name ", "Product name") }}</span> 11 <span itemprop="name">{{ product.full_name | translate(product_id+"-name ", "Product name") }}</span>
12 </a> 12 </a>
13 <meta itemprop="position" content="1" /> 13 <meta itemprop="position" content="1" />
14 </li> 14 </li>
15 <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListIte m"> 15 <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListIte m">
16 <a itemscope itemtype="http://schema.org/Thing" itemprop="item" href="{{ p age }}" aria-current="page"> 16 <a itemscope itemtype="http://schema.org/Thing" itemprop="item" href="{{ p age }}" aria-current="page">
17 <span itemprop="name">{{ title | translate(get_page_name(page) + "-title ", "Article title") }}</span> 17 <span itemprop="name">{{ title | translate(get_page_name(page) + "-title ", "Article title") }}</span>
18 </a> 18 </a>
19 <meta itemprop="position" content="2" /> 19 <meta itemprop="position" content="2" />
20 </li> 20 </li>
21 </ol> 21 </ol>
22 </nav> 22 </nav>
23 23
24 <main id="main" class="container clearfix"> 24 <main id="main" class="container clearfix">
25 <article class="article card {{ product_id }}-card section column two-thirds"> 25 <article class="article card {{ product_id }}-card section column two-thirds">
26 <h1 class="article-heading"> 26 <header class="article-heading">
27 <img class="heading-icon" src="/img/png/logo-{{ product_id }}.png" srcse t="/img/svg/logo-{{ product_id }}.svg 2x" alt="{{ product.full_name+" Logo" | tr anslate( product_id+"-logo-alt", "Image alt text") }}"> 27 <h1 class="aside-icon-container">
28 <img src="/img/png/logo-{{ product_id }}.png" srcset="/img/svg/logo-{{ p roduct_id }}.svg 2x" alt="{{ product.full_name+" Logo" | translate( product_id+" -logo-alt", "Image alt text") }}">
28 29
29 {{ title | translate( get_page_name(page) + "-title", "Article title") } } 30 <span>{{ title | translate( get_page_name(page) + "-title", "Article tit le") }}</span>
30 </h1> 31 </h1>
31 32 </header>
32 {% if hide_browser_selector is not defined %}
33 <div class="article-browser-selector">
34 [Browser selector]
35 </div>
36 {% endif %}
37 33
38 <div class="article-body content"> 34 {% if hide_browser_selector is not defined %}
39 {{ body | safe }} 35 <div class="article-browser-selector">
40 </div> 36 [Browser selector]
37 </div>
38 {% endif %}
39
40 <div class="article-body content">
41 {{ body | safe }}
42 </div>
41 </article> 43 </article>
42 <aside class="section column one-third"> 44 <aside class="section column one-third">
43 <? include product-topics-accordion ?> 45 <? include product-topics-accordion ?>
44 </aside> 46 </aside>
45 </main> 47 </main>
46 48
47 <script id="no-content-for-platform-message" type="text/template"> 49 <script id="no-content-for-platform-message" type="text/template">
48 <p>{{ "Unfortunately, there is no content specific for your current browser. P lease use the dropdown menu above to choose a different browser." | translate("n o-content-for-platform-message", "paragraph") }}</p> 50 <p>{{ "Unfortunately, there is no content specific for your current browser. P lease use the dropdown menu above to choose a different browser." | translate("n o-content-for-platform-message", "paragraph") }}</p>
49 </script> 51 </script>
50 {% endblock %} 52 {% endblock %}
51 53
52 {% block footer %} 54 {% block footer %}
53 <? include contact ?> 55 <? include contact ?>
54 {% endblock %} 56 {% endblock %}
OLDNEW
« no previous file with comments | « static/scss/main.scss ('k') | templates/product-home.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld