]> git.immae.eu Git - github/wallabag/wallabag.git/blob - themes/default/config.twig
Merge pull request #391 from Newinx/master
[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 links" %}</h2>
9 <p>{% trans "There are several ways to poche a link:" %} (<a href="http://doc.inthepoche.com/" title="{% trans "read the documentation" %}">?</a>)</p>
10 <ul>
11 <li>Firefox: <a href="https://addons.mozilla.org/firefox/addon/poche/" title="download the firefox extension">{% trans "download the extension" %}</a></li>
12 <li>Chrome: <a href="http://doc.inthepoche.com/doku.php?id=users:chrome_extension" title="download the chrome extension">{% trans "download the extension" %}</a></li>
13 <li>Android: <a href="https://f-droid.org/repository/browse/?fdid=fr.gaulupeau.apps.Poche" title="download the application">{% trans "via F-Droid" %}</a> {% trans " or " %} <a href="https://play.google.com/store/apps/details?id=fr.gaulupeau.apps.InThePoche" title="download the application">{% trans "via Google Play" %}</a></li>
14 <li>Windows Phone: <a href="https://www.windowsphone.com/en-us/store/app/poche/334de2f0-51b5-4826-8549-a3d805a37e83" title="download the window phone application">{% trans "download the application" %}</a></li>
15 <li>
16 <form method="get" action="index.php">
17 <label class="addurl" for="plainurl">{% trans "By filling this field" %}:</label>
18 <input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" />
19 <input type="submit" value="{% trans "poche it!" %}" />
20 </form>
21 </li>
22 <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>
23 </ul>
24
25 <h2>{% trans "Updating poche" %}</h2>
26 <ul>
27 <li>{% trans "Installed version" %} : <strong>{{ constant('POCHE') }}</strong></li>
28 <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>
29 {% 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 %}
30 </ul>
31
32 <h2>{% trans "Feeds" %}</h2>
33 {% if token == '' %}
34 <p>{% trans "Your feed token is currently empty and must first be generated to enable feeds. Click <a href='?feed&amp;action=generate'>here to generate it</a>." %}</p>
35 {% else %}
36 <ul>
37 <li><a href="?feed&amp;type=home&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "Unread feed" %}</a></li>
38 <li><a href="?feed&amp;type=fav&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "Favorites feed" %}</a></li>
39 <li><a href="?feed&amp;type=archive&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "Archive feed" %}</a></li>
40 </ul>
41 <p>{% trans "You can regenerate your token: <a href='?feed&amp;action=generate'>generate!</a>." %}</p>
42 {% endif %}
43
44 <h2>{% trans "Change your theme" %}</h2>
45 <form method="post" action="?updatetheme" name="changethemeform">
46 <fieldset class="w500p">
47 <div class="row">
48 <label class="col w150p" for="theme">{% trans "Theme:" %}</label>
49 <select class="col" id="theme" name="theme">
50 {% for theme in themes %}
51 <option value="{{ theme.name }}" {{ theme.current ? 'selected' : '' }}>{{ theme.name }}</option>
52 {% endfor %}
53 </select>
54 </div>
55 <div class="row mts txtcenter">
56 <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button>
57 </div>
58 </fieldset>
59 <input type="hidden" name="returnurl" value="{{ referer }}">
60 <input type="hidden" name="token" value="{{ token }}">
61 </form>
62
63 <h2>{% trans "Change your language" %}</h2>
64 <form method="post" action="?updatelanguage" name="changelanguageform">
65 <fieldset class="w500p">
66 <div class="row">
67 <label class="col w150p" for="language">{% trans "Language:" %}</label>
68 <select class="col" id="language" name="language">
69 {% for language in languages %}
70 <option value="{{ language.name }}" {{ language.current ? 'selected' : '' }}>{{ language.name }}</option>
71 {% endfor %}
72 </select>
73 </div>
74 <div class="row mts txtcenter">
75 <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button>
76 </div>
77 </fieldset>
78 <input type="hidden" name="returnurl" value="{{ referer }}">
79 <input type="hidden" name="token" value="{{ token }}">
80 </form>
81
82 {% if http_auth == 0 %}
83 <h2>{% trans "Change your password" %}</h2>
84 <form method="post" action="?config" name="loginform">
85 <fieldset class="w500p">
86 <div class="row">
87 <label class="col w150p" for="password">{% trans "New password:" %}</label>
88 <input class="col" type="password" id="password" name="password" placeholder="{% trans "Password" %}" tabindex="2">
89 </div>
90 <div class="row">
91 <label class="col w150p" for="password_repeat">{% trans "Repeat your new password:" %}</label>
92 <input class="col" type="password" id="password_repeat" name="password_repeat" placeholder="{% trans "Password" %}" tabindex="3">
93 </div>
94 <div class="row mts txtcenter">
95 <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button>
96 </div>
97 </fieldset>
98 <input type="hidden" name="returnurl" value="{{ referer }}">
99 <input type="hidden" name="token" value="{{ token }}">
100 </form>
101 {% endif %}
102
103 <h2>{% trans "Import" %}</h2>
104 <p>{% trans "Please execute the import script locally as it can take a very long time." %}</p>
105 <p>{% trans "More info in the official docs:" %} <a href="http://doc.inthepoche.com/doku.php?id=users:migrate">inthepoche.com</a></p>
106 <ul>
107 <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>
108 <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>
109 <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>
110 <li><a href="./?import&amp;from=poche">{% trans "Import from poche" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('POCHE_FILE')) }}</li>
111 </ul>
112
113 <h2>{% trans "Export your poche data" %}</h2>
114 {% if constant('STORAGE') == 'sqlite' %}
115 <p><a href="?download" target="_blank">{% trans "Click here" %}</a> {% trans "to download your database." %}</p>{% endif %}
116 <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your poche data." %}</p>
117 {% endblock %}