From: Andy Allan Date: Wed, 19 Jun 2024 14:34:14 +0000 (+0100) Subject: Merge pull request #4813 from AntonKhorev/no-fst-italic X-Git-Tag: live~418 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/d57dd1f4da4d4605f534607b69944e3c977e4db5?ds=inline;hp=-c Merge pull request #4813 from AntonKhorev/no-fst-italic Use font size instead of italic for changeset/trace descriptions --- d57dd1f4da4d4605f534607b69944e3c977e4db5 diff --combined app/views/changesets/show.html.erb index 6ae0efb8b,6e4e953ff..915b0ef35 --- a/app/views/changesets/show.html.erb +++ b/app/views/changesets/show.html.erb @@@ -3,7 -3,7 +3,7 @@@ <%= render "sidebar_header", :title => t(".title", :id => @changeset.id) %>
-

+

<%= linkify(@changeset.tags["comment"].to_s.presence || t("browse.no_comment")) %>

<%= changeset_details(@changeset) %>

@@@ -18,17 -18,9 +18,17 @@@ <% if current_user %>
<% if @changeset.subscribers.exists?(current_user.id) %> - + <%= tag.button t(".unsubscribe"), + :class => "btn btn-sm btn-primary", + :name => "unsubscribe", + :data => { :method => "POST", + :url => api_changeset_unsubscribe_url(@changeset) } %> <% else %> - + <%= tag.button t(".subscribe"), + :class => "btn btn-sm btn-primary", + :name => "subscribe", + :data => { :method => "POST", + :url => api_changeset_subscribe_url(@changeset) } %> <% end %>
<% end %> @@@ -39,13 -31,13 +39,13 @@@ <% @comments.each do |comment| %> <% next unless comment.visible || current_user&.moderator? %>
  • - + <%= t comment.visible ? ".comment_by_html" : ".hidden_comment_by_html", :time_ago => friendly_date_ago(comment.created_at), :user => link_to(comment.author.display_name, comment.author) %> <% if current_user&.moderator? %> — - <%= tag.button t("javascripts.changesets.show.#{comment.visible ? 'hide' : 'unhide'}_comment"), + <%= tag.button t(".#{comment.visible ? 'hide' : 'unhide'}_comment"), :class => "btn btn-sm small btn-link link-secondary p-0 align-baseline", :data => { :method => "POST", :url => comment.visible ? changeset_comment_hide_url(comment) : changeset_comment_unhide_url(comment) } %> @@@ -74,12 -66,7 +74,12 @@@
    - + <%= tag.button t(".comment"), + :class => "btn btn-primary", + :name => "comment", + :disabled => true, + :data => { :method => "POST", + :url => changeset_comment_url(@changeset) } %>
    <% else %> diff --combined app/views/traces/_trace.html.erb index 37713679f,ad731c6db..ba503f730 --- a/app/views/traces/_trace.html.erb +++ b/app/views/traces/_trace.html.erb @@@ -30,7 -30,7 +30,7 @@@ <%= t(".#{trace.visibility}") %>
  • -

    +

    <% if trace.tags.empty? %> <%= t ".details_without_tags_html", :time_ago => friendly_date_ago(trace.timestamp), :user => link_to(trace.user.display_name, trace.user) %> @@@ -40,7 -40,7 +40,7 @@@ :tags => safe_join(trace.tags.collect { |tag| link_to_tag tag.tag }, ", ") %> <% end %>

    -

    +

    <%= trace.description %>