diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/comments/_comment.html.erb | 2 | ||||
| -rw-r--r-- | app/views/things/_thing.html.erb | 2 |
2 files changed, 2 insertions, 2 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> diff --git a/app/views/things/_thing.html.erb b/app/views/things/_thing.html.erb index 5a31ccc..7c5ea93 100644 --- a/app/views/things/_thing.html.erb +++ b/app/views/things/_thing.html.erb @@ -2,6 +2,6 @@ <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 thing.title, edit_thing_path(thing) %></div> + <div class="thing_body"><%= link_to title_to_html(title: thing.title), edit_thing_path(thing) %></div> <div class="thing_tail"><%= thing.rate %></div> </div> |
