about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/formatter.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb
index 2d35a07bc..62047e4bd 100644
--- a/app/lib/formatter.rb
+++ b/app/lib/formatter.rb
@@ -219,6 +219,11 @@ class Formatter
       html = "#{html.strip}<p class=\"signature\">— #{footer}</p>"
     end
 
+    unless status.tags.blank?
+      tags = encode_and_link_urls(status.tags.pluck(:name).sort.map{ |t| "##{t}" }.join(' '))
+      html = "#{html}<details class=\"tags\"><summary>\xf0\x9f\x8f\xb7</summary><p class=\"tags\">#{tags}</p></details>"
+    end
+
     html.html_safe # rubocop:disable Rails/OutputSafety
   end