diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-09-10 14:41:58 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-09-10 14:41:58 +0200 |
commit | ce4a1dcc193d3124fc51c4942137621d3d806a19 (patch) | |
tree | 437baacae734dd62426329fa4fa830beb78c7aea /tpl/config.twig | |
parent | d5ce28df67fcddfb957ce28424f3e5751f433695 (diff) | |
download | wallabag-ce4a1dcc193d3124fc51c4942137621d3d806a19.tar.gz wallabag-ce4a1dcc193d3124fc51c4942137621d3d806a19.tar.zst wallabag-ce4a1dcc193d3124fc51c4942137621d3d806a19.zip |
changes to add url directly from poche
Diffstat (limited to 'tpl/config.twig')
-rw-r--r-- | tpl/config.twig | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tpl/config.twig b/tpl/config.twig index c838c319..e24e58d4 100644 --- a/tpl/config.twig +++ b/tpl/config.twig | |||
@@ -2,13 +2,7 @@ | |||
2 | 2 | ||
3 | {% block title %}{% trans "config" %}{% endblock %} | 3 | {% block title %}{% trans "config" %}{% endblock %} |
4 | {% block menu %} | 4 | {% block menu %} |
5 | <ul id="links"> | 5 | {% include '_menu.twig' %} |
6 | <li><a href="./" {% if view == 'home' %}class="current"{% endif %}>{% trans "home" %}</a></li> | ||
7 | <li><a href="./?view=fav" {% if view == 'fav' %}class="current"{% endif %}>{% trans "favorites" %}</a></li> | ||
8 | <li><a href="./?view=archive" {% if view == 'archive' %}class="current"{% endif %}>{% trans "archive" %}</a></li> | ||
9 | <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li> | ||
10 | <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> | ||
11 | </ul> | ||
12 | {% endblock %} | 6 | {% endblock %} |
13 | {% block content %} | 7 | {% block content %} |
14 | <h2>{% trans "Poching a link" %}</h2> | 8 | <h2>{% trans "Poching a link" %}</h2> |
@@ -17,6 +11,13 @@ | |||
17 | <li>firefox: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/poche.xpi" title="download the firefox extension">download the extension</a></li> | 11 | <li>firefox: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/poche.xpi" title="download the firefox extension">download the extension</a></li> |
18 | <li>chrome: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/poche.crx" title="download the chrome extension">download the extension</a></li> | 12 | <li>chrome: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/poche.crx" title="download the chrome extension">download the extension</a></li> |
19 | <li>android: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/Poche.apk" title="download the application">download the application</a></li> | 13 | <li>android: <a href="https://bitbucket.org/jogaulupeau/poche/downloads/Poche.apk" title="download the application">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 autofocus 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> | ||
20 | <li>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> | 21 | <li>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> |
21 | </ul> | 22 | </ul> |
22 | 23 | ||