aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/config.twig
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/config.twig')
m---------themes0
-rw-r--r--themes/default/config.twig80
2 files changed, 80 insertions, 0 deletions
diff --git a/themes b/themes
deleted file mode 160000
Subproject 689dcedf8d6c7cf5e8424654fef4fd9687288dc
diff --git a/themes/default/config.twig b/themes/default/config.twig
new file mode 100644
index 00000000..e849d03b
--- /dev/null
+++ b/themes/default/config.twig
@@ -0,0 +1,80 @@
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_VERSION') }}</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 password" %}</h2>
51 <form method="post" action="?config" name="loginform">
52 <fieldset class="w500p">
53 <div class="row">
54 <label class="col w150p" for="password">{% trans "New password:" %}</label>
55 <input class="col" type="password" id="password" name="password" placeholder="{% trans "Password" %}" tabindex="2">
56 </div>
57 <div class="row">
58 <label class="col w150p" for="password_repeat">{% trans "Repeat your new password:" %}</label>
59 <input class="col" type="password" id="password_repeat" name="password_repeat" placeholder="{% trans "Password" %}" tabindex="3">
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 "Import" %}</h2>
70 <p>{% trans "Please execute the import script locally, it can take a very long time." %}</p>
71 <p>{% trans "More infos in the official doc:" %} <a href="http://inthepoche.com/doc">inthepoche.com</a></p>
72 <ul>
73 <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>
74 <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>
75 <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>
76 </ul>
77
78 <h2>{% trans "Export your poche datas" %}</h2>
79 <p><a href="./dl/export_poche.json">{% trans "Click here" %}</a> {% trans "to export your poche datas." %}</p>
80{% endblock %} \ No newline at end of file