Skip to content

Commit

Permalink
Only display dropdown menu for authenticated users in topics#show page
Browse files Browse the repository at this point in the history
  • Loading branch information
qichunren committed Jun 22, 2024
1 parent d552de3 commit 01e8079
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/topics/_buttons.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
<%= topic_follow_tag(@topic) %>
<%= topic_favorite_tag(@topic) %>
<% end %>
<% if current_user %>
<div class="float-right">
<div class="dropdown">
<a href="#" data-bs-toggle ="dropdown">
<a href="#" data-bs-toggle="dropdown">
<%= icon_tag("ellipsis-v") %>
</a>
<%= render "menu" %>
</div>
</div>
</div>
<% end %>
</div>

0 comments on commit 01e8079

Please sign in to comment.