summaryrefslogtreecommitdiff
path: root/template/wallet.html.j2
blob: abbb5a7337ecb0b663350914abb99b5da0136741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
{% extends "common/base.j2" %}

{% block head_content %}
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/millncjiddlpgdmkklmhfadpacifaonc" />
<script type="application/javascript">
/*
  @licstart  The following is the entire license notice for the
  JavaScript code in this page.

  Copyright (C) 2015-2020 Taler Systems SA

  The JavaScript code in this page is free software: you can
  redistribute it and/or modify it under the terms of the GNU
  Lesser General Public License (GNU LGPL) as published by the Free Software
  Foundation, either version 2.1 of the License, or (at your option)
  any later version.  The code is distributed WITHOUT ANY WARRANTY;
  without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE.  See the GNU LGPL for more details.

  As additional permission under GNU LGPL version 2.1 section 7, you
  may distribute non-source (e.g., minimized or compacted) forms of
  that code without the copy of the GNU LGPL normally required by
  section 4, provided you include this license notice and a URL
  through which recipients can access the Corresponding Source.

  @licend  The above is the entire license notice
  for the JavaScript code in this page.
*/

var chrome_min_version = 51;

function installWallet() {
    if (window.chrome) {
        chrome.webstore.install("https://chrome.google.com/webstore/detail/millncjiddlpgdmkklmhfadpacifaonc", onSuccess, onFailure);
    } else {
        onFailure("Google Chrome or Chromium is required for installation.");
    }
}

try {
    taler.onPresent(function () {
        document.getElementById("box-present").style.display = "inherit";
        document.getElementById("box-not-present").style.display = "none";
    });
    taler.onAbsent(function () {
        document.getElementById("box-present").style.display = "none";
        document.getElementById("box-not-present").style.display = "inherit";
    });
} catch (err) {}

function onLoad() {
    if (typeof window.chrome != "object") {
        document.getElementById("error-chrome").style.display = "inherit";
    } else {
        var m = navigator.userAgent.match(/Chrome\/([0-9.]+)/);
        if (null == m || m[1].split('.')[0] < chrome_min_version) {
            document.getElementById('chrome-min-version').appendChild(document.createTextNode(chrome_min_version));
            document.getElementById('error-chrome-version').style.display = "inherit";
        }
    }
}

document.addEventListener('DOMContentLoaded', onLoad);
</script>

<style type="text/css">
  .greenbox {
  background-color: #5EFF64;
  border: solid;
  border-radius: 5px;
  padding: 0.5em;
  }
  .bluebox {
  background-color: #C2C6FF;
  border: solid;
  border-radius: 5px;
  padding: 0.5em;
  }
  .error {
  font-style: italic;
  display: none;
  }
  #install-result {
  font-weight: bold;
  }

  main ul li {
  margin-bottom: 1em;
  }
</style>
{% endblock head_content %}

{% block body_content %}
<main id="maincontent">
    <div class="jumbotron">
      <div class="text-center">
      <h1 lang="en">{% trans %}Taler Wallet{% endtrans %}</h1>
      </div>
    </div>

  <div class="container">

    <div class="row">
      <div class="col-lg-12">
        <p class="greenbox" id="box-present" style="display:none">
          {% trans %}Congratulations, the Taler wallet is installed on your device.
          Check out the <a href="https://demo.taler.net/">demonstration</a>.{% endtrans %}
        </p>
        <p class="bluebox" id="box-not-present" style="display:none">
          {% trans %}You don&#39;t have a wallet installed yet.{% endtrans %}
        </p>
      </div>
    </div>

    <div class="row wallet-teaser-text">
      <div class="col-lg-12">
        {% trans %}Install the wallet for your browser below, then check out the
        <a href="https://demo.taler.net">demonstration</a>.
        The source code is provided <a href="https://taler.net/files/wallet/" target="_blank" rel="noopener noreferrer">here</a>.{% endtrans %}
      </div>
    </div>

    <div class="row extension">
      <div class="col-lg-6">
        <h2><a href="https://chrome.google.com/webstore/detail/gnu-taler-wallet/millncjiddlpgdmkklmhfadpacifaonc" target="_blank" rel="noopener noreferrer">
        {% trans %}Google Chrome / Chromium 51+{% endtrans %}</a></h2>

        <p id="error-chrome" class="error">
          {% trans %}<a href="https://www.google.com/chrome" target="_blank" rel="noopener noreferrer">Google Chrome</a> or
          <a href="https://www.chromium.org/" target="_blank" rel="noopener noreferrer">Chromium</a>
          is required, but it appears you don&#39;t have it installed.{% endtrans %}
        </p>
        <p id="error-chrome-version" class="error">
          {% trans %}<a href="https://www.google.com/chrome" target="_blank" rel="noopener noreferrer">Google Chrome</a> or
          <a href="https://www.chromium.org/" target="_blank" rel="noopener noreferrer">Chromium</a>
          version <span id="chrome-min-version"></span> or newer is required,
          but it appears you have an older version.{% endtrans %}
        </p>
        <div id="inline-install-chrome">
          <form target="_blank" action="https://chrome.google.com/webstore/detail/gnu-taler-wallet/millncjiddlpgdmkklmhfadpacifaonc">
            <button action="submit" class="install-button">
              {% trans %}Install wallet{% endtrans %}
            </button>
          </form>
          <noscript>
            <em style="color:darkred;">
              {% trans %}JavaScript is disabled, the installation won&#39;t work.{% endtrans %}
            </em>
          </noscript>
          <div id="install-result"></div>
        </div>
      </div>

      <div class="col-lg-6">
        <h2><a href="https://addons.mozilla.org/en-US/firefox/addon/taler-wallet/" target="_blank" rel="noopener noreferrer">
        {% trans %}Mozilla Firefox 57+{% endtrans %}</a></h2>
        <div id="inline-install-chrome">
          <form action="https://addons.mozilla.org/firefox/downloads/latest/taler-wallet/">
            <button action="submit" class="install-button">
              {% trans %}Install wallet{% endtrans %}
            </button>
          </form>
        </div>

        <!--
        <h3>Firefox Beta</h3>
        <ol>
          <li><a href="{{ url('releases/taler-wallet/taler-wallet-stable.xpi', virtual=True) }}">Download the wallet</a> (right click, Save Link As...)</li>
          <li>On the <code>about:debugging</code> page, "Load temporary extension"</li>
        </ol>

        <h3>Firefox Developer Edition</h3>
        <p>Either from the <code>about:debugging</code> page like above, or:</p>
        <ol>
          <li>On the <code>about:config</code> page set <code>xpinstall.signatures.required</code> to <code>false</code></li>
          <li><a href="/releases/taler-wallet/taler-wallet-stable.xpi">Install the wallet</a></li>
        </ol>
        -->
      </div>

      <div class="col-lg-6">
        <h2>{% trans %}Opera 36+{% endtrans %}</h2>

        <ol>
          <li>
            <a href="https://addons.opera.com/en/extensions/details/download-chrome-extension-9/" target="_blank" rel="noopener noreferrer">
              {% trans %}Install Download Chrome Extension{% endtrans %}
            </a>
          </li>
          <li>
            {% trans %}<a href="https://chrome.google.com/webstore/detail/gnu-taler-wallet/millncjiddlpgdmkklmhfadpacifaonc" target="_blank" rel="noopener noreferrer">
            Install the Taler wallet from the Chrome Web Store</a>{% endtrans %}
          </li>
        </ol>
      </div>

      <div class="col-lg-6">
        <h2>{% trans %}Android 4.4 (API 18) or later{% endtrans %}</h2>

        <ul>
          <li>
        <p>{% trans %}You can
        <a href="https://taler.net/files/wallet/wallet-nightly-debug-1667560285.apk" target="_blank" rel="noopener noreferrer">
        download the APK for Android</a> directly.{% endtrans %}</p>
          </li>
          <li>
            <a href="https://play.google.com/store/apps/details?id=net.taler.wallet" target="_blank" rel="noopener noreferrer">
                {% trans %}Install the Android App from Google App Store.{% endtrans %}
            </a>
          </li>
          <li>
            <a href="https://f-droid.org/en/packages/net.taler.wallet.fdroid/" target="_blank" rel="noopener noreferrer">
                {% trans %}Download the Android App from F-Droid (bypassing Google registration).{% endtrans %}
            </a>
          </li>
        </ul>
      </div>

    </div>

    <div class="row extension">

      <div class="col-lg-6">
        <h2>{% trans %}Other browsers{% endtrans %}</h2>
        <p>
          {% trans %}Wallets for other browsers will be provided in the near future.{% endtrans %}
        </p>
      </div>

      <div class="col-lg-6">
        <h2>iOS</h2>
        <p>
          {% trans %}The iOS wallet is in the
          <a href="https://apps.apple.com/app/taler-wallet/id6463440117">App Store</a>.{% endtrans %}
          </p>
        </p>
      </div>

    </div>
</div>
{% endblock body_content %}