Skip to content

Commit

Permalink
Move "new artist" link to navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo committed Nov 14, 2023
1 parent 7b14500 commit 9884293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/artists/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
</div>
<% end %>

<% content_for :admin do %>
<% content_for :navbar do %>
<% if policy(Artist).new? %>
<%= text_link_to "New artist", new_artist_path %>
<%= link_to "New artist", new_artist_path, class: 'px-2 py-1 bg-amber-600 hover:bg-amber-500 text-white cursor-pointer text-sm' %>
<% end %>
<% end %>
</div>

0 comments on commit 9884293

Please sign in to comment.