Skip to content

Commit

Permalink
much nicer links
Browse files Browse the repository at this point in the history
  • Loading branch information
eddierubeiz committed Oct 23, 2023
1 parent 924ddf3 commit bf3fb3f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/views/admin/assets/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@

<p>
<% if @previous_model %>
Previous: <%= link_to @previous_model.title, [:admin, @previous_model] %>
<%= link_to "« Previous", [:admin, @previous_model] %>
<% else %>
<%= link_to "« Previous", "", class: "btn-link disabled" %>
<% end %>
|
<% if @next_model %>
Next: <%= link_to @next_model.title, [:admin, @next_model] %>
<%= link_to "Next »", [:admin, @next_model] %>
<% else %>
<%= link_to "Next »", "", class: "btn-link disabled" %>
<% end %>
<p>

Expand Down

0 comments on commit bf3fb3f

Please sign in to comment.