diff options
Diffstat (limited to 'themes/default/config.twig')
-rw-r--r-- | themes/default/config.twig | 51 |
1 files changed, 34 insertions, 17 deletions
diff --git a/themes/default/config.twig b/themes/default/config.twig index 23860ebd..10df726e 100644 --- a/themes/default/config.twig +++ b/themes/default/config.twig | |||
@@ -5,28 +5,41 @@ | |||
5 | {% include '_menu.twig' %} | 5 | {% include '_menu.twig' %} |
6 | {% endblock %} | 6 | {% endblock %} |
7 | {% block content %} | 7 | {% block content %} |
8 | <h2>{% trans "Poching a link" %}</h2> | 8 | <h2>{% trans "Poching links" %}</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> | 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> | 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> | 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="https://bitbucket.org/jogaulupeau/poche/downloads/poche.crx" title="download the chrome 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://bitbucket.org/jogaulupeau/poche/downloads/Poche.apk" title="download the application">{% trans "download the application" %}</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> | ||
14 | <li> | 15 | <li> |
15 | <form method="get" action="index.php"> | 16 | <form method="get" action="index.php"> |
16 | <label class="addurl" for="plainurl">{% trans "by filling this field" %}:</label> | 17 | <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 required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" /> |
18 | <input type="submit" value="{% trans "poche it!" %}" /> | 19 | <input type="submit" value="{% trans "poche it!" %}" /> |
19 | </form> | 20 | </form> |
20 | </li> | 21 | </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 | <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 | </ul> |
23 | 24 | ||
24 | <h2>{% trans "Updating poche" %}</h2> | 25 | <h2>{% trans "Updating poche" %}</h2> |
25 | <ul> | 26 | <ul> |
26 | <li>{% trans "your version" %} : <strong>{{ constant('POCHE') }}</strong></li> | 27 | <li>{% trans "Installed 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 | <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 | {% 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 | </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&action=generate'>here to generate it</a>." %}</p> | ||
35 | {% else %} | ||
36 | <ul> | ||
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> | ||
40 | </ul> | ||
41 | <p>{% trans "You can regenerate your token: <a href='?feed&action=generate'>generate!</a>." %}</p> | ||
42 | {% endif %} | ||
30 | 43 | ||
31 | <h2>{% trans "Change your theme" %}</h2> | 44 | <h2>{% trans "Change your theme" %}</h2> |
32 | <form method="post" action="?updatetheme" name="changethemeform"> | 45 | <form method="post" action="?updatetheme" name="changethemeform"> |
@@ -66,6 +79,7 @@ | |||
66 | <input type="hidden" name="token" value="{{ token }}"> | 79 | <input type="hidden" name="token" value="{{ token }}"> |
67 | </form> | 80 | </form> |
68 | 81 | ||
82 | {% if http_auth == 0 %} | ||
69 | <h2>{% trans "Change your password" %}</h2> | 83 | <h2>{% trans "Change your password" %}</h2> |
70 | <form method="post" action="?config" name="loginform"> | 84 | <form method="post" action="?config" name="loginform"> |
71 | <fieldset class="w500p"> | 85 | <fieldset class="w500p"> |
@@ -84,16 +98,19 @@ | |||
84 | <input type="hidden" name="returnurl" value="{{ referer }}"> | 98 | <input type="hidden" name="returnurl" value="{{ referer }}"> |
85 | <input type="hidden" name="token" value="{{ token }}"> | 99 | <input type="hidden" name="token" value="{{ token }}"> |
86 | </form> | 100 | </form> |
101 | {% endif %} | ||
87 | 102 | ||
88 | <h2>{% trans "Import" %}</h2> | 103 | <h2>{% trans "Import" %}</h2> |
89 | <p>{% trans "Please execute the import script locally, it can take a very long time." %}</p> | 104 | <p>{% trans "Please execute the import script locally as 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> | 105 | <p>{% trans "More info in the official docs:" %} <a href="http://doc.inthepoche.com/doku.php?id=users:migrate">inthepoche.com</a></p> |
91 | <ul> | 106 | <ul> |
92 | <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> | 107 | <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> |
93 | <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> | 108 | <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> |
94 | <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> | 109 | <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> |
95 | </ul> | 110 | </ul> |
96 | 111 | ||
97 | <h2>{% trans "Export your poche datas" %}</h2> | 112 | <h2>{% trans "Export your poche data" %}</h2> |
98 | <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your poche datas." %}</p> | 113 | {% if constant('STORAGE') == 'sqlite' %} |
114 | <p><a href="?download" target="_blank">{% trans "Click here" %}</a> {% trans "to download your database." %}</p>{% endif %} | ||
115 | <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your poche data." %}</p> | ||
99 | {% endblock %} | 116 | {% endblock %} |