Skip to content

Commit

Permalink
show custom msg if no open bounties are found
Browse files Browse the repository at this point in the history
  • Loading branch information
JuzerShakir committed Aug 13, 2024
1 parent 116ad8d commit b7a9d7d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app/views/bounties/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,18 @@
</nav>
</div>

<div id="bounties">
<%= render @bounties %>
</div>
<% if @bounties.present? %>
<div id="bounties">
<%= render @bounties %>
</div>

<%== pagy_nav(@pagy).html_safe %>
<%== pagy_nav(@pagy).html_safe %>
<% else %>
<% if @filter == "open" %>
<p class="m-8 md:m-12 text-center italic text-lg md:text-xl">
There are no open bounties right now.
<br>
Spread the word that we need people to post new Beginner Bounties!
</p>
<% end %>
<% end %>

0 comments on commit b7a9d7d

Please sign in to comment.