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

Side by Side Diff: includes/index/media.tmpl

Issue 29499714: Issue 4912 - Update media coverage links on eyeo.com (Closed) Base URL: https://hg.adblockplus.org/web.eyeo.com
Patch Set: Use macro, move external link icon to HTML Created Aug. 1, 2017, 9:58 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
OLDNEW
(Empty)
1 <h1 class="heading centered">
2 <span>Media coverage:</span>
3 </h1>
4
5 {% set media = [
juliandoucette 2017/08/01 23:07:33 NIT: I think "media" is a little too general / mis
ire 2017/08/02 10:35:59 Done.
6 {
7 "url": "http://www.mediapost.com/publications/article/289691/adblock-plus-co mes-to-new-york.html",
8 "publication": "Media Post",
juliandoucette 2017/08/01 23:07:33 NIT: Are these "publication"s? Suggest: author, pu
ire 2017/08/02 10:35:58 I think "publisher" works better. Author implies t
9 "image": "media-post"
10 },
11 {
12 "url": "https://www.nytimes.com/2015/08/20/technology/personaltech/ad-blocke rs-and-the-nuisance-at-the-heart-of-the-modern-web.html",
13 "publication": "The New York Times",
14 "image": "new-york-times"
15 },
16 {
17 "url": "https://www.wsj.com/articles/adblock-plus-chief-till-faida-says-cons umers-are-fed-up-with-current-online-ads-1462981668",
18 "publication": "The Wall Street Journal",
19 "image": "wall-street-journal"
20 },
21 {
22 "url": "https://techcrunch.com/2016/05/09/adblock-plus-closes-in-on-a-billio n-downloads/",
23 "publication": "TechCrunch",
24 "image": "techcrunch"
25 },
26 {
27 "url": "http://www.businessinsider.com/theres-nothing-wrong-about-the-way-ad block-plus-makes-money-2015-9",
28 "publication": "Business Insider",
29 "image": "business-insider"
30 }
31 ] %}
32
33 {% macro media_item(item) -%}
34 <a href="{{ item.url }}" target="_blank">
juliandoucette 2017/08/01 23:07:33 NIT: I think we should describe the action (openin
ire 2017/08/02 10:35:58 Done.
35 <img class="publication-logo" alt="{{ item.publication }} (Opens in a new wi ndow)" src="/images/coverage/{{ item.image }}-1x.png" srcset="/images/coverage/{ { item.image }}-2x.png 2x">
juliandoucette 2017/08/01 23:07:33 NIT: I think alt text is supposed to describe the
ire 2017/08/02 10:35:58 Agreed on using "{{ item.publication }} logo". I'
juliandoucette 2017/08/02 20:31:12 Acknowledged.
36 <img class="external-link-icon" src="/images/icon-external-link.png" srcset= "/images/icon-external-link.svg 2x" alt="">
ire 2017/08/01 10:04:06 I purposefully left a null alternative text here b
juliandoucette 2017/08/01 23:07:33 Acknowledged. I would suggest something like: al
ire 2017/08/02 10:35:59 Makes sense. I changed the alt, but added the titl
juliandoucette 2017/08/02 20:31:12 Acknowledged.
37 </a>
38 {% endmacro %}
39
40 <ul id="media-links">
41 {% for item in media %}
42 <li>{{ media_item(item) }}</li>
43 {% endfor %}
44 </ul>
OLDNEW
« no previous file with comments | « includes/index/media.md ('k') | includes/index/style.html » ('j') | includes/index/style.html » ('J')

Powered by Google App Engine
This is Rietveld