]>
Commit | Line | Data |
---|---|---|
4cc3c2ac NL |
1 | {% extends "layout.twig" %} |
2 | ||
3 | {% block title %}{% trans "config" %}{% endblock %} | |
4 | {% block menu %} | |
5 | {% include '_menu.twig' %} | |
6 | {% endblock %} | |
7 | {% block content %} | |
43c1115e | 8 | <h2>{% trans "Poching links" %}</h2> |
3e0e7e12 | 9 | <p>{% trans "There are several ways to poche a link:" %} (<a href="http://doc.wallabag.org/" title="{% trans "read the documentation" %}">?</a>)</p> |
4cc3c2ac | 10 | <ul> |
43c1115e | 11 | <li>Firefox: <a href="https://addons.mozilla.org/firefox/addon/poche/" title="download the firefox extension">{% trans "download the extension" %}</a></li> |
3e0e7e12 | 12 | <li>Chrome: <a href="http://doc.wallabag.org/doku.php?id=users:chrome_extension" title="download the chrome extension">{% trans "download the extension" %}</a></li> |
aeea7c6a | 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> |
43c1115e | 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> |
4cc3c2ac NL |
15 | <li> |
16 | <form method="get" action="index.php"> | |
43c1115e WT |
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" /> | |
4cc3c2ac NL |
19 | <input type="submit" value="{% trans "poche it!" %}" /> |
20 | </form> | |
21 | </li> | |
3e0e7e12 | 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@wallabag.org']){top['bookmarklet-url@wallabag.org'];}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> |
4cc3c2ac NL |
23 | </ul> |
24 | ||
25 | <h2>{% trans "Updating poche" %}</h2> | |
26 | <ul> | |
43c1115e | 27 | <li>{% trans "Installed version" %} : <strong>{{ constant('POCHE') }}</strong></li> |
3e0e7e12 NL |
28 | <li>{% trans "Latest stable version" %} : {{ prod }}. {% if compare_prod == -1 %}<strong><a href="http://wallabag.org/">{% 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://wallabag.org/">{% trans "a more recent development version is available." %}</a></strong>{% else %}{% trans "you are up to date." %}{% endif %}</li>{% endif %} | |
4cc3c2ac | 30 | </ul> |
72c20a52 NL |
31 | |
32 | <h2>{% trans "Feeds" %}</h2> | |
33 | {% if token == '' %} | |
aeea7c6a | 34 | <p>{% trans "Your feed token is currently empty and must first be generated to enable feeds. Click <a href='?feed&action=generate'>here to generate it</a>." %}</p> |
72c20a52 NL |
35 | {% else %} |
36 | <ul> | |
aeea7c6a WT |
37 | <li><a href="?feed&type=home&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "Unread feed" %}</a></li> |
38 | <li><a href="?feed&type=fav&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "Favorites feed" %}</a></li> | |
39 | <li><a href="?feed&type=archive&user_id={{ user_id }}&token={{ token }}" target="_blank">{% trans "Archive feed" %}</a></li> | |
72c20a52 | 40 | </ul> |
1cecaa79 NL |
41 | <p>{% trans "Your token:" %} <strong>{{token}}</strong></p> |
42 | <p>{% trans "Your user id:" %} <strong>{{user_id}}</strong></p> | |
1151e9cc | 43 | <p>{% trans "You can regenerate your token: <a href='?feed&action=generate'>generate!</a>." %}</p> |
72c20a52 | 44 | {% endif %} |
4cc3c2ac NL |
45 | |
46 | <h2>{% trans "Change your theme" %}</h2> | |
47 | <form method="post" action="?updatetheme" name="changethemeform"> | |
48 | <fieldset class="w500p"> | |
49 | <div class="row"> | |
50 | <label class="col w150p" for="theme">{% trans "Theme:" %}</label> | |
51 | <select class="col" id="theme" name="theme"> | |
f4fbfaa7 NL |
52 | {% for key, theme in themes %} |
53 | <option value="{{ key }}" {{ theme.current ? 'selected' : '' }}>{{ theme.name }}</option> | |
4cc3c2ac NL |
54 | {% endfor %} |
55 | </select> | |
56 | </div> | |
57 | <div class="row mts txtcenter"> | |
58 | <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button> | |
59 | </div> | |
60 | </fieldset> | |
61 | <input type="hidden" name="returnurl" value="{{ referer }}"> | |
62 | <input type="hidden" name="token" value="{{ token }}"> | |
63 | </form> | |
64 | ||
5011388f NL |
65 | <h2>{% trans "Change your language" %}</h2> |
66 | <form method="post" action="?updatelanguage" name="changelanguageform"> | |
67 | <fieldset class="w500p"> | |
68 | <div class="row"> | |
69 | <label class="col w150p" for="language">{% trans "Language:" %}</label> | |
70 | <select class="col" id="language" name="language"> | |
71 | {% for language in languages %} | |
72 | <option value="{{ language.name }}" {{ language.current ? 'selected' : '' }}>{{ language.name }}</option> | |
73 | {% endfor %} | |
74 | </select> | |
75 | </div> | |
76 | <div class="row mts txtcenter"> | |
77 | <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button> | |
78 | </div> | |
79 | </fieldset> | |
80 | <input type="hidden" name="returnurl" value="{{ referer }}"> | |
81 | <input type="hidden" name="token" value="{{ token }}"> | |
82 | </form> | |
83 | ||
df6afaf0 | 84 | {% if http_auth == 0 %} |
4cc3c2ac NL |
85 | <h2>{% trans "Change your password" %}</h2> |
86 | <form method="post" action="?config" name="loginform"> | |
87 | <fieldset class="w500p"> | |
88 | <div class="row"> | |
89 | <label class="col w150p" for="password">{% trans "New password:" %}</label> | |
90 | <input class="col" type="password" id="password" name="password" placeholder="{% trans "Password" %}" tabindex="2"> | |
91 | </div> | |
92 | <div class="row"> | |
93 | <label class="col w150p" for="password_repeat">{% trans "Repeat your new password:" %}</label> | |
94 | <input class="col" type="password" id="password_repeat" name="password_repeat" placeholder="{% trans "Password" %}" tabindex="3"> | |
95 | </div> | |
96 | <div class="row mts txtcenter"> | |
97 | <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button> | |
98 | </div> | |
99 | </fieldset> | |
100 | <input type="hidden" name="returnurl" value="{{ referer }}"> | |
101 | <input type="hidden" name="token" value="{{ token }}"> | |
102 | </form> | |
df6afaf0 | 103 | {% endif %} |
4cc3c2ac NL |
104 | |
105 | <h2>{% trans "Import" %}</h2> | |
aeea7c6a | 106 | <p>{% trans "Please execute the import script locally as it can take a very long time." %}</p> |
3e0e7e12 | 107 | <p>{% trans "More info in the official docs:" %} <a href="http://doc.wallabag.org/doku.php?id=users:migrate">wallabag.org</a></p> |
4cc3c2ac | 108 | <ul> |
aeea7c6a | 109 | <li><a href="./?import&from=pocket">{% trans "Import from Pocket" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('POCKET_FILE')) }}</li> |
89051914 NL |
110 | <li><a href="./?import&from=readability">{% trans "Import from Readability" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('READABILITY_FILE')) }}</li> |
111 | <li><a href="./?import&from=instapaper">{% trans "Import from Instapaper" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('INSTAPAPER_FILE')) }}</li> | |
112 | <li><a href="./?import&from=poche">{% trans "Import from poche" %}</a> {{ '(you must have a %s file on your server)'|trans|format(constant('POCHE_FILE')) }}</li> | |
4cc3c2ac NL |
113 | </ul> |
114 | ||
43c1115e | 115 | <h2>{% trans "Export your poche data" %}</h2> |
d460914f NL |
116 | {% if constant('STORAGE') == 'sqlite' %} |
117 | <p><a href="?download" target="_blank">{% trans "Click here" %}</a> {% trans "to download your database." %}</p>{% endif %} | |
43c1115e | 118 | <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your poche data." %}</p> |
894c36ea | 119 | {% endblock %} |