|
1 | 1 | <%= content_for :page_title, t('.page_title', subscription_name: @entry.subscription.name, entry_title: @entry.title) %> |
2 | 2 |
|
3 | | -<%- if @entry.read? %> |
4 | | - <%= button_to t('.mark_as_unread'), entry_path(@entry, params: { entry: { read: false } }), method: :patch %> |
5 | | -<%- else %> |
6 | | - <%= button_to t('.mark_as_read'), entry_path(@entry, params: { entry: { read: true } }), method: :patch %> |
7 | | -<%- end %> |
8 | | - |
9 | 3 | <%= link_to t('.delete'), entry_path(@entry), data: { turbo_confirm: t('.delete_confirm'), turbo_method: :delete } %> |
10 | 4 |
|
11 | | -<%= render EntryComponent.new(entry: @entry) %> |
12 | | - |
13 | | -<%= content_tag :nav, aria: { label: t('.nav_pagination_label') } do %> |
| 5 | +<%= content_tag :nav, class: 'entry-nav', aria: { label: t('.nav_pagination_label') } do %> |
14 | 6 | <%- if @previous_entry.present? %> |
15 | | - <%= link_to t('.previous'), entry_path(@previous_entry) %> |
| 7 | + <%= link_to entry_path(@previous_entry), class: 'entry-nav__item entry-nav__item--link entry-nav__item--prev' do %> |
| 8 | + <%= inline_svg_tag 'images/icons/arrow-left.svg', class: 'entry-nav__icon icon icon--sm', aria_hidden: true %> |
| 9 | + <%= t('.previous') %> |
| 10 | + <% end %> |
16 | 11 | <%- end %> |
| 12 | + |
| 13 | + <%= button_to t(@entry.read? ? '.mark_as_unread' : '.mark_as_read'), entry_path(@entry, params: { entry: { read: !@entry.read? } }), method: :patch, form_class: 'entry-nav__item entry-nav__item--status entry-nav__item--form', class: 'entry-nav__button' %> |
| 14 | + |
17 | 15 | <%- if @next_entry.present? %> |
18 | | - <%= link_to t('.next'), entry_path(@next_entry) %> |
| 16 | + <%= link_to entry_path(@next_entry), class: 'entry-nav__item entry-nav__item--link entry-nav__item--next' do %> |
| 17 | + <%= t('.next') %> |
| 18 | + <%= inline_svg_tag 'images/icons/arrow-right.svg', class: 'entry-nav__icon icon icon--sm', aria_hidden: true %> |
| 19 | + <% end %> |
19 | 20 | <%- end %> |
20 | 21 | <%- end %> |
| 22 | + |
| 23 | +<%= render EntryComponent.new(entry: @entry) %> |
0 commit comments