From b7a9d7d5f673abc22a81c603cde691700f85acc5 Mon Sep 17 00:00:00 2001 From: Juzer Shakir Date: Tue, 13 Aug 2024 13:03:56 +0530 Subject: [PATCH] show custom msg if no open bounties are found --- app/views/bounties/index.html.erb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/app/views/bounties/index.html.erb b/app/views/bounties/index.html.erb index 9b450eb..abbce0a 100644 --- a/app/views/bounties/index.html.erb +++ b/app/views/bounties/index.html.erb @@ -12,8 +12,18 @@ -
- <%= render @bounties %> -
+<% if @bounties.present? %> +
+ <%= render @bounties %> +
-<%== pagy_nav(@pagy).html_safe %> + <%== pagy_nav(@pagy).html_safe %> +<% else %> + <% if @filter == "open" %> +

+ There are no open bounties right now. +
+ Spread the word that we need people to post new Beginner Bounties! +

+ <% end %> +<% end %>