From 250ef8b5d4f6cb457c4976528f72f6ea7bf5f6cc Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 13 Oct 2023 12:50:33 -0400 Subject: Tag cloud --- app/views/tags/index.html.haml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 app/views/tags/index.html.haml (limited to 'app/views') diff --git a/app/views/tags/index.html.haml b/app/views/tags/index.html.haml new file mode 100644 index 0000000..c9f1e85 --- /dev/null +++ b/app/views/tags/index.html.haml @@ -0,0 +1,4 @@ +%h2.centered Tag cloud +#tag-cloud + - tag_cloud @tags, %w[xs s m l xl] do |tag, css_class| + = link_to tag.name, tag_url(tag.name), class: css_class, title: tag.taggings_count -- cgit 1.4.1