Left: | ||
Right: |
OLD | NEW |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
3 <!DOCTYPE html [ | 3 <!DOCTYPE html [ |
4 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" > | 4 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" > |
5 %brandDTD; | 5 %brandDTD; |
6 <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> | 6 <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> |
7 %globalDTD; | 7 %globalDTD; |
8 <!ENTITY % fennecDTD SYSTEM "chrome://browser/locale/about.dtd"> | 8 <!ENTITY % fennecDTD SYSTEM "chrome://browser/locale/about.dtd"> |
9 %fennecDTD; | 9 %fennecDTD; |
10 ]> | 10 ]> |
11 | 11 |
12 <!-- This Source Code Form is subject to the terms of the Mozilla Public | 12 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
13 - License, v. 2.0. If a copy of the MPL was not distributed with this | 13 - License, v. 2.0. If a copy of the MPL was not distributed with this |
14 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> | 14 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
15 | 15 |
16 <html xmlns="http://www.w3.org/1999/xhtml"> | 16 <html xmlns="http://www.w3.org/1999/xhtml"> |
17 <head> | 17 <head> |
18 <meta name="viewport" content="width=480; initial-scale=.6667; user-scalable=n o"/> | 18 <meta name="viewport" content="width=480; initial-scale=.6667; user-scalable=n o"/> |
19 <title>&aboutPage.title;</title> | 19 <title>&aboutPage.title;</title> |
20 <link rel="stylesheet" href="chrome://browser/skin/aboutPage.css" type="text/c ss"/> | 20 <link rel="stylesheet" href="chrome://browser/skin/aboutAdblockBrowserPage.css " type="text/css"/> |
Felix Dahlke
2015/05/06 20:35:07
Nit: I guess I'd call it aboutPageAdblockBrowser.c
René Jeschke
2015/05/06 21:45:00
Too late to argue about this, though the name does
Felix Dahlke
2015/05/06 21:48:47
:D
| |
21 <link rel="icon" type="image/png" sizes="64x64" href="chrome://branding/conten t/favicon64.png" /> | 21 <link rel="icon" type="image/png" sizes="64x64" href="chrome://branding/conten t/favicon64.png" /> |
22 </head> | 22 </head> |
23 | 23 |
24 <body dir="&locale.dir;"> | 24 <body dir="&locale.dir;"> |
25 <div id="header"> | 25 <div id="banner"> |
26 <div id="wordmark"></div> | 26 <div id="header"> |
27 <p id="wordmark">Adblock <b>Browser</b></p> | |
27 #expand <p id="version">__MOZ_APP_VERSION__</p> | 28 #expand <p id="version">__MOZ_APP_VERSION__</p> |
28 </div> | 29 </div> |
29 | 30 |
30 <div id="banner"> | |
31 <div id="logo"/> | |
32 #ifdef MOZ_UPDATER | 31 #ifdef MOZ_UPDATER |
33 <div id="updateBox"> | 32 <div id="updateBox"> |
34 <a id="updateLink" href="" onclick="checkForUpdates();">&aboutPage.checkFo rUpdates.link;</a> | 33 <a id="updateLink" href="" onclick="checkForUpdates();">&aboutPage.checkFo rUpdates.link;</a> |
35 <span id="update-message-checking">&aboutPage.checkForUpdates.checking;</s pan> | 34 <span id="update-message-checking">&aboutPage.checkForUpdates.checking;</s pan> |
36 <span id="update-message-none">&aboutPage.checkForUpdates.none;</span> | 35 <span id="update-message-none">&aboutPage.checkForUpdates.none;</span> |
37 <span id="update-message-found" onclick="downloadUpdate()">&aboutPage.chec kForUpdates.available2;</span> | 36 <span id="update-message-found" onclick="downloadUpdate()">&aboutPage.chec kForUpdates.available2;</span> |
38 <span id="update-message-downloading">&aboutPage.checkForUpdates.downloadi ng;</span> | 37 <span id="update-message-downloading">&aboutPage.checkForUpdates.downloadi ng;</span> |
39 <span id="update-message-downloaded" onclick="installUpdate()">&aboutPage. checkForUpdates.downloaded2;</span> | 38 <span id="update-message-downloaded" onclick="installUpdate()">&aboutPage. checkForUpdates.downloaded2;</span> |
40 </div> | 39 </div> |
41 #endif | 40 #endif |
42 | 41 |
43 <div id="messages"> | 42 <div id="messages"> |
44 <p id="distributionAbout" hidden="true"/> | 43 <p id="distributionAbout" hidden="true"/> |
45 <p id="distributionID" hidden="true"/> | 44 <p id="distributionID" hidden="true"/> |
46 <p id="telemetry" hidden="true"> | 45 <p id="telemetry" hidden="true"> |
47 &aboutPage.warningVersion; | 46 &aboutPage.warningVersion; |
48 #ifdef MOZ_TELEMETRY_ON_BY_DEFAULT | 47 #ifdef MOZ_TELEMETRY_ON_BY_DEFAULT |
49 &aboutPage.telemetryStart;<a href="http://www.mozilla.org/">&aboutPage.t elemetryMozillaLink;</a>&aboutPage.telemetryEnd; | 48 &aboutPage.telemetryStart;<a href="http://www.mozilla.org/">&aboutPage.t elemetryMozillaLink;</a>&aboutPage.telemetryEnd; |
50 #endif | 49 #endif |
51 </p> | 50 </p> |
52 </div> | 51 </div> |
53 | 52 |
54 </div> | 53 </div> |
55 | 54 |
56 <ul id="aboutLinks"> | 55 <ul id="aboutLinks"> |
57 <div class="top-border"></div> | 56 <div class="top-border"></div> |
58 <li><a id="faqURL">&aboutPage.faq.label;</a></li> | 57 <li><a id="faqURL">&aboutPage.faq.label;</a></li> |
59 <li><a id="supportURL">&aboutPage.support.label;</a></li> | |
60 <li><a id="privacyURL">&aboutPage.privacyPolicy.label;</a></li> | 58 <li><a id="privacyURL">&aboutPage.privacyPolicy.label;</a></li> |
61 <li><a href="about:rights">&aboutPage.rights.label;</a></li> | |
62 <li><a id="releaseNotesURL">&aboutPage.relNotes.label;</a></li> | |
63 <li><a id="creditsURL">&aboutPage.credits.label;</a></li> | 59 <li><a id="creditsURL">&aboutPage.credits.label;</a></li> |
64 <li><a href="about:license">&aboutPage.license.label;</a></li> | 60 <li><a href="about:license">&aboutPage.license.label;</a></li> |
65 <div class="bottom-border"></div> | 61 <div class="bottom-border"></div> |
66 </ul> | 62 </ul> |
67 | 63 |
68 <div id="aboutDetails"> | 64 <div id="aboutDetails"> |
69 <p>&logoTrademark;</p> | 65 <p>&logoTrademark;</p> |
70 </div> | 66 </div> |
71 | 67 |
72 <script type="application/javascript;version=1.8"><![CDATA[ | 68 <script type="application/javascript;version=1.8"><![CDATA[ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 } | 100 } |
105 } catch (e) { | 101 } catch (e) { |
106 // Pref is unset | 102 // Pref is unset |
107 } | 103 } |
108 | 104 |
109 // get URLs from prefs | 105 // get URLs from prefs |
110 try { | 106 try { |
111 let formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"].getServ ice(Ci.nsIURLFormatter); | 107 let formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"].getServ ice(Ci.nsIURLFormatter); |
112 | 108 |
113 let links = [ | 109 let links = [ |
114 {id: "releaseNotesURL", pref: "app.releaseNotesURL"}, | |
115 {id: "supportURL", pref: "app.support.baseURL"}, | |
116 {id: "faqURL", pref: "app.faqURL"}, | 110 {id: "faqURL", pref: "app.faqURL"}, |
117 {id: "privacyURL", pref: "app.privacyURL"}, | 111 {id: "privacyURL", pref: "app.privacyURL"}, |
118 {id: "creditsURL", pref: "app.creditsURL"}, | 112 {id: "creditsURL", pref: "app.creditsURL"}, |
119 ]; | 113 ]; |
120 | 114 |
121 links.forEach(function (link) { | 115 links.forEach(function (link) { |
122 let url = formatter.formatURLPref(link.pref); | 116 let url = formatter.formatURLPref(link.pref); |
123 let element = document.getElementById(link.id); | 117 let element = document.getElementById(link.id); |
124 element.setAttribute("href", url); | 118 element.setAttribute("href", url); |
125 }); | 119 }); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
205 break; | 199 break; |
206 case "DOWNLOADED": | 200 case "DOWNLOADED": |
207 downloadedSpan.style.display = "block"; | 201 downloadedSpan.style.display = "block"; |
208 break; | 202 break; |
209 } | 203 } |
210 } | 204 } |
211 #endif | 205 #endif |
212 ]]></script> | 206 ]]></script> |
213 </body> | 207 </body> |
214 </html> | 208 </html> |
OLD | NEW |