aboutsummaryrefslogtreecommitdiff
path: root/app/views/comments/_comment.html.erb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-27 22:01:42 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-27 22:01:42 +0100
commitffb794a7255b8cbb89d2a4f5490feb59911b8014 (patch)
treeb3bb1b612196ea59ead4ab4e14eac54c7486563f /app/views/comments/_comment.html.erb
parentac58c1ba27a68c69d185ee402247a92915fe1f22 (diff)
downloadoperum-ffb794a7255b8cbb89d2a4f5490feb59911b8014.tar.gz
operum-ffb794a7255b8cbb89d2a4f5490feb59911b8014.zip
Replace underscores with the proper HTML tags
This was already handled correctly in the case of TeX and CSV, but the HTML rendering was still to be handled. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'app/views/comments/_comment.html.erb')
-rw-r--r--app/views/comments/_comment.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb
index 8c0975e..5ee9ec3 100644
--- a/app/views/comments/_comment.html.erb
+++ b/app/views/comments/_comment.html.erb
@@ -4,7 +4,7 @@
<% if defined?(idx) %>
<span title="Commented on <%= comment.created_at %>"><b><%= I18n.t('comments.title') %></b> #<%= idx + 1 %></span>
<% else %>
- <span title="Commented on <%= comment.created_at %>"><b><%= I18n.t('comments.title') %></b> <%= I18n.t('general.in') %> <%= link_to comment.thing.title, thing_path(comment.thing) %></span>
+ <span title="Commented on <%= comment.created_at %>"><b><%= I18n.t('comments.title') %></b> <%= I18n.t('general.in') %> <%= link_to title_to_html(title: comment.thing.title), thing_path(comment.thing) %></span>
<% end %>
</div>