Skip to content

Commit

Permalink
細かな特殊記号を統一した in Podcasts navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
yasulab committed Jan 29, 2025
1 parent c7bae3f commit acd0fbd
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions app/views/podcasts/_navigation.html.erb
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
<div style="display: table; font-weight: bolder; width: 100%; padding: 10px 10px; background-color:#3870c4;">
<p class="nav prev">
<% if @episode.exists?(offset: -1) %>
<%= link_to '&larr; prev'.html_safe, podcast_path(@episode.id - 1) %>
<%= link_to podcast_path(@episode.id - 1), title: '前のエピソードを見る' do %>
&laquo; prev
<% end %>
<% else %>
<%= link_to '&larr; Top'.html_safe, podcasts_path %>
<%= link_to '&laquo; Top'.html_safe, podcasts_path %>
<% end %>
</p>
<p class="nav toc" >
<a href="/podcasts">DojoCast</a></p>
<p class="nav toc">
<%= link_to '目次に戻る'.html_safe, podcasts_path %>
</p>
<p class="nav next">
<% if @episode.exists?(offset: +1) %>
<%= link_to 'next &rarr;'.html_safe, podcast_path(@episode.id + 1) %>
<%= link_to podcast_path(@episode.id + 1), title: '次のエピソードを見る' do %>
next &raquo;
<% end %>
<% else %>
<%= link_to 'Top &rarr;'.html_safe, podcasts_path %>
<%= link_to 'Top &raquo;'.html_safe, podcasts_path %>
<% end %>
</p>
</div>

0 comments on commit acd0fbd

Please sign in to comment.