From: Tom Hughes Date: Mon, 6 May 2024 08:49:51 +0000 (+0100) Subject: Replace deprecated text-muted class with text-body-secondary X-Git-Tag: live~454^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/161fc8ac47f6a3435f357be9af230a5c44735a9c Replace deprecated text-muted class with text-body-secondary --- diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 42854f2e2..89eccb8cb 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -307,7 +307,7 @@ OSM.Directions = function (map) { var row = $(""); row.append("
"); row.append("" + instruction); - row.append("" + dist); + row.append("" + dist); row.on("click", function () { popup diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index 1a34b05c2..2702f6017 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -84,7 +84,7 @@ L.OSM.layers = function (options) { $("

") .text(I18n.t("javascripts.map.layers.overlays")) - .attr("class", "text-muted") + .attr("class", "text-body-secondary") .appendTo(overlaySection); var overlays = $("

<% else %> - <%= tag.div :class => ["browse-section", "browse-relation", { "text-muted" => relation.redacted? }] do %> + <%= tag.div :class => ["browse-section", "browse-relation", { "text-body-secondary" => relation.redacted? }] do %> <%= render :partial => "browse/common_details", :object => relation %> <% unless relation.containing_relation_members.empty? %> diff --git a/app/views/browse/_way.html.erb b/app/views/browse/_way.html.erb index d015438fe..d04eff140 100644 --- a/app/views/browse/_way.html.erb +++ b/app/views/browse/_way.html.erb @@ -7,7 +7,7 @@ :id => way.redaction.id), way.redaction) %> <% else %> - <%= tag.div :class => ["browse-section", "browse-way", { "text-muted" => way.redacted? }] do %> + <%= tag.div :class => ["browse-section", "browse-way", { "text-body-secondary" => way.redacted? }] do %> <%= render :partial => "browse/common_details", :object => way %> <% unless way.containing_relation_members.empty? %> diff --git a/app/views/changesets/_heading.html.erb b/app/views/changesets/_heading.html.erb index a125a135a..acb6c9834 100644 --- a/app/views/changesets/_heading.html.erb +++ b/app/views/changesets/_heading.html.erb @@ -9,7 +9,7 @@ - + <%= t(".created_by_html", :link_user => link_to(changeset.user.display_name, changeset.user), :created => l(changeset.created_at, :format => :blog)) %> diff --git a/app/views/changesets/show.html.erb b/app/views/changesets/show.html.erb index 3ba3968f7..d44ccfc07 100644 --- a/app/views/changesets/show.html.erb +++ b/app/views/changesets/show.html.erb @@ -31,7 +31,7 @@ <% @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) %> diff --git a/app/views/confirmations/confirm.html.erb b/app/views/confirmations/confirm.html.erb index 879fb8f33..4f98a8539 100644 --- a/app/views/confirmations/confirm.html.erb +++ b/app/views/confirmations/confirm.html.erb @@ -22,12 +22,12 @@ <% else %>

    <%= t ".introduction_1" %> - + <%= t ".introduction_2" %>

    -

    +

    <%= t ".resend_html", :reconfirm_link => link_to(t(".click_here"), url_for(:action => "confirm_resend")) %>

    diff --git a/app/views/dashboards/_contact.html.erb b/app/views/dashboards/_contact.html.erb index b28a28a26..759faab8f 100644 --- a/app/views/dashboards/_contact.html.erb +++ b/app/views/dashboards/_contact.html.erb @@ -9,7 +9,7 @@ <%= user_thumbnail contact %>
    -

    +

    <%= link_to contact.display_name, contact %> <% if @user.home_location? and contact.home_location? %> <% distance = @user.distance(contact) %> @@ -32,7 +32,7 @@

    <% end %> -
    +
    <%= t ".mapper since" %>
    @@ -206,7 +206,7 @@ <% end %> <% if current_user and current_user.administrator? -%> -
    +
    <%= t ".email address" %>
    diff --git a/app/views/users/terms.html.erb b/app/views/users/terms.html.erb index 340aaf04e..b7efe912e 100644 --- a/app/views/users/terms.html.erb +++ b/app/views/users/terms.html.erb @@ -11,11 +11,11 @@ <%= form_tag({ :action => "save" }) do %> -

    <%= t ".read and accept with tou" %>

    +

    <%= t ".read and accept with tou" %>

    <%= t ".heading_ct" %>

    -

    <%= t ".contributor_terms_explain" %>

    +

    <%= t ".contributor_terms_explain" %>

    @@ -35,7 +35,7 @@
    -

    +

    <%= t ".guidance_info_html", :readable_summary_link => link_to(t(".readable_summary"), "https://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary"), @@ -55,7 +55,7 @@

    <%= t "layouts.tou" %>

    -

    <%= t ".tou_explain_html", :tou_link => link_to(t("layouts.tou"), "https://wiki.osmfoundation.org/wiki/Terms_of_Use", :target => :new) %>

    +

    <%= t ".tou_explain_html", :tou_link => link_to(t("layouts.tou"), "https://wiki.osmfoundation.org/wiki/Terms_of_Use", :target => :new) %>