Skip to content

Commit

Permalink
fix sizing and cache clearing for categories
Browse files Browse the repository at this point in the history
  • Loading branch information
cguess committed Sep 24, 2024
1 parent 828bf46 commit f88b6fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/views/media_vault/media/_archive_item.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,15 @@
<% end %>
</div>
</div>
<div class="flex flex-row space-x-4 space-y-4 max-w-full flex-wrap">
<%# Just a note that this logic makes no sense, but whatever %>
<% if defined?(single_page) && single_page == true %>
<div class="flex flex-row space-x-2 space-y-2 max-w-full flex-wrap">
<% archive_item_self.archive_item.categories.pluck(:name).each do |category| %>
<div class="mt-4 border-4 text-gray-800 font-medium px-5 py-1.5 rounded-lg">
<div class="mt-2 border-4 text-gray-800 font-medium px-5 py-1.5 rounded-lg">
<%= category.chomp %>
</div>
<% end %>
</div>
<% end %>
</div>
</div>
2 changes: 2 additions & 0 deletions lib/tasks/categorize.rake
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ namespace :categorize do
next
end
end

Rails.cache.clear
end
end

0 comments on commit f88b6fc

Please sign in to comment.