Merge remote-tracking branch 'upstream/pull/2696'

This commit is contained in:
Tom Hughes 2020-07-08 19:09:55 +01:00
commit efa2c20bff
15 changed files with 32 additions and 35 deletions

View file

@ -116,7 +116,7 @@ L.OSM.layers = function (options) {
$("<p>")
.text(I18n.t("javascripts.map.layers.overlays"))
.attr("class", "deemphasize")
.attr("class", "text-muted")
.appendTo(overlaySection);
var overlays = $("<ul class='list-unstyled'>")

View file

@ -116,7 +116,7 @@ L.OSM.share = function (options) {
.on("click", select))
.append(
$("<p>")
.attr("class", "deemphasize")
.attr("class", "text-muted")
.text(I18n.t("javascripts.share.paste_html"))
.appendTo($linkSection));
@ -147,7 +147,7 @@ L.OSM.share = function (options) {
$("<div>")
.attr("id", "export-warning")
.attr("class", "deemphasize")
.attr("class", "text-muted")
.text(I18n.t("javascripts.share.only_standard_layer"))
.appendTo($imageSection);
@ -223,7 +223,7 @@ L.OSM.share = function (options) {
.appendTo($form);
$("<p>")
.attr("class", "deemphasize")
.attr("class", "text-muted")
.html(I18n.t("javascripts.share.image_size") + " <span id=\"mapnik_image_width\"></span> x <span id=\"mapnik_image_height\"></span>")
.appendTo($form);

View file

@ -96,6 +96,10 @@ a {
}
}
.text-muted a {
color: $blue;
}
/* Rules for the header */
#menu-icon {
@ -1405,7 +1409,7 @@ tr.turn:hover {
margin-top: $lineheight/2;
}
&.deemphasize {
&.deleted {
background-color: #fee;
}
@ -1460,7 +1464,7 @@ tr.turn:hover {
padding-top: $lineheight;
border-top: 1px solid $grey;
}
&.deemphasize {
&.deleted {
background-color: #fee;
}
p {

View file

@ -129,13 +129,6 @@ body.small {
height: 300px !important;
}
#userinformation .deemphasize {
position: relative;
right: auto; left: auto;
margin-top: 10px;
top: auto;
}
&.site-about #content .attr h1 {
font-size: 28px;
}

View file

@ -34,7 +34,7 @@
<% @comments.each do |comment| %>
<% if comment.visible %>
<li id="c<%= comment.id %>">
<small class='deemphasize'>
<small class='text-muted'>
<%= t(".commented_by",
:when => friendly_date_ago(comment.created_at),
:exact_time => l(comment.created_at),
@ -47,7 +47,7 @@
</li>
<% elsif current_user and current_user.moderator? %>
<li id="c<%= comment.id %>">
<small class='deemphasize'>
<small class='text-muted'>
<%= t(".hidden_commented_by",
:when => friendly_date_ago(comment.created_at),
:exact_time => l(comment.created_at),

View file

@ -24,7 +24,7 @@
<% end -%>
<% if current_user && current_user != @note.author %>
<p class="deemphasize"><%= report_link(t(".report"), @note) %></p>
<p class="text-muted"><%= report_link(t(".report"), @note) %></p>
<% end %>
<% if @note_comments.length > 1 %>
@ -32,7 +32,7 @@
<ul class="list-unstyled">
<% @note_comments[1..-1].each do |comment| %>
<li id="c<%= comment.id %>">
<small class='deemphasize'><%= note_event(comment.event, comment.created_at, comment.author) %></small>
<small class='text-muted'><%= note_event(comment.event, comment.created_at, comment.author) %></small>
<%= comment.body.to_html %>
</li>
<% end %>

View file

@ -1,6 +1,6 @@
<div class="clearfix diary-comment<%= " deemphasize" unless diary_comment.visible? %>">
<div class="clearfix diary-comment<%= " text-muted deleted" unless diary_comment.visible? %>">
<%= user_thumbnail diary_comment.user %>
<p class="deemphasize comment-heading" id="comment<%= diary_comment.id %>"><%= t(".comment_from_html", :link_user => (link_to diary_comment.user.display_name, user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}")) %>
<p class="text-muted comment-heading" id="comment<%= diary_comment.id %>"><%= t(".comment_from_html", :link_user => (link_to diary_comment.user.display_name, user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}")) %>
<% if current_user and diary_comment.user.id != current_user.id %>
| <%= report_link(t(".report"), diary_comment) %>
<% end %>

View file

@ -1,4 +1,4 @@
<div class='diary_post<%= " deemphasize" unless diary_entry.visible %> user_<%= diary_entry.user.id %>'>
<div class='diary_post<%= " text-muted px-3 deleted" unless diary_entry.visible %> user_<%= diary_entry.user.id %>'>
<div class='post_heading clearfix'>
<% if !@user %>
<%= user_thumbnail diary_entry.user %>
@ -6,7 +6,7 @@
<h2><%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %></h2>
<small class='deemphasize'>
<small class='text-muted'>
<%= t(".posted_by_html", :link_user => (link_to diary_entry.user.display_name, user_path(diary_entry.user)), :created => l(diary_entry.created_at, :format => :blog), :language_link => (link_to diary_entry.language.name, :controller => "diary_entries", :action => "index", :display_name => nil, :language => diary_entry.language_code)) %>
</small>

View file

@ -1,7 +1,7 @@
<% content_for :heading do %>
<h2><%= t ".title", :status => @issue.status.humanize, :issue_id => @issue.id %></h2>
<p><%= @issue.reportable.model_name.human %> : <%= link_to reportable_title(@issue.reportable), reportable_url(@issue.reportable) %></p>
<p class="deemphasize">
<p class="text-muted">
<small>
<%= @issue.assigned_role %>
| <%= t ".reports", :count => @issue.reports.count %>

View file

@ -9,7 +9,7 @@
<% end %>
</td>
<td><%= link_to trace.name, :controller => "traces", :action => "show", :display_name => trace.user.display_name, :id => trace.id %>
<span class="deemphasize" title="<%= trace.timestamp %>"> ...
<span class="text-muted" title="<%= trace.timestamp %>"> ...
<% if trace.inserted %>
(<%= t ".count_points", :count => trace.size %>)
<% end %>

View file

@ -7,7 +7,7 @@
<%= tag.div :class => "contact-activity clearfix", :data => { :user => user_data } do %>
<%= user_thumbnail contact %>
<div class='activity-details'>
<p class='deemphasize'>
<p class='text-muted'>
<%= link_to contact.display_name, user_path(contact) %>
<% if @user.home_lon and @user.home_lat and contact.home_lon and contact.home_lat %>
<% distance = @user.distance(contact) %>
@ -31,7 +31,7 @@
<% end %>
</p>
<ul class='secondary-actions clearfix deemphasize'>
<ul class='secondary-actions clearfix text-muted'>
<li><%= link_to t("users.show.send message"), new_message_path(contact) %></li>
<li>
<% if current_user.is_friends_with?(contact) %>

View file

@ -20,11 +20,11 @@
<% else %>
<h1>
<%= t ".introduction_1" %>
<span class="deemphasize">
<span class="text-muted">
<%= t ".introduction_2" %>
</span>
</h1>
<p class='deemphasize'><%= t ".reconfirm_html",
<p class='text-muted'><%= t ".reconfirm_html",
:reconfirm => url_for(:action => "confirm_resend") %></p>
<% end %>

View file

@ -10,7 +10,7 @@
<%= form_tag({ :action => "login" }, { :id => "login_form" }) do %>
<%= hidden_field_tag("referer", h(params[:referer])) %>
<p class='deemphasize'><%= t ".no account" %> <%= link_to t(".register now"), :action => :new, :referer => params[:referer] %></p>
<p class='text-muted'><%= t ".no account" %> <%= link_to t(".register now"), :action => :new, :referer => params[:referer] %></p>
<div id="loginForm" class="standard-form">

View file

@ -147,7 +147,7 @@
<% end %>
<p class='deemphasize'>
<p class='text-muted'>
<small>
<%= t ".mapper since" %> <%= l @user.creation_time.to_date, :format => :long %>
<% unless @user.terms_agreed %>
@ -168,7 +168,7 @@
</div>
<% if current_user and current_user.administrator? -%>
<div class='admin-user-info deemphasize'>
<div class='admin-user-info text-muted'>
<small><b><%= t ".email address" %></b> <%= @user.email %></small>
<% unless @user.creation_ip.nil? -%>
<small><b><%= t ".created from" %></b> <%= @user.creation_ip %></small>

View file

@ -9,12 +9,12 @@
<%= form_tag({ :action => "save" }, { :class => "standard-form fillL" }) do %>
<!-- legale is <%= @legale %> -->
<p class="deemphasize"><%= t ".read and accept with tou" %></p>
<p class="text-muted"><%= t ".read and accept with tou" %></p>
<h4>
<%= t ".heading_ct" %>
</h4>
<div class='standard-form-row horizontal-list clearfix'>
<p class="deemphasize"><%= t ".contributor_terms_explain" %></p>
<p class="text-muted"><%= t ".contributor_terms_explain" %></p>
<label class="standard-label">
<%= t ".legale_select" %>
</label>
@ -34,7 +34,7 @@
</div>
<div>
<p id="contributorGuidance" class="deemphasize">
<p id="contributorGuidance" class="text-muted">
<%= t ".guidance_html",
:summary => "https://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary",
:translations => "https://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations" %>
@ -50,7 +50,7 @@
<h4>
<%= t "layouts.tou" %>
</h4>
<p class="deemphasize"><%= t ".tou_explain_html", :tou_link => link_to(t("layouts.tou"), "https://wiki.osmfoundation.org/wiki/Terms_of_Use", :target => :new) %></p>
<p class="text-muted"><%= t ".tou_explain_html", :tou_link => link_to(t("layouts.tou"), "https://wiki.osmfoundation.org/wiki/Terms_of_Use", :target => :new) %></p>
<div class="standard-form-row">
<label for="read_tou">
<%= check_box_tag "read_tou" %>