From 0ac4bcf75fc4fb83f0e4b6da7a3980abf9d9be46 Mon Sep 17 00:00:00 2001 From: drusepth Date: Fri, 15 Apr 2022 14:47:53 -0700 Subject: [PATCH] wrap up filter bar styling for now --- app/helpers/heroicons_helper.rb | 9 ++ app/views/content/index.html.erb | 207 ++++++++----------------------- 2 files changed, 62 insertions(+), 154 deletions(-) create mode 100644 app/helpers/heroicons_helper.rb diff --git a/app/helpers/heroicons_helper.rb b/app/helpers/heroicons_helper.rb new file mode 100644 index 00000000..e31a9eed --- /dev/null +++ b/app/helpers/heroicons_helper.rb @@ -0,0 +1,9 @@ +module HeroiconsHelper + def chevron_down + ''' + + '''.html_safe + end +end \ No newline at end of file diff --git a/app/views/content/index.html.erb b/app/views/content/index.html.erb index b8966217..858c68e2 100644 --- a/app/views/content/index.html.erb +++ b/app/views/content/index.html.erb @@ -1,3 +1,4 @@ +
<%= image_tag asset_path("card-headers/#{@content_type_name.downcase.pluralize}.webp"), class: 'h-32 w-full object-cover lg:h-48' %> @@ -52,7 +53,8 @@
-
+ +
- + Sort <%= chevron_down %>
-
@@ -267,124 +254,37 @@ -
-
-

- Filters - , active -

+ <% if @filtered_page_tags %> +
+
+

+ Showing only <%= @content_type_name.pluralize %> with tags + , active +

- + -
-
- - Objects - - +
+
+ + Objects + + +
-
+ <% end %>
-
- list filter bar - <%= render partial: 'content/components/list_filter_bar', locals: { content_type: @content_type_class } %> -
+<%# render partial: 'content/components/list_filter_bar', locals: { content_type: @content_type_class } %> <%# to be made into new card list partial? %>