X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d739943b36901ed30d8a715e113fb0a34b14d2e4..7e7ede890e8e948236d3dbc48e24aca00cd01f62:/app/helpers/note_helper.rb?ds=sidebyside diff --git a/app/helpers/note_helper.rb b/app/helpers/note_helper.rb index 4e7e37bfb..2e9850aef 100644 --- a/app/helpers/note_helper.rb +++ b/app/helpers/note_helper.rb @@ -18,12 +18,8 @@ module NoteHelper elsif author.status == "deleted" t("users.no_such_user.deleted") else - link_to h(author.display_name), link_options.merge(:controller => "/users", :action => "show", :display_name => author.display_name) + link_to h(author.display_name), link_options.merge(:controller => "/users", :action => "show", :display_name => author.display_name), + :class => "mw-100 d-inline-block align-bottom text-truncate text-wrap", :dir => "auto" end end - - def disappear_in(note) - date = note.freshly_closed_until - tag.span(distance_of_time_in_words(date, Time.now.utc), :title => l(date, :format => :friendly)) - end end