diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry')
6 files changed, 0 insertions, 380 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/edit.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/edit.html.twig deleted file mode 100644 index e974fc69..00000000 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/edit.html.twig +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'entry.edit.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | {{ form(form) }} | ||
7 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig deleted file mode 100644 index 4182628f..00000000 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ /dev/null | |||
@@ -1,219 +0,0 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block head %} | ||
4 | {{ parent() }} | ||
5 | {% if tag is defined and app.user.config.feedToken %} | ||
6 | <link rel="alternate" type="application/atom+xml" href="{{ path('tag_feed', {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': tag.slug}) }}" /> | ||
7 | {% endif %} | ||
8 | {% endblock %} | ||
9 | |||
10 | {% block title %} | ||
11 | {% set filter = '' %} | ||
12 | {% if tag is defined %} | ||
13 | {% set filter = tag %} | ||
14 | {% endif %} | ||
15 | {% if searchTerm is defined and searchTerm is not empty %} | ||
16 | {% set filter = searchTerm %} | ||
17 | {% endif %} | ||
18 | {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'filter': filter} %} | ||
19 | {% endblock %} | ||
20 | |||
21 | {% block content %} | ||
22 | {% set currentRoute = app.request.attributes.get('_route') %} | ||
23 | {% if currentRoute == 'homepage' %} | ||
24 | {% set currentRoute = 'unread' %} | ||
25 | {% endif %} | ||
26 | {% set listMode = app.user.config.listMode %} | ||
27 | <div class="results"> | ||
28 | <div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div> | ||
29 | <div class="pagination"> | ||
30 | <a href="{{ path('switch_view_mode') }}"><i class="listMode-btn material-icons md-24">{% if listMode == 0 %}list{% else %}view_module{% endif %}</i></a> | ||
31 | {% if app.user.config.feedToken %} | ||
32 | {% include "@WallabagCore/themes/common/Entry/_feed_link.html.twig" %} | ||
33 | {% endif %} | ||
34 | {% if currentRoute in ['unread', 'starred', 'archive', 'untagged', 'all'] %} | ||
35 | <a href="{{ path('random_entry', { 'type': currentRoute }) }}"><i class="btn-clickable material-icons md-24 js-random-action">casino</i></a> | ||
36 | {% endif %} | ||
37 | <i class="btn-clickable download-btn material-icons md-24 js-export-action">file_download</i> | ||
38 | <i class="btn-clickable filter-btn material-icons md-24 js-filters-action">filter_list</i> | ||
39 | {% if entries.getNbPages > 1 %} | ||
40 | {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} | ||
41 | {% endif %} | ||
42 | </div> | ||
43 | </div> | ||
44 | |||
45 | {% for entry in entries %} | ||
46 | <div id="entry-{{ entry.id|e }}" class="{% if listMode == 0 %}entry{% else %}listmode entry{% endif %}"> | ||
47 | <h2><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|e|raw }}">{{ entry.title | striptags | truncate(80, true, '…') | default('entry.default_title'|trans) | raw }}</a></h2> | ||
48 | |||
49 | {% set readingTime = entry.readingTime / app.user.config.readingSpeed * 200 %} | ||
50 | <div class="estimatedTime"> | ||
51 | <span class="tool reading-time"> | ||
52 | {% if readingTime > 0 %} | ||
53 | {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }} | ||
54 | {% else %} | ||
55 | {{ 'entry.list.reading_time_less_one_minute'|trans|raw }} | ||
56 | {% endif %} | ||
57 | </span> | ||
58 | <span class="tool created-at"> | ||
59 | <i class="tool icon icon-calendar" title="{{ 'entry.view.created_at'|trans }}"> | ||
60 | {{ entry.createdAt|date('Y-m-d') }} | ||
61 | </i> | ||
62 | </span> | ||
63 | </div> | ||
64 | |||
65 | <ul class="tools links"> | ||
66 | <li><a href="{{ entry.url|e }}" target="_blank" rel="noopener" title="{{ 'entry.list.original_article'|trans }} : {{ entry.title|e }}"><span>{{ entry.domainName|removeWww }}</span></a></li> | ||
67 | <li><a title="{{ 'entry.list.toogle_as_read'|trans }}" class="tool icon {% if entry.isArchived == 0 %}archive-off{% else %}archive{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"><i class="material-icons md-24 vertical-align-middle">check</i><span>{{ 'entry.list.toogle_as_read'|trans }}</span></a></li> | ||
68 | <li><a title="{{ 'entry.list.toogle_as_star'|trans }}" class="tool icon {% if entry.isStarred == 0 %}fav-off{% else %}fav{% endif %}" href="{{ path('star_entry', { 'id': entry.id }) }}"><i class="material-icons md-24 vertical-align-middle">star_rate</i><span>{{ 'entry.list.toogle_as_star'|trans }}</span></a></li> | ||
69 | <li><a title="{{ 'entry.list.delete'|trans }}" class="tool icon" onclick="return confirm('{{ 'entry.confirm.delete'|trans|escape('js') }}')" href="{{ path('delete_entry', { 'id': entry.id }) }}"><i class="material-icons md-24 vertical-align-middle">delete</i><span>{{ 'entry.list.delete'|trans }}</span></a></li> | ||
70 | </ul> | ||
71 | {% if (entry.previewPicture is null or listMode == 1) %} | ||
72 | <ul class="card-entry-tags"> | ||
73 | {% for tag in entry.tags %} | ||
74 | <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li> | ||
75 | {% endfor %} | ||
76 | </ul> | ||
77 | <p {% if listMode == 1 %}class="hide"{% endif %}>{{ entry.content|striptags|slice(0, 300) }}…</p> | ||
78 | {% else %} | ||
79 | <ul class="card-entry-labels"> | ||
80 | {% for tag in entry.tags | slice(0, 3) %} | ||
81 | <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li> | ||
82 | {% endfor %} | ||
83 | </ul> | ||
84 | <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|e|raw }}" /> | ||
85 | {% endif %} | ||
86 | </div> | ||
87 | {% endfor %} | ||
88 | |||
89 | {% if entries.getNbPages > 1 %} | ||
90 | {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} | ||
91 | {% endif %} | ||
92 | |||
93 | <!-- Export --> | ||
94 | <aside id="download-form"> | ||
95 | {% set currentTag = null %} | ||
96 | {% if tag is defined %} | ||
97 | {% set currentTag = tag %} | ||
98 | {% endif %} | ||
99 | {% set exportSearchTerm = null %} | ||
100 | {% if searchTerm is defined %} | ||
101 | {% set exportSearchTerm = searchTerm %} | ||
102 | {% endif %} | ||
103 | {% set previousRoute = app.request.attributes.get('currentRoute') %} | ||
104 | <h2>{{ 'entry.list.export_title'|trans }}</h2> | ||
105 | <a href="javascript: void(null);" id="download-form-close" class="close-button--popup close-button">×</a> | ||
106 | <ul> | ||
107 | {% if craue_setting('export_epub') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'epub', 'tag' : currentTag, 'search_entry[term]' : exportSearchTerm, 'currentRoute' : previousRoute }) }}">EPUB</a></li>{% endif %} | ||
108 | {% if craue_setting('export_mobi') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'mobi', 'tag' : currentTag, 'search_entry[term]' : exportSearchTerm, 'currentRoute' : previousRoute }) }}">MOBI</a></li>{% endif %} | ||
109 | {% if craue_setting('export_pdf') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'pdf', 'tag' : currentTag, 'search_entry[term]' : exportSearchTerm, 'currentRoute' : previousRoute }) }}">PDF</a></li>{% endif %} | ||
110 | {% if craue_setting('export_json') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'json', 'tag' : currentTag, 'search_entry[term]' : exportSearchTerm, 'currentRoute' : previousRoute }) }}">JSON</a></li>{% endif %} | ||
111 | {% if craue_setting('export_csv') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'csv', 'tag' : currentTag, 'search_entry[term]' : exportSearchTerm, 'currentRoute' : previousRoute }) }}">CSV</a></li>{% endif %} | ||
112 | {% if craue_setting('export_txt') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'txt', 'tag' : currentTag, 'search_entry[term]' : exportSearchTerm, 'currentRoute' : previousRoute }) }}">TXT</a></li>{% endif %} | ||
113 | {% if craue_setting('export_xml') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'xml', 'tag' : currentTag, 'search_entry[term]' : exportSearchTerm, 'currentRoute' : previousRoute }) }}">XML</a></li>{% endif %} | ||
114 | </ul> | ||
115 | </aside> | ||
116 | |||
117 | <!-- Filter --> | ||
118 | {% if form is not null %} | ||
119 | <div id="filters"> | ||
120 | <form method="get" action="{{ path('all') }}"> | ||
121 | <h2>{{ 'entry.filters.title'|trans }}</h2> | ||
122 | <a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">×</a> | ||
123 | |||
124 | <div id="filter-status" class="filter-group"> | ||
125 | {% if currentRoute != 'untagged' and nbEntriesUntagged != 0 %} | ||
126 | <div class=""> | ||
127 | <a href="{{ path('untagged') }}">{{ 'tag.list.see_untagged_entries'|trans }} ({{nbEntriesUntagged}})</a> | ||
128 | </div> | ||
129 | {% endif %} | ||
130 | |||
131 | <div class=""> | ||
132 | <label>{{ 'entry.filters.status_label'|trans }}</label> | ||
133 | </div> | ||
134 | <div class="input-field"> | ||
135 | {{ form_widget(form.isArchived) }} | ||
136 | {{ form_label(form.isArchived) }} | ||
137 | </div> | ||
138 | |||
139 | <div class="input-field"> | ||
140 | {{ form_widget(form.isStarred) }} | ||
141 | {{ form_label(form.isStarred) }} | ||
142 | </div> | ||
143 | |||
144 | <div class="input-field"> | ||
145 | {{ form_widget(form.isUnread) }} | ||
146 | {{ form_label(form.isUnread) }} | ||
147 | </div> | ||
148 | |||
149 | <div class="input-field"> | ||
150 | {{ form_widget(form.previewPicture) }} | ||
151 | {{ form_label(form.previewPicture) }} | ||
152 | </div> | ||
153 | |||
154 | <div class="input-field"> | ||
155 | {{ form_widget(form.isPublic) }} | ||
156 | {{ form_label(form.isPublic) }} | ||
157 | </div> | ||
158 | </div> | ||
159 | |||
160 | <div id="filter-language" class="filter-group"> | ||
161 | {{ form_label(form.language) }} | ||
162 | <div class="input-field "> | ||
163 | {{ form_widget(form.language) }} | ||
164 | </div> | ||
165 | </div> | ||
166 | |||
167 | <div id="filter-http-status" class="filter-group"> | ||
168 | {{ form_label(form.httpStatus) }} | ||
169 | <div class="input-field "> | ||
170 | {{ form_widget(form.httpStatus) }} | ||
171 | </div> | ||
172 | </div> | ||
173 | |||
174 | <div id="filter-reading-time" class="filter-group"> | ||
175 | <div class=""> | ||
176 | {{ form_label(form.readingTime) }} | ||
177 | </div> | ||
178 | <div class="input-field "> | ||
179 | <label for="entry_filter_readingTime_left_number">{{ 'entry.filters.reading_time.from'|trans }}</label> | ||
180 | {{ form_widget(form.readingTime.left_number, {'type': 'number'}) }} | ||
181 | </div> | ||
182 | <div class="input-field "> | ||
183 | <label for="entry_filter_readingTime_right_number">{{ 'entry.filters.reading_time.to'|trans }}</label> | ||
184 | {{ form_widget(form.readingTime.right_number, {'type': 'number'}) }} | ||
185 | </div> | ||
186 | </div> | ||
187 | |||
188 | <div id="filter-domain-name" class="filter-group"> | ||
189 | {{ form_label(form.domainName) }} | ||
190 | <div class="input-field "> | ||
191 | {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }} | ||
192 | </div> | ||
193 | </div> | ||
194 | |||
195 | <div id="filter-creation-date" class="filter-group"> | ||
196 | <div class=""> | ||
197 | {{ form_label(form.createdAt) }} | ||
198 | </div> | ||
199 | <div class="input-field "> | ||
200 | <label for="entry_filter_createdAt_left_date" class="active">{{ 'entry.filters.created_at.from'|trans }}</label> | ||
201 | {{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }} | ||
202 | </div> | ||
203 | <div class="input-field "> | ||
204 | <label for="entry_filter_createdAt_right_date" class="active">{{ 'entry.filters.created_at.to'|trans }}</label> | ||
205 | {{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }} | ||
206 | </div> | ||
207 | </div> | ||
208 | |||
209 | <div id="filter-buttons" class="filter-group"> | ||
210 | <div class=""> | ||
211 | <a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{{ 'entry.filters.action.clear'|trans }}</a> | ||
212 | </div> | ||
213 | |||
214 | <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button> | ||
215 | </div> | ||
216 | </form> | ||
217 | </div> | ||
218 | {% endif %} | ||
219 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig deleted file mode 100644 index c2e69a27..00000000 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig +++ /dev/null | |||
@@ -1,116 +0,0 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ entry.title|e|default('entry.default_title'|trans)|raw }} ({{ entry.domainName|removeWww }}){% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | <div id="article"> | ||
7 | <header class="mbm"> | ||
8 | <h1><span{% if entry.language is defined and entry.language is not null %} lang="{{ entry.getHTMLLanguage() }}"{% endif %}>{{ entry.title|e|default('entry.default_title'|trans)|raw }}</span> <a href="{{ path('edit', { 'id': entry.id }) }}" class="nostyle" title="{{ 'entry.view.edit_title'|trans }}">✎</a></h1> | ||
9 | </header> | ||
10 | |||
11 | <div id="article_toolbar"> | ||
12 | <ul class="links"> | ||
13 | <li class="topPosF"><a href="#top" title="{{ 'entry.view.left_menu.back_to_top'|trans }}" class="tool top icon icon-arrow-up-thick"><span>{{ 'entry.view.left_menu.set_as_read'|trans }}</span></a></li> | ||
14 | <li><a href="{{ entry.url|e }}" target="_blank" rel="noopener" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e }}" class="tool link icon icon-link original"><span>{{ entry.domainName|removeWww }}</span></a></li> | ||
15 | <li><a title="{{ 'entry.view.left_menu.re_fetch_content'|trans }}" class="tool icon icon-reload" href="{{ path('reload_entry', { 'id': entry.id }) }}"><span>{{ 'entry.view.left_menu.re_fetch_content'|trans }}</span></a></li> | ||
16 | |||
17 | {% set markAsReadLabel = 'entry.view.left_menu.set_as_unread' %} | ||
18 | {% if entry.isArchived == 0 %} | ||
19 | {% set markAsReadLabel = 'entry.view.left_menu.set_as_read' %} | ||
20 | {% endif %} | ||
21 | |||
22 | <li><a title="{{ markAsReadLabel|trans }}" class="tool icon icon-check {% if entry.isArchived == 0 %}archive-off{% else %}archive{% endif %} markasread" href="{{ path('archive_entry', { 'id': entry.id }) }}"><span>{{ markAsReadLabel|trans }}</span></a></li> | ||
23 | <li><a title="{{ 'entry.view.left_menu.set_as_starred'|trans }}" class="tool icon icon-star {% if entry.isStarred == 0 %}fav-off{% else %}fav{% endif %} favorite" href="{{ path('star_entry', { 'id': entry.id }) }}"><span>{{ 'entry.view.left_menu.set_as_starred'|trans }}</span></a></li> | ||
24 | <li><a id="nav-btn-add-tag" class="tool icon icon-price-tags" title="{{ 'entry.view.left_menu.add_a_tag'|trans }}"><span>{{ 'entry.view.left_menu.add_a_tag'|trans }}</span></a></li> | ||
25 | <li><a title="{{ 'entry.view.left_menu.delete'|trans }}" onclick="return confirm('{{ 'entry.confirm.delete'|trans|escape('js') }}')" class="tool delete icon icon-trash" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{{ 'entry.view.left_menu.delete'|trans }}</span></a></li> | ||
26 | {% if craue_setting('share_public') %} | ||
27 | <li><a href="{{ path('share', {'id': entry.id }) }}" target="_blank" class="tool icon icon-eye" title="{{ 'entry.view.left_menu.public_link'|trans }}"><span>{{ 'entry.view.left_menu.public_link'|trans }}</span></a></li> | ||
28 | <li><a href="{{ path('delete_share', {'id': entry.id }) }}" class="tool icon icon-no-eye" title="{{ 'entry.view.left_menu.delete_public_link'|trans }}"><span>{{ 'entry.view.left_menu.delete_public_link'|trans }}</span></a></li> | ||
29 | {% endif %} | ||
30 | {% if craue_setting('share_twitter') %}<li><a href="https://twitter.com/share?text={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@wallabagapp" target="_blank" rel="noopener" class="tool twitter icon icon-twitter" title="Tweet"><span>Tweet</span></a></li>{% endif %} | ||
31 | {% if craue_setting('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="Email"><span>Email</span></a></li>{% endif %} | ||
32 | {% if craue_setting('share_shaarli') %}<li><a href="{{ craue_setting('shaarli_url') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}&tags={{ entry.tags|join(',')|url_encode }}{% if craue_setting('shaarli_share_origin_url') %}&original_url={{ entry.originUrl|url_encode }}{% endif %}" target="_blank" rel="noopener" class="tool icon-image icon-image--shaarli" title="shaarli"><span>shaarli</span></a></li>{% endif %} | ||
33 | {% if craue_setting('share_scuttle') %}<li><a href="{{ craue_setting('scuttle_url') }}/bookmarks.php?action=add&address={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}&tags={{ entry.tags|join(',')|url_encode }}" target="_blank" rel="noopener" class="tool icon-image icon-image--scuttle" title="scuttle"><span>scuttle</span></a></li>{% endif %} | ||
34 | {% if craue_setting('share_diaspora') %}<li><a href="{{ craue_setting('diaspora_url') }}/bookmarklet?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}¬es=&v=1&noui=1&jump=doclose" target="_blank" rel="noopener" class="tool diaspora icon-image icon-image--diaspora" title="diaspora"><span>diaspora</span></a></li>{% endif %} | ||
35 | {% if craue_setting('share_unmark') %}<li><a href="{{ craue_setting('unmark_url') }}/mark/add?url={{ entry.url|url_encode }}&title={{entry.title|url_encode}}&v=6" target="_blank" rel="noopener" class="tool unmark icon-image icon-image--unmark" title="unmark"><span>unmark.it</span></a></li>{% endif %} | ||
36 | {% if craue_setting('carrot') %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon-image icon-image--carrot" target="_blank" rel="noopener" title="carrot"><span>Carrot</span></a></li>{% endif %} | ||
37 | {% if craue_setting('show_printlink') %}<li><a title="{{ 'entry.view.left_menu.print'|trans }}" class="tool icon icon-print" href="javascript: window.print();"><span>{{ 'entry.view.left_menu.print'|trans }}</span></a></li>{% endif %} | ||
38 | {% if craue_setting('export_epub') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'epub' }) }}" title="Generate ePub file">EPUB</a></li>{% endif %} | ||
39 | {% if craue_setting('export_mobi') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'mobi' }) }}" title="Generate Mobi file">MOBI</a></li>{% endif %} | ||
40 | {% if craue_setting('export_pdf') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'pdf' }) }}" title="Generate PDF file">PDF</a></li>{% endif %} | ||
41 | <li><a href="mailto:siteconfig@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{{ 'entry.view.left_menu.problem.label'|trans }}" class="tool bad-display icon icon-delete"><span>{{ 'entry.view.left_menu.problem.label'|trans }}</span></a></li> | ||
42 | </ul> | ||
43 | </div> | ||
44 | |||
45 | <div id="article-informations"> | ||
46 | <i class="tool icon icon-calendar" title="{{ 'entry.view.created_at'|trans }}"> | ||
47 | {{ entry.createdAt|date('Y-m-d H:i') }} | ||
48 | </i> | ||
49 | |||
50 | {% if entry.publishedAt is not null %} | ||
51 | <i class="tool icon icon-pencil2" title="{{ 'entry.view.published_at'|trans }}"> | ||
52 | {{ entry.publishedAt|date('Y-m-d H:i') }} | ||
53 | </i> | ||
54 | {% endif %} | ||
55 | |||
56 | {% if entry.publishedBy is not empty %} | ||
57 | <i class="tool icon icon-users" title="{{ 'entry.view.published_by'|trans }}"> | ||
58 | {% for author in entry.publishedBy %} | ||
59 | {{ author }}{% if not loop.last %}, {% endif %} | ||
60 | {% endfor %} | ||
61 | </i> | ||
62 | {% endif %} | ||
63 | |||
64 | <i class="tool icon icon-time"> | ||
65 | {% set readingTime = entry.readingTime / app.user.config.readingSpeed * 200 %} | ||
66 | {% if readingTime > 0 %} | ||
67 | {{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }} | ||
68 | {% else %} | ||
69 | {{ 'entry.list.reading_time_less_one_minute_short'|trans|raw }} | ||
70 | {% endif %} | ||
71 | </i> | ||
72 | |||
73 | <span class="tool link"><i class="material-icons">comment</i> {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }}</span> | ||
74 | |||
75 | {% if entry.originUrl is not empty %} | ||
76 | <i class="material-icons" title="{{ 'entry.view.provided_by'|trans }}">launch</i> | ||
77 | <a href="{{ entry.originUrl|e }}" target="_blank" rel="noopener" class="tool"> | ||
78 | {{ entry.originUrl|striptags|removeSchemeAndWww|truncate(32) }} | ||
79 | </a> | ||
80 | {% endif %} | ||
81 | |||
82 | <aside class="tags"> | ||
83 | <div class="card-entry-tags"> | ||
84 | {% for tag in entry.tags %} | ||
85 | <span class="label-outline"> | ||
86 | <i class="material-icons">label_outline</i> | ||
87 | <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a> | ||
88 | <a href="{{ path('remove_tag', { 'entry': entry.id, 'tag': tag.id }) }}" onclick="return confirm('{{ 'entry.confirm.delete_tag'|trans|escape('js') }}')" class="nostyle"> | ||
89 | <i>✘</i> | ||
90 | </a> | ||
91 | </span> | ||
92 | {% endfor %} | ||
93 | </div> | ||
94 | <div class="input-field baggy-add-tag" style="display: none"> | ||
95 | {{ render(controller( "WallabagCoreBundle:Tag:addTagForm", { 'id': entry.id } )) }} | ||
96 | </div> | ||
97 | </aside> | ||
98 | </div> | ||
99 | <article{% if entry.language is defined and entry.language is not null %} lang="{{ entry.getHTMLLanguage() }}"{% endif %}> | ||
100 | {{ entry.content | raw }} | ||
101 | </article> | ||
102 | </div> | ||
103 | |||
104 | <script id="annotationroutes" type="application/json"> | ||
105 | { | ||
106 | "prefix": "", | ||
107 | "urls": { | ||
108 | "create": "{{ path('annotations_post_annotation', { 'entry': entry.id }) }}", | ||
109 | "update": "{{ path('annotations_put_annotation', { 'annotation': 'idAnnotation' }) }}", | ||
110 | "destroy": "{{ path('annotations_delete_annotation', { 'annotation': 'idAnnotation' }) }}", | ||
111 | "search": "{{ path('annotations_get_annotations', { 'entry': entry.id }) }}" | ||
112 | }, | ||
113 | "entryId": "{{ entry.id }}" | ||
114 | } | ||
115 | </script> | ||
116 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/new.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/new.html.twig deleted file mode 100644 index 03768a3d..00000000 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/new.html.twig +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'entry.new.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | {{ render(controller( "WallabagCoreBundle:Entry:addEntryForm" )) }} | ||
7 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/new_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/new_form.html.twig deleted file mode 100644 index 8c129068..00000000 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/new_form.html.twig +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | <form name="entry" method="post" action="{{ path('new_entry')}}"> | ||
2 | {% if form_errors(form) %} | ||
3 | <span class="black-text">{{ form_errors(form) }}</span> | ||
4 | {% endif %} | ||
5 | |||
6 | {% if form_errors(form.url) %} | ||
7 | <span class="black-text">{{ form_errors(form.url) }}</span> | ||
8 | {% endif %} | ||
9 | |||
10 | {{ form_label(form.url) }} | ||
11 | {{ form_widget(form.url, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.new.placeholder'} }) }} | ||
12 | |||
13 | {{ form_rest(form) }} | ||
14 | </form> | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/search_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/search_form.html.twig deleted file mode 100644 index 20821b6d..00000000 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/search_form.html.twig +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | <form name="search" method="GET" action="{{ path('search')}}"> | ||
2 | <h2>{{ 'menu.left.search'|trans }}</h2> | ||
3 | <a href="javascript: void(null);" id="search-form-close" class="close-button--popup close-button">×</a> | ||
4 | {% if form_errors(form) %} | ||
5 | <span class="black-text">{{ form_errors(form) }}</span> | ||
6 | {% endif %} | ||
7 | |||
8 | {% if form_errors(form.term) %} | ||
9 | <span class="black-text">{{ form_errors(form.term) }}</span> | ||
10 | {% endif %} | ||
11 | |||
12 | <input type="hidden" name="currentRoute" value="{{ currentRoute }}" /> | ||
13 | |||
14 | {{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }} | ||
15 | |||
16 | {{ form_rest(form) }} | ||
17 | </form> | ||