]> git.immae.eu Git - github/wallabag/wallabag.git/blob - themes/default/config.twig
Edited text
[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 "The token is empty, you have to generate it to use 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 {% endif %}
42
43 <h2>{% trans "Change your theme" %}</h2>
44 <form method="post" action="?updatetheme" name="changethemeform">
45 <fieldset class="w500p">
46 <div class="row">
47 <label class="col w150p" for="theme">{% trans "Theme:" %}</label>
48 <select class="col" id="theme" name="theme">
49 {% for theme in themes %}
50 <option value="{{ theme.name }}" {{ theme.current ? 'selected' : '' }}>{{ theme.name }}</option>
51 {% endfor %}
52 </select>
53 </div>
54 <div class="row mts txtcenter">
55 <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button>
56 </div>
57 </fieldset>
58 <input type="hidden" name="returnurl" value="{{ referer }}">
59 <input type="hidden" name="token" value="{{ token }}">
60 </form>
61
62 <h2>{% trans "Change your language" %}</h2>
63 <form method="post" action="?updatelanguage" name="changelanguageform">
64 <fieldset class="w500p">
65 <div class="row">
66 <label class="col w150p" for="language">{% trans "Language:" %}</label>
67 <select class="col" id="language" name="language">
68 {% for language in languages %}
69 <option value="{{ language.name }}" {{ language.current ? 'selected' : '' }}>{{ language.name }}</option>
70 {% endfor %}
71 </select>
72 </div>
73 <div class="row mts txtcenter">
74 <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button>
75 </div>
76 </fieldset>
77 <input type="hidden" name="returnurl" value="{{ referer }}">
78 <input type="hidden" name="token" value="{{ token }}">
79 </form>
80
81 {% if http_auth == 0 %}
82 <h2>{% trans "Change your password" %}</h2>
83 <form method="post" action="?config" name="loginform">
84 <fieldset class="w500p">
85 <div class="row">
86 <label class="col w150p" for="password">{% trans "New password:" %}</label>
87 <input class="col" type="password" id="password" name="password" placeholder="{% trans "Password" %}" tabindex="2">
88 </div>
89 <div class="row">
90 <label class="col w150p" for="password_repeat">{% trans "Repeat your new password:" %}</label>
91 <input class="col" type="password" id="password_repeat" name="password_repeat" placeholder="{% trans "Password" %}" tabindex="3">
92 </div>
93 <div class="row mts txtcenter">
94 <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button>
95 </div>
96 </fieldset>
97 <input type="hidden" name="returnurl" value="{{ referer }}">
98 <input type="hidden" name="token" value="{{ token }}">
99 </form>
100 {% endif %}
101
102 <h2>{% trans "Import" %}</h2>
103 <p>{% trans "Please execute the import script locally, it can take a very long time." %}</p>
104 <p>{% trans "More info in the official docs:" %} <a href="http://doc.inthepoche.com/">inthepoche.com</a></p>
105 <ul>
106 <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>
107 <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>
108 <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>
109 </ul>
110
111 <h2>{% trans "Export your poche data" %}</h2>
112 {% if constant('STORAGE') == 'sqlite' %}
113 <p><a href="?download" target="_blank">{% trans "Click here" %}</a> {% trans "to download your database." %}</p>{% endif %}
114 <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your poche data." %}</p>
115 {% endblock %}