aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 08:41:55 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 08:53:56 +0200
commit94c48771afa30e4594832dd3be4987f6ba7b6ea5 (patch)
tree625ad8b2716eedae4e7c95a808d0f2882130c9d0 /app/views
parent34e16b7d7a88013578014be0402ab686b03f235b (diff)
downloadoperum-94c48771afa30e4594832dd3be4987f6ba7b6ea5.tar.gz
operum-94c48771afa30e4594832dd3be4987f6ba7b6ea5.zip
Use the plain exporter for thing titles
Set the title for each thing a plain text export of it, so the user can easily check what exactly that row stands for, which is useful for things with similar/identical titles. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/things/_thing.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/things/_thing.html.erb b/app/views/things/_thing.html.erb
index 7c5ea93..f3cda03 100644
--- a/app/views/things/_thing.html.erb
+++ b/app/views/things/_thing.html.erb
@@ -2,6 +2,8 @@
<div class="thing_head">
<div class="dot dot_<%= thing.kind %>" title="<%= I18n.t("things.kind.#{thing.kind}") %>"></div>
</div>
- <div class="thing_body"><%= link_to title_to_html(title: thing.title), edit_thing_path(thing) %></div>
+ <div class="thing_body" title="<%= PlainExporter.new(things: [thing]).export %>">
+ <%= link_to title_to_html(title: thing.title), edit_thing_path(thing) %>
+ </div>
<div class="thing_tail"><%= thing.rate %></div>
</div>