diff options
Diffstat (limited to 'src/WallabagBundle/Resources/views')
7 files changed, 137 insertions, 18 deletions
diff --git a/src/WallabagBundle/Resources/views/Entry/entries.html.twig b/src/WallabagBundle/Resources/views/Entry/entries.html.twig index 81177298..de343aa2 100644 --- a/src/WallabagBundle/Resources/views/Entry/entries.html.twig +++ b/src/WallabagBundle/Resources/views/Entry/entries.html.twig | |||
@@ -7,6 +7,20 @@ | |||
7 | {% endblock %} | 7 | {% endblock %} |
8 | 8 | ||
9 | {% block content %} | 9 | {% block content %} |
10 | {% block pager %} | ||
11 | {% if entries is not empty %} | ||
12 | <div class="results"> | ||
13 | <div class="nb-results">{{ entries.count }} {% trans %}entries{% endtrans %}</div> | ||
14 | <div class="pagination"> | ||
15 | {% for p in range(1, entries.count) %} | ||
16 | <li> | ||
17 | <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}">{{ p }}</a> | ||
18 | </li> | ||
19 | {% endfor %} | ||
20 | </div> | ||
21 | </div> | ||
22 | {% endif %} | ||
23 | {% endblock %} | ||
10 | 24 | ||
11 | {% if entries is empty %} | 25 | {% if entries is empty %} |
12 | <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div> | 26 | <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div> |
@@ -21,9 +35,9 @@ | |||
21 | {% endif %} | 35 | {% endif %} |
22 | 36 | ||
23 | <ul class="tools links"> | 37 | <ul class="tools links"> |
24 | <li><a title="{% trans %}Toggle mark as read{% endtrans %}" class="tool icon-check icon {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="./?action=toggle_archive&id={{ entry.id|e }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li> | 38 | <li><a title="{% trans %}Toggle mark as read{% endtrans %}" class="tool icon-check icon {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li> |
25 | <li><a title="{% trans %}toggle favorite{% endtrans %}" class="tool icon-star icon {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="./?action=toggle_fav&id={{ entry.id|e }}"><span>{% trans %}toggle favorite{% endtrans %}</span></a></li> | 39 | <li><a title="{% trans %}toggle favorite{% endtrans %}" class="tool icon-star icon {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="{{ path('star_entry', { 'id': entry.id }) }}"><span>{% trans %}toggle favorite{% endtrans %}</span></a></li> |
26 | <li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans %}delete{% endtrans %}</span></a></li> | 40 | <li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{% trans %}delete{% endtrans %}</span></a></li> |
27 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.url | e | domainName }}</span></a></li> | 41 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.url | e | domainName }}</span></a></li> |
28 | </ul> | 42 | </ul> |
29 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | 43 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> |
diff --git a/src/WallabagBundle/Resources/views/Entry/entry.html.twig b/src/WallabagBundle/Resources/views/Entry/entry.html.twig index 19d4650e..8c08b2ef 100644 --- a/src/WallabagBundle/Resources/views/Entry/entry.html.twig +++ b/src/WallabagBundle/Resources/views/Entry/entry.html.twig | |||
@@ -11,9 +11,9 @@ | |||
11 | <ul class="links"> | 11 | <ul class="links"> |
12 | <li class="topPosF"><a href="#top" title="{% trans %}Back to top{% endtrans %}" class="tool top icon icon-arrow-up-thick"><span>{% trans %}Back to top{% endtrans %}</span></a></li> | 12 | <li class="topPosF"><a href="#top" title="{% trans %}Back to top{% endtrans %}" class="tool top icon icon-arrow-up-thick"><span>{% trans %}Back to top{% endtrans %}</span></a></li> |
13 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon icon-link"><span>{{ entry.url | e | domainName }}</span></a></li> | 13 | <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon icon-link"><span>{{ entry.url | e | domainName }}</span></a></li> |
14 | <li><a title="{% trans %}Mark as read{% endtrans %}" class="tool icon icon-check {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="javascript: void(null);" id="markAsRead"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li> | 14 | <li><a title="{% trans %}Mark as read{% endtrans %}" class="tool icon icon-check {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li> |
15 | <li><a title="{% trans %}Favorite{% endtrans %}" class="tool icon icon-star {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="javascript: void(null);" id="setFav"><span>{% trans %}Toggle favorite{% endtrans %}</span></a></li> | 15 | <li><a title="{% trans %}Favorite{% endtrans %}" class="tool icon icon-star {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="{{ path('star_entry', { 'id': entry.id }) }}"><span>{% trans %}Toggle favorite{% endtrans %}</span></a></li> |
16 | <li><a title="{% trans %}Delete{% endtrans %}" class="tool delete icon icon-trash" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans %}Delete{% endtrans %}</span></a></li> | 16 | <li><a title="{% trans %}Delete{% endtrans %}" class="tool delete icon icon-trash" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{% trans %}Delete{% endtrans %}</span></a></li> |
17 | {% if share_twitter %}<li><a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@wallabagapp" target="_blank" class="tool twitter icon icon-twitter" title="{% trans %}Tweet{% endtrans %}"><span>{% trans %}Tweet{% endtrans %}</span></a></li>{% endif %} | 17 | {% if share_twitter %}<li><a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@wallabagapp" target="_blank" class="tool twitter icon icon-twitter" title="{% trans %}Tweet{% endtrans %}"><span>{% trans %}Tweet{% endtrans %}</span></a></li>{% endif %} |
18 | {% if share_mail %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&body={{ entry.url|url_encode }}%20via%20@wallabagapp" class="tool email icon icon-mail" title="{% trans %}Email{% endtrans %}"><span>{% trans %}Email{% endtrans %}</span></a></li>{% endif %} | 18 | {% if share_mail %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&body={{ entry.url|url_encode }}%20via%20@wallabagapp" class="tool email icon icon-mail" title="{% trans %}Email{% endtrans %}"><span>{% trans %}Email{% endtrans %}</span></a></li>{% endif %} |
19 | {% if share_shaarli %}<li><a href="{{ shaarli_url }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans %}shaarli{% endtrans %}"><span>{% trans %}shaarli{% endtrans %}</span></a></li>{% endif %} | 19 | {% if share_shaarli %}<li><a href="{{ shaarli_url }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans %}shaarli{% endtrans %}"><span>{% trans %}shaarli{% endtrans %}</span></a></li>{% endif %} |
@@ -43,9 +43,9 @@ | |||
43 | $(document).ready(function() { | 43 | $(document).ready(function() { |
44 | 44 | ||
45 | // toggle read property of current article | 45 | // toggle read property of current article |
46 | $('#markAsRead').click(function(){ | 46 | /* $('#markAsRead').click(function(){ |
47 | $("body").css("cursor", "wait"); | 47 | $("body").css("cursor", "wait"); |
48 | $.ajax( { url: './?action=toggle_archive&id={{ entry.id|e }}' }).done( | 48 | $.ajax( { url: '{{ path('archive_entry', { 'id': entry.id }) }}' }).done( |
49 | function( data ) { | 49 | function( data ) { |
50 | if ( data == '1' ) { | 50 | if ( data == '1' ) { |
51 | if ( $('#markAsRead').hasClass("archive-off") ) { | 51 | if ( $('#markAsRead').hasClass("archive-off") ) { |
@@ -62,12 +62,12 @@ | |||
62 | } | 62 | } |
63 | }); | 63 | }); |
64 | $("body").css("cursor", "auto"); | 64 | $("body").css("cursor", "auto"); |
65 | }); | 65 | });*/ |
66 | 66 | ||
67 | // toggle favorite property of current article | 67 | // toggle favorite property of current article |
68 | $('#setFav').click(function(){ | 68 | /* $('#setFav').click(function(){ |
69 | $("body").css("cursor", "wait"); | 69 | $("body").css("cursor", "wait"); |
70 | $.ajax( { url: './?action=toggle_fav&id={{ entry.id|e }}' }).done( | 70 | $.ajax( { url: '{{ path('star_entry', { 'id': entry.id }) }}' }).done( |
71 | function( data ) { | 71 | function( data ) { |
72 | if ( data == '1' ) { | 72 | if ( data == '1' ) { |
73 | if ( $('#setFav').hasClass("fav-off") ) { | 73 | if ( $('#setFav').hasClass("fav-off") ) { |
@@ -84,7 +84,7 @@ | |||
84 | } | 84 | } |
85 | }); | 85 | }); |
86 | $("body").css("cursor", "auto"); | 86 | $("body").css("cursor", "auto"); |
87 | }); | 87 | });*/ |
88 | 88 | ||
89 | $(window).scroll(function(e){ | 89 | $(window).scroll(function(e){ |
90 | var scrollTop = $(window).scrollTop(); | 90 | var scrollTop = $(window).scrollTop(); |
diff --git a/src/WallabagBundle/Resources/views/Static/about.html.twig b/src/WallabagBundle/Resources/views/Static/about.html.twig new file mode 100755 index 00000000..1a3c927e --- /dev/null +++ b/src/WallabagBundle/Resources/views/Static/about.html.twig | |||
@@ -0,0 +1,84 @@ | |||
1 | {% extends "WallabagBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{% trans %}About{% endtrans %}{% endblock %} | ||
4 | {% block menu %} | ||
5 | {% include "WallabagBundle::_menu.html.twig" %} | ||
6 | {% endblock %} | ||
7 | {% block content %} | ||
8 | <h2>{% trans %}About wallabag{% endtrans %}</h2> | ||
9 | |||
10 | <dl> | ||
11 | <dt>{% trans %}Project website{% endtrans %}</dt> | ||
12 | <dd><a href="https://www.wallabag.org">https://www.wallabag.org</a></dd> | ||
13 | |||
14 | <dt>{% trans %}Main developer{% endtrans %}</dt> | ||
15 | <dd><a href="mailto:nicolas@loeuillet.org">Nicolas Lœuillet</a> — <a href="http://cdetc.fr">{% trans %}website{% endtrans %}</a></dd> | ||
16 | |||
17 | <dt>{% trans %}Contributors:{% endtrans %}</dt> | ||
18 | <dd><a href="https://github.com/wallabag/wallabag/graphs/contributors">{% trans %}on Github{% endtrans %}</a></dd> | ||
19 | |||
20 | <dt>{% trans %}Bug reports{% endtrans %}</dt> | ||
21 | <dd><a href="https://support.wallabag.org">{% trans %}On our support website{% endtrans %}</a> {% trans %}or{% endtrans %} <a href="https://github.com/wallabag/wallabag/issues">{% trans %}on Github{% endtrans %}</a></dd> | ||
22 | |||
23 | <dt>{% trans %}License{% endtrans %}</dt> | ||
24 | <dd><a href="http://en.wikipedia.org/wiki/MIT_License">MIT</a></dd> | ||
25 | |||
26 | <dt>{% trans %}Version{% endtrans %}</dt> | ||
27 | <dd></dd> | ||
28 | </dl> | ||
29 | |||
30 | <p>{% trans %}wallabag is a read-it-later application: you can save a web page by keeping only content. Elements like ads or menus are deleted.{% endtrans %}</p> | ||
31 | |||
32 | <h2>{% trans %}Getting help{% endtrans %}</h2> | ||
33 | |||
34 | <dl> | ||
35 | <dt>{% trans %}Documentation{% endtrans %}</dt> | ||
36 | <dd><a href="docs/">Offline documentation</a> and <a href="https://doc.wallabag.org/">online documentation</a> (up to date)</dd> | ||
37 | |||
38 | <dt>{% trans %}Support{% endtrans %}</dt> | ||
39 | <dd><a href="http://support.wallabag.org/">http://support.wallabag.org/</a></dd> | ||
40 | </dl> | ||
41 | |||
42 | <h2>{% trans %}Helping wallabag{% endtrans %}</h2> | ||
43 | |||
44 | <p>{% trans %}wallabag is free and opensource. You can help us:{% endtrans %}</p> | ||
45 | |||
46 | <dl> | ||
47 | <dt><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb">{% trans %}via Paypal{% endtrans %}</a></dt> | ||
48 | |||
49 | <dt><a href="https://flattr.com/thing/1265480">{% trans %}via Flattr{% endtrans %}</a></dt> | ||
50 | </dl> | ||
51 | |||
52 | <h2>{% trans %}Credits{% endtrans %}</h2> | ||
53 | <dl> | ||
54 | <dt>PHP Readability</dt> | ||
55 | <dd><a href="https://bitbucket.org/fivefilters/php-readability">https://bitbucket.org/fivefilters/php-readability</a></dd> | ||
56 | |||
57 | <dt>Full Text RSS</dt> | ||
58 | <dd><a href="http://code.fivefilters.org/full-text-rss/src">http://code.fivefilters.org/full-text-rss/src</a></dd> | ||
59 | |||
60 | <dt>logo by Maylis Agniel</dt> | ||
61 | <dd><a href="https://github.com/wallabag/logo">https://github.com/wallabag/logo</a></dd> | ||
62 | |||
63 | <dt>icons</dt> | ||
64 | <dd><a href="http://icomoon.io">http://icomoon.io</a></dd> | ||
65 | |||
66 | <dt>PHP Simple HTML DOM Parser</dt> | ||
67 | <dd><a href="http://simplehtmldom.sourceforge.net/">http://simplehtmldom.sourceforge.net/</a></dd> | ||
68 | |||
69 | <dt>Session</dt> | ||
70 | <dd><a href="https://github.com/tontof/kriss_feed/blob/master/src/class/Session.php">https://github.com/tontof/kriss_feed/blob/master/src/class/Session.php</a></dd> | ||
71 | |||
72 | <dt>Twig</dt> | ||
73 | <dd><a href="http://twig.sensiolabs.org">http://twig.sensiolabs.org</a></dd> | ||
74 | |||
75 | <dt>Flash messages</dt> | ||
76 | <dd><a href="https://github.com/plasticbrain/PHP-Flash-Messages">https://github.com/plasticbrain/PHP-Flash-Messages</a></dd> | ||
77 | |||
78 | <dt>Pagination</dt> | ||
79 | <dd><a href="https://github.com/daveismyname/pagination">https://github.com/daveismyname/pagination</a></dd> | ||
80 | |||
81 | <dt>PHPePub</dt> | ||
82 | <dd><a href="https://github.com/Grandt/PHPePub/">https://github.com/Grandt/PHPePub/</a></dd> | ||
83 | </dl> | ||
84 | {% endblock %} | ||
diff --git a/src/WallabagBundle/Resources/views/_menu.html.twig b/src/WallabagBundle/Resources/views/_menu.html.twig index b001aec5..4c6a0a1b 100644 --- a/src/WallabagBundle/Resources/views/_menu.html.twig +++ b/src/WallabagBundle/Resources/views/_menu.html.twig | |||
@@ -5,13 +5,13 @@ | |||
5 | <li><a href="{{ path('archive') }}"}>{% trans %}archive{% endtrans %}</a></li> | 5 | <li><a href="{{ path('archive') }}"}>{% trans %}archive{% endtrans %}</a></li> |
6 | <li><a href="./?view=tags">{% trans %}tags{% endtrans %}</a></li> | 6 | <li><a href="./?view=tags">{% trans %}tags{% endtrans %}</a></li> |
7 | <li style="position: relative;"><a href="javascript: void(null);" id="bagit">{% trans %}save a link{% endtrans %}</a> | 7 | <li style="position: relative;"><a href="javascript: void(null);" id="bagit">{% trans %}save a link{% endtrans %}</a> |
8 | 8 | {% include "WallabagBundle::_save_form.html.twig" %} | |
9 | </li> | 9 | </li> |
10 | <li style="position: relative;"><a href="javascript: void(null);" id="search">{% trans %}search{% endtrans %}</a> | 10 | <li style="position: relative;"><a href="javascript: void(null);" id="search">{% trans %}search{% endtrans %}</a> |
11 | 11 | {% include "WallabagBundle::_search_form.html.twig" %} | |
12 | </li> | 12 | </li> |
13 | <li><a href="./?view=config">{% trans %}config{% endtrans %}</a></li> | 13 | <li><a href="./?view=config">{% trans %}config{% endtrans %}</a></li> |
14 | <li><a href="./?view=about">{% trans %}about{% endtrans %}</a></li> | 14 | <li><a href={{ path('about') }}>{% trans %}about{% endtrans %}</a></li> |
15 | <li><a class="icon icon-power" href="./?logout" title="{% trans %}logout{% endtrans %}">{% trans %}logout{% endtrans %}</a></li> | 15 | <li><a class="icon icon-power" href="./?logout" title="{% trans %}logout{% endtrans %}">{% trans %}logout{% endtrans %}</a></li> |
16 | </ul> | 16 | </ul> |
17 | 17 | ||
diff --git a/src/WallabagBundle/Resources/views/_save_form.html.twig b/src/WallabagBundle/Resources/views/_save_form.html.twig new file mode 100755 index 00000000..acaa5dbc --- /dev/null +++ b/src/WallabagBundle/Resources/views/_save_form.html.twig | |||
@@ -0,0 +1,10 @@ | |||
1 | <div id="bagit-form" class="messages info popup-form"> | ||
2 | <form method="get" action="index.php" target="_blank" id="bagit-form-form"> | ||
3 | <h2>{% trans %}Save a link{% endtrans %}</h2> | ||
4 | <a href="javascript: void(null);" id="bagit-form-close" class="close-button--popup close-button">×</a> | ||
5 | <input type="hidden" name="autoclose" value="1" /> | ||
6 | <input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" /> | ||
7 | <span id="add-link-result"></span> | ||
8 | <input type="submit" value="{% trans %}save link!"{% endtrans %} /> | ||
9 | </form> | ||
10 | </div> | ||
diff --git a/src/WallabagBundle/Resources/views/_search_form.html.twig b/src/WallabagBundle/Resources/views/_search_form.html.twig new file mode 100644 index 00000000..7eb1b67d --- /dev/null +++ b/src/WallabagBundle/Resources/views/_search_form.html.twig | |||
@@ -0,0 +1,9 @@ | |||
1 | <div id="search-form" class="messages info popup-form"> | ||
2 | <form method="get" action="index.php"> | ||
3 | <h2>{% trans %}Search{% endtrans %}</h2> | ||
4 | <a href="javascript: void(null);" id="search-form-close" class="close-button--popup close-button">×</a> | ||
5 | <input type="hidden" name="view" value="search"></input> | ||
6 | <input required placeholder="{% trans %}Enter your search here{% endtrans %}" type="text" name="search" id="searchfield"><br> | ||
7 | <input id="submit-search" type="submit" value="{% trans %}Search{% endtrans %}"></input> | ||
8 | </form> | ||
9 | </div> | ||
diff --git a/src/WallabagBundle/Resources/views/layout.html.twig b/src/WallabagBundle/Resources/views/layout.html.twig index 4a3f0f5c..34d9b1b0 100644 --- a/src/WallabagBundle/Resources/views/layout.html.twig +++ b/src/WallabagBundle/Resources/views/layout.html.twig | |||
@@ -19,9 +19,11 @@ | |||
19 | <div id="main"> | 19 | <div id="main"> |
20 | {% block menu %}{% endblock %} | 20 | {% block menu %}{% endblock %} |
21 | {% block precontent %}{% endblock %} | 21 | {% block precontent %}{% endblock %} |
22 | {% block messages %} | 22 | {% for flashMessage in app.session.flashbag.get('notice') %} |
23 | {% include "WallabagBundle::_messages.html.twig" %} | 23 | <div class="flash-notice"> |
24 | {% endblock %} | 24 | {{ flashMessage }} |
25 | </div> | ||
26 | {% endfor %} | ||
25 | <div id="content" class="w600p center"> | 27 | <div id="content" class="w600p center"> |
26 | {% block content %}{% endblock %} | 28 | {% block content %}{% endblock %} |
27 | </div> | 29 | </div> |