diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/_menu.twig | 2 | ||||
-rw-r--r-- | tpl/config.twig | 15 | ||||
-rw-r--r-- | tpl/css/style.css | 14 | ||||
-rw-r--r-- | tpl/js/poche.js | 2 |
4 files changed, 25 insertions, 8 deletions
diff --git a/tpl/_menu.twig b/tpl/_menu.twig index 699d6a0c..523d63cc 100644 --- a/tpl/_menu.twig +++ b/tpl/_menu.twig | |||
@@ -4,4 +4,4 @@ | |||
4 | <li><a href="./?view=archive" {% if view == 'archive' %}class="current"{% endif %}>{% trans "archive" %}</a></li> | 4 | <li><a href="./?view=archive" {% if view == 'archive' %}class="current"{% endif %}>{% trans "archive" %}</a></li> |
5 | <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li> | 5 | <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li> |
6 | <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> | 6 | <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> |
7 | </ul> \ No newline at end of file | 7 | </ul> \ No newline at end of file |
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 | ||
diff --git a/tpl/css/style.css b/tpl/css/style.css index 5f7fd77d..c056429d 100644 --- a/tpl/css/style.css +++ b/tpl/css/style.css | |||
@@ -267,3 +267,17 @@ footer { | |||
267 | .reading-time { | 267 | .reading-time { |
268 | font-size: 0.8em; | 268 | font-size: 0.8em; |
269 | } | 269 | } |
270 | |||
271 | #inputform { | ||
272 | display: none; | ||
273 | text-align:center; | ||
274 | max-width:300px; | ||
275 | margin-left:auto; | ||
276 | margin-right:auto; | ||
277 | margin-top:5px; | ||
278 | padding-bottom: 5px; | ||
279 | background-color: rgba(0, 0, 0, 0.9); | ||
280 | opacity:0.8; | ||
281 | color:white; | ||
282 | border-radius: 3px; | ||
283 | } | ||
diff --git a/tpl/js/poche.js b/tpl/js/poche.js new file mode 100644 index 00000000..c2e02f9c --- /dev/null +++ b/tpl/js/poche.js | |||
@@ -0,0 +1,2 @@ | |||
1 | function showinput(){ | ||
2 | $('#inputform').fadeIn('fast');} \ No newline at end of file | ||