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

Delta Between Two Patch Sets: pages/download.tmpl

Issue 29722640: Fixes #22 - Add download page (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Left Patch Set: Addressed comments #3 Created March 15, 2018, 9:30 a.m.
Right Patch Set: Addressed comments #17 Created April 3, 2018, 3:19 p.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 | « no previous file | static/css/main.css » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 title=Download Adblock Plus 1 title=Download Adblock Plus
saroyanm 2018/03/19 19:04:07 I assume having 2 steps installation from the home
ire 2018/03/20 07:25:26 This download page is more of a fallback in case t
saroyanm 2018/03/23 18:33:38 Noted
2 description=Get Adblock Plus for free on Firefox, Chrome, Opera, Safari, Android and iOS 2 description=Get Adblock Plus for free on Firefox, Chrome, Opera, Safari, Android and iOS
3 template=minimal 3 template=minimal
4 4
5 <head> 5 <head>
6 <style> 6 <style>
7 header img { 7 header img {
8 width: 4em; 8 width: 4em;
9 height: auto; 9 height: auto;
10 } 10 }
11 </style> 11 </style>
12 </head> 12 </head>
13 13
14 {% set supported_devices = [ 14 {% set supported_devices = [
15 { 15 {
16 "id": "desktop", 16 "id": "desktop",
17 "icons": ["device-desktop.png", "device-desktop-2x.png"], 17 "icons": { "1x": "device-desktop.png", "2x": "device-desktop-2x.png" },
18 "icon_alt": "Computer monitor and mouse icon", 18 "icon_alt": "Computer monitor and mouse icon",
19 "title": "Block ads on any desktop browser", 19 "title": "Block ads on any desktop browser",
20 "description": "By clicking any of the links below, you agree to our <a href =\"terms\">Terms of Use</a>.", 20 "description": "By clicking any of the links below, you agree to our " + "t erms" | linkify + "Terms of Use</a>.",
saroyanm 2018/03/19 19:04:07 Detail: We used to use a special function when we
ire 2018/03/20 07:25:25 Good suggestion! Done.
21 "platforms": [ 21 "platforms": [
22 { "name": "Chrome", "url": "https://chrome.google.com/webstore/detail/cfhd ojbkjhnklbpkdaibdccddilifddb" }, 22 { "name": "Chrome", "url": "https://chrome.google.com/webstore/detail/cfhd ojbkjhnklbpkdaibdccddilifddb" },
saroyanm 2018/03/19 19:04:07 Is that intentional that we are not using inline i
ire 2018/03/20 07:25:25 I will bring this up with Jeen
ire 2018/03/20 14:40:58 From Jeen's response it seems like the links here
saroyanm 2018/03/23 18:33:38 Yes, but in order the inline installation for the
ire 2018/03/26 07:29:07 Okay I think I was mixing up two different things
ire 2018/03/26 09:44:27 So Jeen confirmed that we are not using inline ins
23 { "name": "Firefox", "url": "https://update.adblockplus.org/latest/adblock plusfirefox.xpi" }, 23 { "name": "Firefox", "url": "https://update.adblockplus.org/latest/adblock plusfirefox.xpi" },
24 { "name": "Internet Explorer", "url": "https://update.adblockplus.org/late st/adblockplusie.exe" }, 24 { "name": "Internet Explorer", "url": "https://update.adblockplus.org/late st/adblockplusie.exe" },
25 { "name": "Safari", "url": "https://update.adblockplus.org/latest/adblockp lussafari.safariextz" }, 25 { "name": "Safari", "url": "https://update.adblockplus.org/latest/adblockp lussafari.safariextz" },
26 { "name": "Edge (beta)", "url": "https://www.microsoft.com/store/p/adblock -plus/9nblggh4r9nz" }, 26 { "name": "Edge (beta)", "url": "https://www.microsoft.com/store/p/adblock -plus/9nblggh4r9nz" },
27 { "name": "Opera", "url": "https://addons.opera.com/extensions/details/ope ra-adblock/?display=en-US" }, 27 { "name": "Opera", "url": "https://addons.opera.com/extensions/details/ope ra-adblock/" },
saroyanm 2018/03/19 19:04:07 Detail: No need to use language specific version o
ire 2018/03/20 07:25:26 Done.
28 { "name": "Maxthon", "url": "http://www.maxthon.com/mx5/features/ad-blocke r/" }, 28 { "name": "Maxthon", "url": "http://www.maxthon.com/mx5/features/ad-blocke r/" },
29 { "name": "Yandex Browser", "url": "https://chrome.google.com/webstore/det ail/cfhdojbkjhnklbpkdaibdccddilifddb" } 29 { "name": "Yandex Browser", "url": "https://chrome.google.com/webstore/det ail/cfhdojbkjhnklbpkdaibdccddilifddb" }
30 ] 30 ]
31 }, 31 },
32 { 32 {
33 "id": "mobile", 33 "id": "mobile",
34 "icons": ["device-mobile.png", "device-mobile.svg"], 34 "icons": { "1x": "device-mobile.png", "2x": "device-mobile.svg" },
35 "icon_alt": "Mobile icon", 35 "icon_alt": "Mobile icon",
36 "title": "Block ads in your mobile browser", 36 "title": "Block ads in your mobile browser",
37 "platforms": [ 37 "platforms": [
38 { "name": "Samsung Internet (Android)", "url": "https://play.google.com/st ore/apps/details?id=org.adblockplus.adblockplussbrowser&hl" }, 38 { "name": "Samsung Internet (Android)", "url": "https://play.google.com/st ore/apps/details?id=org.adblockplus.adblockplussbrowser&hl" },
39 { "name": "Safari (iOS)", "url": "https://itunes.apple.com/app/adblock-plu s-abp-remove-ads-browse-faster-without-tracking/id1028871868?mt=8" }, 39 { "name": "Safari (iOS)", "url": "https://itunes.apple.com/app/adblock-plu s-abp-remove-ads-browse-faster-without-tracking/id1028871868?mt=8" },
40 { "name": "Firefox", "url": "https://addons.mozilla.org/android/addon/adbl ock-plus/" } 40 { "name": "Firefox", "url": "https://addons.mozilla.org/android/addon/adbl ock-plus/" }
41 ] 41 ]
42 }, 42 },
43 { 43 {
44 "id": "abb", 44 "id": "abb",
45 "icons": ["abb-icon.png", "abb-icon-2x.png"], 45 "icons": { "1x": "abb-icon.png", "2x": "abb-icon-2x.png" },
saroyanm 2018/03/19 19:04:07 The small icon is 500px on 500px, as far as I can
ire 2018/03/20 07:25:26 You're right. i just copied the images from the sp
46 "icon_alt": "Adblock Browser logo", 46 "icon_alt": "Adblock Browser logo",
47 "title": "Block ads in a dedicated ad-blocking browser", 47 "title": "Block ads in a dedicated ad-blocking browser",
48 "platforms": [ 48 "platforms": [
49 { "name": "Adblock Browser (Android)", "url": "https://play.google.com/sto re/apps/details?id=org.adblockplus.browser" }, 49 { "name": "Adblock Browser (Android)", "url": "https://play.google.com/sto re/apps/details?id=org.adblockplus.browser" },
saroyanm 2018/03/19 19:04:07 We can use redirection links instead: https://adbl
ire 2018/03/20 07:25:26 Will bring this up with Jeen
50 { "name": "Adblock Browser (iOS)", "url": "https://itunes.apple.com/my/app /adblock-browser/id1015653330?mt=8&ign-itsct=1015653330-1015653330&ign-itscg=017 6&ign-mpt=uo%3D4" } 50 { "name": "Adblock Browser (iOS)", "url": "https://itunes.apple.com/my/app /adblock-browser/id1015653330?mt=8&ign-itsct=1015653330-1015653330&ign-itscg=017 6&ign-mpt=uo%3D4" }
51 ] 51 ]
52 } 52 }
53 ] %} 53 ] %}
54 54
55 <header class="bg-primary section content text-center"> 55 <header class="bg-primary section content text-center">
56 <div class="container"> 56 <div class="container">
57 <img height="90px" 57 <img height="90px"
58 width="90px" 58 width="90px"
59 src="/img/download-icon.png" 59 src="/img/download-icon.png"
60 srcset="/img/download-icon.svg 2x" 60 srcset="/img/download-icon.svg 2x"
61 alt="{{ "White down arrow" | translate("download-icon", "Alt text") }}" > 61 alt="{{ "White down arrow" | translate("download-icon", "Alt text") }}" >
62 <h1>{{ "Get Adblock Plus products on these devices" | translate("download-he ading", "Heading") }}</h1> 62 <h1>{{ "Get Adblock Plus products on these devices" | translate("download-he ading", "Heading") }}</h1>
63 <p>{{ "Supported platforms" | translate("download-subheading", "Subheading") }}</p> 63 <p>{{ "Supported platforms" | translate("download-subheading", "Subheading") }}</p>
64 </div> 64 </div>
65 </header> 65 </header>
66 66
67 <div class="item-group container text-center content"> 67 <div id="supported-devices" class="item-group container text-center content">
68 <div class="row"> 68 <div class="row">
69 {% for device in supported_devices %} 69 {% for device in supported_devices %}
70 <div class="column one-third"> 70 <div class="column one-third">
71 <img 71 <img
72 height="90px" 72 height="90px"
73 width="90px" 73 width="90px"
74 src="/img/{{ device.icons[0] }}" 74 src="/img/{{ device.icons['1x'] }}"
75 srcset="/img/{{ device.icons[1] }} 2x" 75 srcset="/img/{{ device.icons['2x'] }} 2x"
76 alt="{{ device.icon_alt | translate(device.id + "-icon-alt", "Alt text") }}"> 76 alt="{{ device.icon_alt | translate(device.id + "-icon-alt", "Alt text") }}">
77 <h2>{{ device.title | translate(device.id + "-title", "Heading") }}</h2> 77 <h2>{{ device.title | translate(device.id + "-title", "Heading") }}</h2>
78 <div> 78 <div>
79 {% if device.description %} 79 {% if device.description %}
80 <p>{{ device.description | safe | translate(device.id + "-description", "Paragraph") }}</p> 80 <p><small>{{ device.description | safe | translate(device.id + "-descrip tion", "Paragraph") }}</small></p>
81 {% endif %} 81 {% endif %}
82 <ul class="horizontal-list"> 82 <ul class="horizontal-list">
83 {% for platform in device.platforms %} 83 {% for platform in device.platforms %}
84 <li> 84 <li>
85 {% set platform_identifier = device.id + "-product-name-" + loop.i ndex | string %} 85 {% set platform_identifier = device.id + "-product-name-" + loop.i ndex | string %}
86 <a href="{{ platform.url }}">{{ platform.name | translate(platform _identifier, "Product name") }}</a>{{ ", " if loop.index != loop.length }} 86 <a href="{{ platform.url }}">{{ platform.name | translate(platform _identifier, "Product name") }}</a>{{ ", " if loop.index != loop.length }}
saroyanm 2018/03/19 19:04:06 Detail: There are some Browser names that are loca
ire 2018/03/20 07:25:25 I will bring this up with Tamara
ire 2018/03/20 14:40:58 According to Tamara we should not be using the fix
saroyanm 2018/03/23 18:33:39 Acknowledged.
87 </li> 87 </li>
88 {% endfor %} 88 {% endfor %}
89 </ul> 89 </ul>
90 </div> 90 </div>
91 </div> 91 </div>
92 {% endfor %} 92 {% endfor %}
93 </div> 93 </div>
94 </div> 94 </div>
LEFTRIGHT

Powered by Google App Engine
This is Rietveld