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

Side by Side Diff: includes/press/releases.tmpl

Issue 29334171: Issue 3410 - Added date sort / format for press releases (Closed)
Patch Set: Changed teamsort to be consistent with fixed import Created Feb. 4, 2016, 11:17 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
1 {% set releases = [ 1 {% set releases = [
2 ("September 30, 2015", "en", "First Free Ad Blocker on the Apple App Store Arr ives; The Adblock Autumn: Adblock Plus for iOS 2-nd from ABP this Month", "2015 -09-30-ABP_for_iOSApp-WEB.pdf"), 2 ["2015-09-30", "en", "First Free Ad Blocker on the Apple App Store Arrives; Th e Adblock Autumn: Adblock Plus for iOS 2-nd from ABP this Month", "2015-09-30-A BP_for_iOSApp-WEB.pdf"],
3 ("September 29, 2015", "en", "Adblock Plus To Invite An Independent Board to M anage 'Acceptable Ads' Program", "2015-09-29-AA_independent_board-WEB.pdf"), 3 ["2015-09-29", "en", "Adblock Plus To Invite An Independent Board to Manage 'A cceptable Ads' Program", "2015-09-29-AA_independent_board-WEB.pdf"],
4 ("September 15, 2015", "en", "Sweet 4­‐Peat for Users: Adblock Plus Victorious In Court Against Axel Springer", "2015-09-15-Cologne-lawsuitWIN-WEB.pdf"), 4 ["2015-09-15", "en", "Sweet 4­‐Peat for Users: Adblock Plus Victorious In Cour t Against Axel Springer", "2015-09-15-Cologne-lawsuitWIN-WEB.pdf"],
5 ("September 08, 2015", "en", "Adblock Plus beats Apple to the punch; Ships Adb lock Browser ahead of iOS 9", "2015-09-08-AdblockBrowserforiOSLaunch(POST)-WEB.p df"), 5 ["2015-09-08", "en", "Adblock Plus beats Apple to the punch; Ships Adblock Bro wser ahead of iOS 9", "2015-09-08-AdblockBrowserforiOSLaunch(POST)-WEB.pdf"],
6 ("September 08, 2015", "en", "Adblock Plus Escapes Exile; Returns to Google Pl ay Store", "2015-09-08-Adblock BrowserforAndroid(POST)-WEB.pdf"), 6 ["2015-09-08", "en", "Adblock Plus Escapes Exile; Returns to Google Play Store ", "2015-09-08-Adblock BrowserforAndroid(POST)-WEB.pdf"],
7 ("July 08, 2015", "en", "University Tests Adblock Plus on Enterprise Network; Finds 40% Traffic Reduction", "2015-07-08-ABP-SFUStudyWEB.pdf"), 7 ["2015-07-08", "en", "University Tests Adblock Plus on Enterprise Network; Fin ds 40% Traffic Reduction", "2015-07-08-ABP-SFUStudyWEB.pdf"],
8 ("May 19, 2015", "en", "Adblock Plus Builds First Mobile Browser From the Grou nd Up; Leaves Ad Industry With Nowhere to Hide", "2015-05-19-AdblockBrowserAndro idBeta-WEB.pdf"), 8 ["2015-05-19", "en", "Adblock Plus Builds First Mobile Browser From the Ground Up; Leaves Ad Industry With Nowhere to Hide", "2015-05-19-AdblockBrowserAndroid Beta-WEB.pdf"],
9 ("January 27, 2015", "en", "Adblock Plus for Internet Explorer Officially Out of Beta", "2015-01-27-Maxthon-US-WEB.pdf"), 9 ["2015-01-27", "en", "Adblock Plus for Internet Explorer Officially Out of Bet a", "2015-01-27-Maxthon-US-WEB.pdf"],
10 ("April 04, 2014", "en", "Research Study Finds 'Loud' Website Ads Do Not Work" , "2014-04-29-Eyetracking-WEB.pdf"), 10 ["2014-04-04", "en", "Research Study Finds 'Loud' Website Ads Do Not Work", "2 014-04-29-Eyetracking-WEB.pdf"],
11 ("October 10, 2013", "en", "Adblock Plus Available for Safari; Mac Owners Rejo ice", "2013-10-10-29-ABP-on-Safari-WEB.pdf"), 11 ["2013-10-10", "en", "Adblock Plus Available for Safari; Mac Owners Rejoice", "2013-10-10-29-ABP-on-Safari-WEB.pdf"],
12 ("September 30, 2015", "de", "Unabhängiges Gremium entscheidet bald über 'Acce ptable Ads' bei Adblock Plus", "2015-09-30-AAIndependentBoard_DE.pdf"), 12 ["2015-09-30", "de", "Unabhängiges Gremium entscheidet bald über 'Acceptable A ds' bei Adblock Plus", "2015-09-30-AAIndependentBoard_DE.pdf"],
13 ("September 29, 2015", "de", "4:0 für das Selbstbestimmungsrecht des Nutzers! Adblock Plus gewinnt Klage gegen Axel Springer vor Kölner Landgericht", "2015-09 -29-CologneLawsuit-DE.pdf"), 13 ["2015-09-29", "de", "4:0 für das Selbstbestimmungsrecht des Nutzers! Adblock Plus gewinnt Klage gegen Axel Springer vor Kölner Landgericht", "2015-09-29-Colo gneLawsuit-DE.pdf"],
14 ("September 10, 2015", "de", "Adblock Browser aus dem Exil entlassen - endlich zurück im Google Play Store!", "2015-09-10-Adblock_Browser_für_Android-DE.pdf") , 14 ["2015-09-10", "de", "Adblock Browser aus dem Exil entlassen - endlich zurück im Google Play Store!", "2015-09-10-Adblock_Browser_fur_Android-DE.pdf"],
15 ("September 08, 2015", "de", "Adblock Plus schneller dran als Apple - Adblock Browser kommt noch vor iOS 9!", "2015-09-08-Adblock_Browser_für_iOS_Launch-DE.pd f"), 15 ["2015-09-08", "de", "Adblock Plus schneller dran als Apple - Adblock Browser kommt noch vor iOS 9!", "2015-09-08-Adblock_Browser_fur_iOS_Launch-DE.pdf"],
16 ("September 08, 2015", "de", "Adblock Browser aus dem Exil entlassen - endlich zurück im Google Play Store!", "2015-09-08-Adblock_Browser_für_Android-DE.pdf") , 16 ["2015-09-08", "de", "Adblock Browser aus dem Exil entlassen - endlich zurück im Google Play Store!", "2015-09-08-Adblock_Browser_fur_Android-DE.pdf"],
17 ("July 03, 2015", "de", "Universität testet Adblock Plus auf Unternehmensnetzw erk und reduziert den Datenverbrauch damit um 40%", "2015-07-03-SFU_Press_Releas e-DE.pdf"), 17 ["2015-07-03", "de", "Universität testet Adblock Plus auf Unternehmensnetzwerk und reduziert den Datenverbrauch damit um 40%", "2015-07-03-SFU_Press_Release-D E.pdf"],
18 ("May 19, 2015", "de", "Werbeblocker 'Adblock Plus' launcht eigenen Android-Br owser", "2015-05-19-AdblockBrowserpressrelease-DE.pdf"), 18 ["2015-05-19", "de", "Werbeblocker 'Adblock Plus' launcht eigenen Android-Brow ser", "2015-05-19-AdblockBrowserpressrelease-DE.pdf"],
19 ("February 02, 2015", "de", "Maxthon und AdblockPlus schließen strategische Pa rtnerschaft zum Launch des ersten Browsers, der Werbung standardmäßig blockiert" , "2015-02-09-MaxthonPressRelease-DE.pdf"), 19 ["2015-02-02", "de", "Maxthon und AdblockPlus schließen strategische Partnersc haft zum Launch des ersten Browsers, der Werbung standardmäßig blockiert", "2015 -02-09-MaxthonPressRelease-DE.pdf"],
20 ("April 04, 2014", "de", "Erstaunliche neue Studie zur Werbewirkung: Dezente A nzeigen funktionieren besser", "2014-04-29-Eyetrackingtranslatedplusblog.pdf"), 20 ["2014-04-04", "de", "Erstaunliche neue Studie zur Werbewirkung: Dezente Anzei gen funktionieren besser", "2014-04-29-Eyetrackingtranslatedplusblog.pdf"],
21 ("June 06, 2013", "de", "Neue Studie zu Werbung im Netz: Kinder von Online­Anz eigen oftmals überfordert", "2013-06-20_KinderOnline-Werbung-DE.pdf"), 21 ["2013-06-06", "de", "Neue Studie zu Werbung im Netz: Kinder von Online­Anzeig en oftmals überfordert", "2013-06-20_KinderOnline-Werbung-DE.pdf"]
22 ] %} 22 ] %}
23 23
24 {% set languages = [ 24 {% set languages = [
25 ("en", "English"), 25 ("en", "English"),
26 ("de", "German"), 26 ("de", "German"),
27 ] %} 27 ] %}
28 28
29 {% for code, language in languages %} 29 {% for code, language in languages %}
30 <p> 30 <p>
31 <a href="#releases-{{code}}">{{language}}</a> 31 <a href="#releases-{{code}}">{{language}}</a>
32 </p> 32 </p>
33 {% endfor %} 33 {% endfor %}
34 34
35 {% for code, language in languages %} 35 {% for code, language in languages %}
36 <h3 id="releases-{{code}}">{{language}}</h3> 36 <h3 id="releases-{{code}}">{{language}}</h3>
37 <ul> 37 <ul>
38 {% for date, lang, title, file in releases %} 38 {% for date, lang, title, file in releases|datesort %}
39 {% if lang == code %} 39 {% if lang == code %}
40 <li> 40 <li>
41 <div>{{date}}</div> 41 <div>{{date|humanize_date}}</div>
42 <a href="/press/releases/{{code}}/{{file}}">{{title}}</a> 42 <a href="/press/releases/{{code}}/{{file}}">{{title}}</a>
43 </li> 43 </li>
44 {% endif %} 44 {% endif %}
45 {% endfor %} 45 {% endfor %}
46 </ul> 46 </ul>
47 {% endfor %} 47 {% endfor %}
OLDNEW
« filters/humanize_date.py ('K') | « filters/teamsort.py ('k') | pages/team.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld