Skip to content

Commit

Permalink
When there are no comments add a link for "be the first to comment"
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed May 30, 2024
1 parent 891cf8c commit 88b8dc3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/views/_tailwind/applications/_comments_text.html.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
<%= pa_link_to pluralize(comments.count, "comment"), "#comments" %>
made here on Planning Alerts
<% if comments.count == 0 %>
<%= pa_link_to "Be the first to comment", { anchor: "add-comment" } %>
<% else %>
<%= pa_link_to pluralize(comments.count, "comment"), "#comments" %>
made here on Planning Alerts
<% end %>

0 comments on commit 88b8dc3

Please sign in to comment.