]> git.immae.eu Git - github/wallabag/wallabag.git/blob - themes/default/config.twig
bug fix #215: change language from config screen
[github/wallabag/wallabag.git] / themes / default / config.twig
1 {% extends "layout.twig" %}
2
3 {% block title %}{% trans "config" %}{% endblock %}
4 {% block menu %}
5 {% include '_menu.twig' %}
6 {% endblock %}
7 {% block content %}
8 <h2>{% trans "Poching a link" %}</h2>
9 <p>{% trans "You can poche a link by several methods:" %} (<a href="http://inthepoche.com/doc" title="{% trans "read the documentation" %}">?</a>)</p>
10 <ul>
11 <li>firefox: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/poche.xpi" title="download the firefox extension">{% trans "download the extension" %}</a></li>
12 <li>chrome: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/poche.crx" title="download the chrome extension">{% trans "download the extension" %}</a></li>
13 <li>android: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/Poche.apk" title="download the application">{% trans "download the application" %}</a></li>
14 <li>
15 <form method="get" action="index.php">
16 <label class="addurl" for="plainurl">{% trans "by filling this field" %}:</label>
17 <input required placeholder="Ex:mywebsite.com/article" class="addurl" id="plainurl" name="plainurl" type="url" />
18 <input type="submit" value="{% trans "poche it!" %}" />
19 </form>
20 </li>
21 <li>{% trans "bookmarklet: drag & drop this link to your bookmarks bar" %} <a id="bookmarklet" ondragend="this.click();" title="i am a bookmarklet, use me !" href="javascript:if(top['bookmarklet-url@inthepoche.com']){top['bookmarklet-url@inthepoche.com'];}else{(function(){var%20url%20=%20location.href%20||%20url;window.open('{{ poche_url }}?action=add&url='%20+%20btoa(url),'_self');})();void(0);}">{% trans "poche it!" %}</a></li>
22 </ul>
23
24 <h2>{% trans "Updating poche" %}</h2>
25 <ul>
26 <li>{% trans "your version" %} : <strong>{{ constant('POCHE') }}</strong></li>
27 <li>{% trans "latest stable version" %} : {{ prod }}. {% if compare_prod == -1 %}<strong><a href="http://inthepoche.com/">{% trans "a more recent stable version is available." %}</a></strong>{% else %}{% trans "you are up to date." %}{% endif %}</li>
28 {% if constant('DEBUG_POCHE') == 1 %}<li>{% trans "latest dev version" %} : {{ dev }}. {% if compare_dev == -1 %}<strong><a href="http://inthepoche.com/">{% trans "a more recent development version is available." %}</a></strong>{% else %}{% trans "you are up to date." %}{% endif %}</li>{% endif %}
29 </ul>
30
31 <h2>{% trans "Change your theme" %}</h2>
32 <form method="post" action="?updatetheme" name="changethemeform">
33 <fieldset class="w500p">
34 <div class="row">
35 <label class="col w150p" for="theme">{% trans "Theme:" %}</label>
36 <select class="col" id="theme" name="theme">
37 {% for theme in themes %}
38 <option value="{{ theme.name }}" {{ theme.current ? 'selected' : '' }}>{{ theme.name }}</option>
39 {% endfor %}
40 </select>
41 </div>
42 <div class="row mts txtcenter">
43 <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button>
44 </div>
45 </fieldset>
46 <input type="hidden" name="returnurl" value="{{ referer }}">
47 <input type="hidden" name="token" value="{{ token }}">
48 </form>
49
50 <h2>{% trans "Change your language" %}</h2>
51 <form method="post" action="?updatelanguage" name="changelanguageform">
52 <fieldset class="w500p">
53 <div class="row">
54 <label class="col w150p" for="language">{% trans "Language:" %}</label>
55 <select class="col" id="language" name="language">
56 {% for language in languages %}
57 <option value="{{ language.name }}" {{ language.current ? 'selected' : '' }}>{{ language.name }}</option>
58 {% endfor %}
59 </select>
60 </div>
61 <div class="row mts txtcenter">
62 <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button>
63 </div>
64 </fieldset>
65 <input type="hidden" name="returnurl" value="{{ referer }}">
66 <input type="hidden" name="token" value="{{ token }}">
67 </form>
68
69 <h2>{% trans "Change your password" %}</h2>
70 <form method="post" action="?config" name="loginform">
71 <fieldset class="w500p">
72 <div class="row">
73 <label class="col w150p" for="password">{% trans "New password:" %}</label>
74 <input class="col" type="password" id="password" name="password" placeholder="{% trans "Password" %}" tabindex="2">
75 </div>
76 <div class="row">
77 <label class="col w150p" for="password_repeat">{% trans "Repeat your new password:" %}</label>
78 <input class="col" type="password" id="password_repeat" name="password_repeat" placeholder="{% trans "Password" %}" tabindex="3">
79 </div>
80 <div class="row mts txtcenter">
81 <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button>
82 </div>
83 </fieldset>
84 <input type="hidden" name="returnurl" value="{{ referer }}">
85 <input type="hidden" name="token" value="{{ token }}">
86 </form>
87
88 <h2>{% trans "Import" %}</h2>
89 <p>{% trans "Please execute the import script locally, it can take a very long time." %}</p>
90 <p>{% trans "More infos in the official doc:" %} <a href="http://inthepoche.com/doc">inthepoche.com</a></p>
91 <ul>
92 <li><a href="./?import&amp;from=pocket">{% trans "import from Pocket" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('POCKET_FILE')) }}</li>
93 <li><a href="./?import&amp;from=readability">{% trans "import from Readability" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('READABILITY_FILE')) }}</li>
94 <li><a href="./?import&amp;from=instapaper">{% trans "import from Instapaper" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('INSTAPAPER_FILE')) }}</li>
95 </ul>
96
97 <h2>{% trans "Export your poche datas" %}</h2>
98 <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your poche datas." %}</p>
99 {% endblock %}