diff --git a/app/views/home/_dotations.html.erb b/app/views/home/_dotations.html.erb index 4080fda..84e4c65 100644 --- a/app/views/home/_dotations.html.erb +++ b/app/views/home/_dotations.html.erb @@ -1,4 +1,4 @@ -<% if @dotations.blank? %> +
<%= render 'filter_form' %> @@ -6,36 +6,43 @@
-

Uwagi

+

Informacje

-
- -
Informacja
- Brak danych do wyświetlenia + <% if @dotations.blank? %> +
+
Brak dotacji do wyświetlenia
+
+
+
+ +
+
+
+ <% else %> +
+
+
Znalezionych dotacji: <%= @dotations.count %>
+
+ +
+
+
+ <% end %>
-
-
-
- -
-
- -<% else %> -
-
- <%= render 'filter_form' %> -
-
- <% @dotations.each do |dotation| %> - <%= render 'dotation_card', dotation: dotation %> + <% unless @dotations.blank? %> + <% @dotations.each do |dotation| %> + <%= render 'dotation_card', dotation: dotation %> + <% end %> <% end %>
- -<% end %> diff --git a/app/views/home/_filter_form.html.erb b/app/views/home/_filter_form.html.erb index 61b31c1..e634728 100644 --- a/app/views/home/_filter_form.html.erb +++ b/app/views/home/_filter_form.html.erb @@ -130,13 +130,6 @@

-
-
- -
-
<% end %>