diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/_menu.twig | 2 | ||||
-rw-r--r-- | tpl/_top.twig | 6 | ||||
-rw-r--r-- | tpl/config.twig | 23 | ||||
-rw-r--r-- | tpl/css/style.css | 42 | ||||
-rw-r--r-- | tpl/error.twig | 2 | ||||
-rw-r--r-- | tpl/home.twig | 13 | ||||
-rw-r--r-- | tpl/install.twig | 2 | ||||
-rw-r--r-- | tpl/js/poche.js | 2 | ||||
-rw-r--r-- | tpl/view.twig | 4 |
9 files changed, 68 insertions, 28 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/_top.twig b/tpl/_top.twig index ae01cc3f..dc20081e 100644 --- a/tpl/_top.twig +++ b/tpl/_top.twig | |||
@@ -1,3 +1,7 @@ | |||
1 | <header class="w600p center mbm"> | 1 | <header class="w600p center mbm"> |
2 | <h1><a href="./" title="{% trans "back to home" %}" ><img src="./tpl/img/logo.png" alt="logo poche" /></a></h1> | 2 | <h1> |
3 | {% if view == 'home' %}{% block logo %}<img src="./tpl/img/logo.png" alt="logo poche" />{% endblock %} | ||
4 | {% else %}<a href="./" title="{% trans "back to home" %}" >{{ block('logo') }}</a> | ||
5 | {% endif %} | ||
6 | </h1> | ||
3 | </header> \ No newline at end of file | 7 | </header> \ No newline at end of file |
diff --git a/tpl/config.twig b/tpl/config.twig index c838c319..70788876 100644 --- a/tpl/config.twig +++ b/tpl/config.twig | |||
@@ -2,29 +2,30 @@ | |||
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> |
15 | <p>You can poche a link by several methods: (<a href="http://www.inthepoche.com/?pages/Documentation" title="{% trans "read the documentation" %}">?</a>)</p> | 9 | <p>You can poche a link by several methods: (<a href="http://inthepoche.com/doc" title="{% trans "read the documentation" %}">?</a>)</p> |
16 | <ul> | 10 | <ul> |
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 | ||
23 | <h2>{% trans "Updating poche" %}</h2> | 24 | <h2>{% trans "Updating poche" %}</h2> |
24 | <ul> | 25 | <ul> |
25 | <li>{% trans "your version" %} : <strong>{{ constant('POCHE_VERSION') }}</strong></li> | 26 | <li>{% trans "your version" %} : <strong>{{ constant('POCHE_VERSION') }}</strong></li> |
26 | <li>{% trans "latest stable version" %} : {{ prod }}. {% if compare_prod == -1 %}<strong><a href="http://inthepoche.com/?pages/T%C3%A9l%C3%A9charger-poche">{% trans "a more recent stable version is available." %}</a></strong>{% else %}{% trans "you are up to date." %}{% endif %}</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> |
27 | {% if constant('DEBUG_POCHE') == 1 %}<li>{% trans "latest dev version" %} : {{ dev }}. {% if compare_dev == -1 %}<strong><a href="http://inthepoche.com/?pages/T%C3%A9l%C3%A9charger-poche">{% trans "a more recent development version is available." %}</a></strong>{% else %}{% trans "you are up to date." %}{% endif %}</li>{% endif %} | 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 %} |
28 | </ul> | 29 | </ul> |
29 | 30 | ||
30 | <h2>{% trans "Change your password" %}</h2> | 31 | <h2>{% trans "Change your password" %}</h2> |
@@ -48,7 +49,7 @@ | |||
48 | 49 | ||
49 | <h2>{% trans "Import" %}</h2> | 50 | <h2>{% trans "Import" %}</h2> |
50 | <p>{% trans "Please execute the import script locally, it can take a very long time." %}</p> | 51 | <p>{% trans "Please execute the import script locally, it can take a very long time." %}</p> |
51 | <p>{% trans "More infos in the official doc:" %} <a href="http://inthepoche.com/?pages/Documentation">inthepoche.com</a></p> | 52 | <p>{% trans "More infos in the official doc:" %} <a href="http://inthepoche.com/doc">inthepoche.com</a></p> |
52 | <ul> | 53 | <ul> |
53 | <li><a href="./?import&from=pocket">{% trans "import from Pocket" %}</a> (you must have a "{{ constant('IMPORT_POCKET_FILE')}}" file on your server)</li> | 54 | <li><a href="./?import&from=pocket">{% trans "import from Pocket" %}</a> (you must have a "{{ constant('IMPORT_POCKET_FILE')}}" file on your server)</li> |
54 | <li><a href="./?import&from=readability">{% trans "import from Readability" %}</a> (you must have a "{{constant('IMPORT_READABILITY_FILE')}}" file on your server)</li> | 55 | <li><a href="./?import&from=readability">{% trans "import from Readability" %}</a> (you must have a "{{constant('IMPORT_READABILITY_FILE')}}" file on your server)</li> |
diff --git a/tpl/css/style.css b/tpl/css/style.css index 7633534c..c056429d 100644 --- a/tpl/css/style.css +++ b/tpl/css/style.css | |||
@@ -98,6 +98,10 @@ a, a:hover, a:visited { | |||
98 | #main #content .entrie { | 98 | #main #content .entrie { |
99 | border-bottom: 1px dashed #222; | 99 | border-bottom: 1px dashed #222; |
100 | } | 100 | } |
101 | /* First entry */ | ||
102 | #main #content .results + .entrie { | ||
103 | clear: both; | ||
104 | } | ||
101 | 105 | ||
102 | #main .entrie .tools { | 106 | #main .entrie .tools { |
103 | list-style-type: none; | 107 | list-style-type: none; |
@@ -189,11 +193,22 @@ a, a:hover, a:visited { | |||
189 | } | 193 | } |
190 | 194 | ||
191 | 195 | ||
192 | /* Pagination */ | 196 | .results { |
193 | .pagination { | 197 | overflow: hidden; |
194 | clear: both; | ||
195 | padding-bottom: 20px; | 198 | padding-bottom: 20px; |
196 | padding-top: 10px; | 199 | padding-top: 10px; |
200 | } | ||
201 | |||
202 | .nb-results { | ||
203 | float: left; | ||
204 | font-size: 0.9em; | ||
205 | line-height: 24px; | ||
206 | vertical-align: middle; | ||
207 | } | ||
208 | |||
209 | /* Pagination */ | ||
210 | .pagination { | ||
211 | float: right; | ||
197 | text-align: right; | 212 | text-align: right; |
198 | } | 213 | } |
199 | .pagination a { | 214 | .pagination a { |
@@ -221,12 +236,7 @@ a, a:hover, a:visited { | |||
221 | margin: 2px; | 236 | margin: 2px; |
222 | } | 237 | } |
223 | .pagination .disabled { | 238 | .pagination .disabled { |
224 | border: 1px solid #eee; | 239 | display: none; |
225 | color: #ddd; | ||
226 | margin: 2px; | ||
227 | padding: 4px 8px; | ||
228 | font-size: 11px; | ||
229 | font-weight: bold; | ||
230 | } | 240 | } |
231 | 241 | ||
232 | #bookmarklet { | 242 | #bookmarklet { |
@@ -257,3 +267,17 @@ footer { | |||
257 | .reading-time { | 267 | .reading-time { |
258 | font-size: 0.8em; | 268 | font-size: 0.8em; |
259 | } | 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/error.twig b/tpl/error.twig index 14c49925..c829d12b 100644 --- a/tpl/error.twig +++ b/tpl/error.twig | |||
@@ -2,5 +2,5 @@ | |||
2 | {% block title %}{% trans "plop" %}{% endblock %} | 2 | {% block title %}{% trans "plop" %}{% endblock %} |
3 | {% block content %} | 3 | {% block content %} |
4 | {{ msg|raw }} | 4 | {{ msg|raw }} |
5 | <p>Don't forget <a href="http://inthepoche.com/?pages/Documentation">the documentation</a>.</p> | 5 | <p>Don't forget <a href="http://inthepoche.com/doc">the documentation</a>.</p> |
6 | {% endblock %} \ No newline at end of file | 6 | {% endblock %} \ No newline at end of file |
diff --git a/tpl/home.twig b/tpl/home.twig index f51c34f2..771c36c5 100644 --- a/tpl/home.twig +++ b/tpl/home.twig | |||
@@ -12,16 +12,25 @@ | |||
12 | {% include '_menu.twig' %} | 12 | {% include '_menu.twig' %} |
13 | {% endblock %} | 13 | {% endblock %} |
14 | {% block precontent %} | 14 | {% block precontent %} |
15 | {% if entries|length > 1 %} | ||
15 | <ul id="sort"> | 16 | <ul id="sort"> |
16 | <li><a href="./?sort=ia&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/top.png" alt="{% trans "by date asc" %}" title="{% trans "by date asc" %}" /></a> {% trans "by date" %} <a href="./?sort=id&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/down.png" alt="{% trans "by date desc" %}" title="{% trans "by date desc" %}" /></a></li> | 17 | <li><a href="./?sort=ia&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/top.png" alt="{% trans "by date asc" %}" title="{% trans "by date asc" %}" /></a> {% trans "by date" %} <a href="./?sort=id&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/down.png" alt="{% trans "by date desc" %}" title="{% trans "by date desc" %}" /></a></li> |
17 | <li><a href="./?sort=ta&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/top.png" alt="{% trans "by title asc" %}" title="{% trans "by title asc" %}" /></a> {% trans "by title" %} <a href="./?sort=td&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/down.png" alt="{% trans "by title desc" %}" title="{% trans "by title desc" %}" /></a></li> | 18 | <li><a href="./?sort=ta&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/top.png" alt="{% trans "by title asc" %}" title="{% trans "by title asc" %}" /></a> {% trans "by title" %} <a href="./?sort=td&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/down.png" alt="{% trans "by title desc" %}" title="{% trans "by title desc" %}" /></a></li> |
18 | </ul> | 19 | </ul> |
20 | {% endif %} | ||
19 | {% endblock %} | 21 | {% endblock %} |
20 | {% block content %} | 22 | {% block content %} |
21 | {{ page_links | raw }} | ||
22 | {% if entries is empty %} | 23 | {% if entries is empty %} |
23 | <div class="messages warning"><p>{% trans "No link available here!" %}</p></div> | 24 | <div class="messages warning"><p>{% trans "No link available here!" %}</p></div> |
24 | {% else %} | 25 | {% else %} |
26 | {% block pager %} | ||
27 | {% if nb_results > 1 %} | ||
28 | <div class="results"> | ||
29 | <div class="nb-results">{{ nb_results }} {% trans "results" %}</div> | ||
30 | {{ page_links | raw }} | ||
31 | </div> | ||
32 | {% endif %} | ||
33 | {% endblock %} | ||
25 | {% for entry in entries %} | 34 | {% for entry in entries %} |
26 | <div id="entry-{{ entry.id|e }}" class="entrie"> | 35 | <div id="entry-{{ entry.id|e }}" class="entrie"> |
27 | <h2><a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2> | 36 | <h2><a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2> |
@@ -36,5 +45,5 @@ | |||
36 | </div> | 45 | </div> |
37 | {% endfor %} | 46 | {% endfor %} |
38 | {% endif %} | 47 | {% endif %} |
39 | {{ page_links | raw }} | 48 | {{ block('pager') }} |
40 | {% endblock %} \ No newline at end of file | 49 | {% endblock %} \ No newline at end of file |
diff --git a/tpl/install.twig b/tpl/install.twig index afb5b0f6..6e85e5cb 100644 --- a/tpl/install.twig +++ b/tpl/install.twig | |||
@@ -5,7 +5,7 @@ | |||
5 | <fieldset class="w500p center"> | 5 | <fieldset class="w500p center"> |
6 | <h2 class="mbs txtcenter">{% trans "install your poche" %}</h2> | 6 | <h2 class="mbs txtcenter">{% trans "install your poche" %}</h2> |
7 | <p> | 7 | <p> |
8 | {% trans "poche is still not installed. Please fill the below form to install it. Don't hesitate to <a href='http://inthepoche.com/?pages/Documentation'>read the documentation on poche website</a>." %} | 8 | {% trans "poche is still not installed. Please fill the below form to install it. Don't hesitate to <a href='http://inthepoche.com/doc'>read the documentation on poche website</a>." %} |
9 | </p> | 9 | </p> |
10 | <p class="row"> | 10 | <p class="row"> |
11 | <label class="col w150p" for="login">{% trans "Login" %}</label> | 11 | <label class="col w150p" for="login">{% trans "Login" %}</label> |
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 | ||
diff --git a/tpl/view.twig b/tpl/view.twig index 283cfb5b..ee16afa6 100644 --- a/tpl/view.twig +++ b/tpl/view.twig | |||
@@ -11,7 +11,7 @@ | |||
11 | {% if constant('SHARE_TWITTER') == 1 %}<li><a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@getpoche" target="_blank" class="tool twitter" title="{% trans "tweet" %}"><span>{% trans "tweet" %}</span></a></li>{% endif %} | 11 | {% if constant('SHARE_TWITTER') == 1 %}<li><a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@getpoche" target="_blank" class="tool twitter" title="{% trans "tweet" %}"><span>{% trans "tweet" %}</span></a></li>{% endif %} |
12 | {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&body={{ entry.url|url_encode }}%20via%20@getpoche" class="tool email" title="{% trans "email" %}"><span>{% trans "email" %}</span></a></li>{% endif %} | 12 | {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&body={{ entry.url|url_encode }}%20via%20@getpoche" class="tool email" title="{% trans "email" %}"><span>{% trans "email" %}</span></a></li>{% endif %} |
13 | {% if constant('SHARE_SHAARLI') == 1 %}<li><a href="{{ constant('SHAARLI_URL') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans "shaarli" %}"><span>{% trans "shaarli" %}</span></a></li>{% endif %} | 13 | {% if constant('SHARE_SHAARLI') == 1 %}<li><a href="{{ constant('SHAARLI_URL') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans "shaarli" %}"><span>{% trans "shaarli" %}</span></a></li>{% endif %} |
14 | {% if constant('FLATTR') == 1 %}{% if flattr.status == "flattrable" %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr" title="flattr"><span>flattr</span></a></li>{% elseif flattr.status == "flattred" %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr"><span>flattr</span>{{ flattr.numflattrs }}</a></li>{% else %}{% endif %}{% endif %} | 14 | {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>flattr</span></a></li>{% elseif flattr.status == constant('FLATTRED') %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>flattr</span>{{ flattr.numflattrs }}</a></li>{% endif %}{% endif %} |
15 | </ul> | 15 | </ul> |
16 | </div> | 16 | </div> |
17 | <header class="mbm"> | 17 | <header class="mbm"> |
@@ -32,7 +32,7 @@ | |||
32 | {% if constant('SHARE_TWITTER') == 1 %}<li><a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@getpoche" target="_blank" class="tool twitter" title="{% trans "tweet" %}"><span>{% trans "tweet" %}</span></a></li>{% endif %} | 32 | {% if constant('SHARE_TWITTER') == 1 %}<li><a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@getpoche" target="_blank" class="tool twitter" title="{% trans "tweet" %}"><span>{% trans "tweet" %}</span></a></li>{% endif %} |
33 | {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&body={{ entry.url|url_encode }}%20via%20@getpoche" class="tool email" title="{% trans "email" %}"><span>{% trans "email" %}</span></a></li>{% endif %} | 33 | {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&body={{ entry.url|url_encode }}%20via%20@getpoche" class="tool email" title="{% trans "email" %}"><span>{% trans "email" %}</span></a></li>{% endif %} |
34 | {% if constant('SHARE_SHAARLI') == 1 %}<li><a href="{{ constant('SHAARLI_URL') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans "shaarli" %}"><span>{% trans "shaarli" %}</span></a></li>{% endif %} | 34 | {% if constant('SHARE_SHAARLI') == 1 %}<li><a href="{{ constant('SHAARLI_URL') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans "shaarli" %}"><span>{% trans "shaarli" %}</span></a></li>{% endif %} |
35 | {% if constant('FLATTR') == 1 %}{% if flattr.status == "flattrable" %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr" title="flattr"><span>flattr</span></a></li>{% elseif flattr.status == "flattred" %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr"><span>flattr</span>{{ flattr.numflattrs }}</a></li>{% else %}{% endif %}{% endif %} | 35 | {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>flattr</span></a></li>{% elseif flattr.status == constant('FLATTRED') %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>flattr</span>{{ flattr.numflattrs }}</a></li>{% endif %}{% endif %} |
36 | </ul> | 36 | </ul> |
37 | <p>{% trans "this article appears wrong?" %} <a href="https://github.com/inthepoche/poche/issues/new">{% trans "create an issue" %}</a> {% trans "or" %} <a href="mailto:support@inthepoche.com?subject=Wrong%20display%20in%20poche&body={{ entry.url|url_encode }}">{% trans "contact us by mail" %}</a></p> | 37 | <p>{% trans "this article appears wrong?" %} <a href="https://github.com/inthepoche/poche/issues/new">{% trans "create an issue" %}</a> {% trans "or" %} <a href="mailto:support@inthepoche.com?subject=Wrong%20display%20in%20poche&body={{ entry.url|url_encode }}">{% trans "contact us by mail" %}</a></p> |
38 | </div> | 38 | </div> |