diff options
author | tg(x) <*@tg-x.net> | 2017-01-19 16:10:35 +0100 |
---|---|---|
committer | tg(x) <*@tg-x.net> | 2017-01-19 16:10:35 +0100 |
commit | f6d6fdbb01b0ee90b2dafb615c1814588bd14d93 (patch) | |
tree | 09bddda329032197ca2e48c8e66fa328f6fcb3d3 /wallet.html.j2 | |
parent | 08f40842ceb608e96d28a646d71044d2c83b34fb (diff) | |
download | www-f6d6fdbb01b0ee90b2dafb615c1814588bd14d93.tar.gz www-f6d6fdbb01b0ee90b2dafb615c1814588bd14d93.zip |
i18n: rename template files
Diffstat (limited to 'wallet.html.j2')
-rw-r--r-- | wallet.html.j2 | 197 |
1 files changed, 197 insertions, 0 deletions
diff --git a/wallet.html.j2 b/wallet.html.j2 new file mode 100644 index 00000000..aa833d57 --- /dev/null +++ b/wallet.html.j2 | |||
@@ -0,0 +1,197 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head profile="http://www.w3.org/2005/10/profile"> | ||
4 | <meta charset="utf-8"/> | ||
5 | <title>{{ _("GNU Taler") }} - {{ _("Wallet") }}</title> | ||
6 | <meta name="description" content=""> | ||
7 | <!--# include file="common/header.inc" --> | ||
8 | |||
9 | <link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/millncjiddlpgdmkklmhfadpacifaonc" /> | ||
10 | <script src="web-common/taler-wallet-lib.js" type="text/javascript"></script> | ||
11 | |||
12 | <script type="application/javascript"> | ||
13 | /* | ||
14 | @licstart The following is the entire license notice for the | ||
15 | JavaScript code in this page. | ||
16 | |||
17 | Copyright (C) 2015 GNUnet e.V. | ||
18 | |||
19 | The JavaScript code in this page is free software: you can | ||
20 | redistribute it and/or modify it under the terms of the GNU | ||
21 | Lesser General Public License (GNU LGPL) as published by the Free Software | ||
22 | Foundation, either version 2.1 of the License, or (at your option) | ||
23 | any later version. The code is distributed WITHOUT ANY WARRANTY; | ||
24 | without even the implied warranty of MERCHANTABILITY or FITNESS | ||
25 | FOR A PARTICULAR PURPOSE. See the GNU LGPL for more details. | ||
26 | |||
27 | As additional permission under GNU LGPL version 2.1 section 7, you | ||
28 | may distribute non-source (e.g., minimized or compacted) forms of | ||
29 | that code without the copy of the GNU LGPL normally required by | ||
30 | section 4, provided you include this license notice and a URL | ||
31 | through which recipients can access the Corresponding Source. | ||
32 | |||
33 | @licend The above is the entire license notice | ||
34 | for the JavaScript code in this page. | ||
35 | */ | ||
36 | |||
37 | var chrome_min_version = '49'; | ||
38 | |||
39 | function onSuccess() { | ||
40 | console.log("installation successful"); | ||
41 | document.getElementById("install-result").appendChild(document.createTextNode("Installation was successful.")); | ||
42 | } | ||
43 | |||
44 | function onFailure(detail) { | ||
45 | console.error("installation failed:", detail); | ||
46 | document.getElementById("install-result").appendChild(document.createTextNode("Installation failed: " + detail)); | ||
47 | } | ||
48 | |||
49 | function installWallet() { | ||
50 | if (window.chrome) { | ||
51 | chrome.webstore.install("https://chrome.google.com/webstore/detail/millncjiddlpgdmkklmhfadpacifaonc", onSuccess, onFailure); | ||
52 | } else { | ||
53 | onFailure("Google Chrome or Chromium is required for installation."); | ||
54 | } | ||
55 | } | ||
56 | |||
57 | try { | ||
58 | taler.onPresent(function () { | ||
59 | document.getElementById("box-present").style.display = "inherit"; | ||
60 | document.getElementById("box-not-present").style.display = "none"; | ||
61 | }); | ||
62 | taler.onAbsent(function () { | ||
63 | document.getElementById("box-present").style.display = "none"; | ||
64 | document.getElementById("box-not-present").style.display = "inherit"; | ||
65 | }); | ||
66 | } catch (err) {} | ||
67 | |||
68 | function onLoad() { | ||
69 | if (typeof window.chrome != "object") { | ||
70 | document.getElementById("error-chrome").style.display = "inherit"; | ||
71 | } else { | ||
72 | var m = navigator.userAgent.match(/Chrome\/([0-9.]+)/); | ||
73 | if (null == m || m[1] < chrome_min_version) { | ||
74 | document.getElementById('chrome-min-version').appendChild(document.createTextNode(chrome_min_version)); | ||
75 | document.getElementById('error-chrome-version').style.display = "inherit"; | ||
76 | } | ||
77 | } | ||
78 | } | ||
79 | |||
80 | document.addEventListener('DOMContentLoaded', onLoad); | ||
81 | </script> | ||
82 | |||
83 | <style type="text/css"> | ||
84 | .greenbox { | ||
85 | background-color: #5EFF64; | ||
86 | border: solid; | ||
87 | border-radius: 5px; | ||
88 | padding: 0.5em; | ||
89 | } | ||
90 | .bluebox { | ||
91 | background-color: #C2C6FF; | ||
92 | border: solid; | ||
93 | border-radius: 5px; | ||
94 | padding: 0.5em; | ||
95 | } | ||
96 | .error { | ||
97 | font-style: italic; | ||
98 | display: none; | ||
99 | } | ||
100 | #install-result { | ||
101 | font-weight: bold; | ||
102 | } | ||
103 | |||
104 | main ul li { | ||
105 | margin-bottom: 1em; | ||
106 | } | ||
107 | </style> | ||
108 | </head> | ||
109 | |||
110 | <body class="en" onLoad="loadLang();"> | ||
111 | <div class="container"> | ||
112 | <!--# include file="common/navigation.inc" --> | ||
113 | <!-- Jumbotron --> | ||
114 | <div class="jumbotron"> | ||
115 | <h1 lang="en">Taler Wallet</h1> | ||
116 | </div> | ||
117 | |||
118 | <div class="row"> | ||
119 | <div class="col-lg-12"> | ||
120 | <p class="greenbox" id="box-present" style="display:none"> | ||
121 | Congratulations, you have installed the Taler wallet. | ||
122 | Check out the <a href="https://demo.taler.net/">demo</a>. | ||
123 | </p> | ||
124 | <p class="bluebox" id="box-not-present" style="display:none"> | ||
125 | You don't have a wallet installed yet. | ||
126 | </p> | ||
127 | </div> <!-- /col-lg-12 --> | ||
128 | </div> <!-- /row --> | ||
129 | |||
130 | <div class="row"> | ||
131 | <div class="col-lg-12"> | ||
132 | Install the wallet for your browser below, then check out the | ||
133 | <a href="https://demo.taler.net">demonstration</a>. | ||
134 | </div> | ||
135 | </div> <!-- /row --> | ||
136 | |||
137 | <div class="row"> | ||
138 | <div class="col-lg-6"> | ||
139 | <h2><a href="https://chrome.google.com/webstore/detail/gnu-taler-wallet/millncjiddlpgdmkklmhfadpacifaonc">Google Chrome / Chromium 49+</a></h2> | ||
140 | |||
141 | <p id="error-chrome" class="error"> | ||
142 | <a href="https://www.google.com/chrome">Google Chrome</a> or <a href="https://www.chromium.org/">Chromium</a> | ||
143 | is required, but it appears you don't have it installed. | ||
144 | </p> | ||
145 | <p id="error-chrome-version" class="error"> | ||
146 | <a href="https://www.google.com/chrome">Google Chrome</a> or <a href="https://www.chromium.org/">Chromium</a> | ||
147 | version <span id="chrome-min-version"></span> or newer is required, but it appears you have an older version.</p> | ||
148 | <div id="inline-install-chrome"> | ||
149 | <button onclick="installWallet()" id="install-button"> | ||
150 | Install wallet | ||
151 | </button> | ||
152 | <div id="install-result"></div> | ||
153 | </div> | ||
154 | </div> <!-- /col-lg-6 --> | ||
155 | |||
156 | <div class="col-lg-6"> | ||
157 | <h2><a href="https://addons.mozilla.org/en-US/firefox/addon/taler-wallet/">Mozilla Firefox 50+</a></h2> | ||
158 | <!-- | ||
159 | <h3>Firefox Beta</h3> | ||
160 | <ol> | ||
161 | <li><a href="/releases/taler-wallet/taler-wallet-stable.xpi">Download the wallet</a> (right click, Save Link As...)</li> | ||
162 | <li>On the <code>about:debugging</code> page, "Load temporary extension"</li> | ||
163 | </ol> | ||
164 | |||
165 | <h3>Firefox Developer Edition</h3> | ||
166 | <p>Either from the <code>about:debugging</code> page like above, or:</p> | ||
167 | <ol> | ||
168 | <li>On the <code>about:config</code> page set <code>xpinstall.signatures.required</code> to <code>false</code></li> | ||
169 | <li><a href="/releases/taler-wallet/taler-wallet-stable.xpi">Install the wallet</a></li> | ||
170 | </ol> | ||
171 | --> | ||
172 | </div> <!-- /col-lg-6 --> | ||
173 | |||
174 | <div class="col-lg-6"> | ||
175 | <h2>Opera 36+</h2> | ||
176 | |||
177 | <ol> | ||
178 | <li><a href="https://addons.opera.com/en/extensions/details/download-chrome-extension-9/">Install Download Chrome Extension</a></li> | ||
179 | <li><a href="https://chrome.google.com/webstore/detail/gnu-taler-wallet/millncjiddlpgdmkklmhfadpacifaonc">Install GNU Taler</a> from the Chrome Web Store</li> | ||
180 | </ol> | ||
181 | </div> <!-- /col-lg-6 --> | ||
182 | |||
183 | </div> <!-- /row --> | ||
184 | |||
185 | <div class="row"> | ||
186 | |||
187 | <div class="col-lg-6"> | ||
188 | <h2>Other browsers</h2> | ||
189 | <p>Wallets for other browsers will be provided in the near future.</p> | ||
190 | </div> <!-- /col-lg-6 --> | ||
191 | |||
192 | </div> <!-- /row --> | ||
193 | |||
194 | <!--# include file="common/footer.inc" --> | ||
195 | </div> <!-- /container --> | ||
196 | </body> | ||
197 | </html> | ||