From: Tom Hughes Date: Thu, 16 Jul 2020 18:30:55 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/2695' X-Git-Tag: live~3051 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a9b00e16e70707e398d475352d68ed9da86dec3b?hp=85cb71702e663d0588e6e4db86f10cec0eeaf993 Merge remote-tracking branch 'upstream/pull/2695' --- diff --git a/Gemfile.lock b/Gemfile.lock index 799b2d95a..89263a417 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -71,10 +71,10 @@ GEM activerecord (>= 3.2, < 7.0) rake (>= 10.4, < 14.0) ast (2.4.1) - autoprefixer-rails (9.8.4) + autoprefixer-rails (9.8.5) execjs aws-eventstream (1.1.0) - aws-partitions (1.338.0) + aws-partitions (1.340.0) aws-sdk-core (3.103.0) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.239.0) @@ -83,7 +83,7 @@ GEM aws-sdk-kms (1.36.0) aws-sdk-core (~> 3, >= 3.99.0) aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.73.0) + aws-sdk-s3 (1.74.0) aws-sdk-core (~> 3, >= 3.102.1) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.1) @@ -200,10 +200,10 @@ GEM erubi (1.9.0) execjs (2.7.0) exifr (1.3.6) - factory_bot (6.0.2) + factory_bot (6.1.0) activesupport (>= 5.0.0) - factory_bot_rails (6.0.0) - factory_bot (~> 6.0.0) + factory_bot_rails (6.1.0) + factory_bot (~> 6.1.0) railties (>= 5.0.0) faraday (1.0.1) multipart-post (>= 1.2, < 3) @@ -276,7 +276,7 @@ GEM multi_xml (0.6.0) multipart-post (2.1.1) nio4r (2.5.2) - nokogiri (1.10.9) + nokogiri (1.10.10) mini_portile2 (~> 2.4.0) nokogumbo (2.0.2) nokogiri (~> 1.8, >= 1.8.4) diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index e72b4e85b..d91b7a2e7 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -17,7 +17,7 @@ class Ability can [:index, :feed], Changeset can :index, ChangesetComment can [:index, :rss, :show, :comments], DiaryEntry - can [:mine], Note + can [:index], Note can [:index, :show], Redaction can [:index, :show, :data, :georss, :picture, :icon], Trace can [:terms, :login, :logout, :new, :create, :save, :confirm, :confirm_resend, :confirm_email, :lost_password, :reset_password, :show, :auth_success, :auth_failure], User diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index e455f297b..36b560fde 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -81,11 +81,11 @@ $(document).ready(function () { var windowWidth = $(window).width(); if (windowWidth < compactWidth) { - $("body").removeClass("compact").addClass("small"); + $("body").removeClass("compact-nav").addClass("small-nav"); } else if (windowWidth < headerWidth) { - $("body").addClass("compact").removeClass("small"); + $("body").addClass("compact-nav").removeClass("small-nav"); } else { - $("body").removeClass("compact").removeClass("small"); + $("body").removeClass("compact-nav").removeClass("small-nav"); } } @@ -100,13 +100,13 @@ $(document).ready(function () { headerWidth = headerWidth + $(e).outerWidth(); }); - $("body").addClass("compact"); + $("body").addClass("compact-nav"); $("header").children(":visible").each(function (i, e) { compactWidth = compactWidth + $(e).outerWidth(); }); - $("body").removeClass("compact"); + $("body").removeClass("compact-nav"); updateHeader(); diff --git a/app/assets/javascripts/embed.js.erb b/app/assets/javascripts/embed.js.erb index ceb488f98..858b31302 100644 --- a/app/assets/javascripts/embed.js.erb +++ b/app/assets/javascripts/embed.js.erb @@ -35,6 +35,8 @@ window.onload = function () { new L.OSM.CycleMap(thunderforestOptions).addTo(map); } else if (args.layer === "transportmap") { new L.OSM.TransportMap(thunderforestOptions).addTo(map); + } else if (args.layer === "opnvkarte") { + new L.OSM.OPNVKarte().addTo(map); } else if (args.layer === "hot") { new L.OSM.HOT().addTo(map); } diff --git a/app/assets/javascripts/index/browse.js b/app/assets/javascripts/index/browse.js index 630944411..07ad64def 100644 --- a/app/assets/javascripts/index/browse.js +++ b/app/assets/javascripts/index/browse.js @@ -49,15 +49,20 @@ OSM.initializeBrowse = function (map) { function displayFeatureWarning(count, limit, add, cancel) { $("#browse_status").html( - $("

") - .text(I18n.t("browse.start_rjs.feature_warning", { num_features: count, max_features: limit })) - .prepend( - $("") - .click(cancel)) + $("
") .append( - $("") - .val(I18n.t("browse.start_rjs.load_data")) - .click(add))); + $("

") + .text(I18n.t("browse.start_rjs.load_data")) + .prepend($("").click(cancel))) + .append( + $("
") + .append( + $("

") + .text(I18n.t("browse.start_rjs.feature_warning", { num_features: count, max_features: limit }))) + .append( + $("") + .val(I18n.t("browse.start_rjs.load_data")) + .click(add)))); } var dataLoader; diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index 87ff87370..ddcce195d 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -116,7 +116,7 @@ L.OSM.layers = function (options) { $("

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

    ") diff --git a/app/assets/javascripts/leaflet.map.js b/app/assets/javascripts/leaflet.map.js index a139b6dcd..3e37ccb42 100644 --- a/app/assets/javascripts/leaflet.map.js +++ b/app/assets/javascripts/leaflet.map.js @@ -19,6 +19,7 @@ L.OSM.Map = L.Map.extend({ var donate = I18n.t("javascripts.map.donate_link_text", { donate_url: "https://donate.openstreetmap.org" }); var terms = I18n.t("javascripts.map.terms", { terms_url: "https://wiki.osmfoundation.org/wiki/Terms_of_Use" }); var thunderforest = I18n.t("javascripts.map.thunderforest", { thunderforest_url: "https://www.thunderforest.com/" }); + var memomaps = I18n.t("javascripts.map.opnvkarte", { memomaps_url: "https://memomaps.de/" }); var hotosm = I18n.t("javascripts.map.hotosm", { hotosm_url: "https://www.hotosm.org/", osmfrance_url: "https://openstreetmap.fr/" }); this.baseLayers = []; @@ -48,6 +49,13 @@ L.OSM.Map = L.Map.extend({ })); } + this.baseLayers.push(new L.OSM.OPNVKarte({ + attribution: copyright + ". " + memomaps + ". " + terms, + code: "O", + keyid: "opnvkarte", + name: I18n.t("javascripts.map.base.opnvkarte") + })); + this.baseLayers.push(new L.OSM.HOT({ attribution: copyright + ". " + hotosm + ". " + terms, code: "H", diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 8b1446ff8..c4a5d0265 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -116,7 +116,7 @@ L.OSM.share = function (options) { .on("click", select)) .append( $("

    ") - .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) { $("

    ") .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); $("

    ") - .attr("class", "deemphasize") + .attr("class", "text-muted") .html(I18n.t("javascripts.share.image_size") + " x ") .appendTo($form); diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 39cdaa47a..50bcf9be7 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -30,20 +30,11 @@ small, aside { #container { position: relative; } -.column-1 { - width: 50%; - margin: 0 0 $lineheight/2 0; -} - .small_icon { vertical-align: middle; margin-right: $lineheight/4; } -.red { color: $red; } - -.piwik { border: 0; } - [dir=rtl] { /* no-r2 */ text-align: right; } [dir=ltr] { /* no-r2 */ text-align: left; } @@ -85,7 +76,6 @@ small, aside { a { color: #24d; text-decoration: none; - -webkit-appearance: none; outline: 0; &:hover { text-decoration: underline; @@ -101,6 +91,10 @@ a { } } +.text-muted a { + color: $blue; +} + /* Rules for the header */ #menu-icon { @@ -272,7 +266,7 @@ nav.primary, nav.secondary { display: none; } -body.compact { +body.compact-nav { #compact-secondary-nav { display: inline-block; } @@ -700,10 +694,6 @@ body.compact { } #browse_status { - p { - padding: $lineheight; - } - input { display: block; margin-left: auto; @@ -1045,11 +1035,6 @@ tr.turn:hover { } } - .warning { - margin: 0 0 $lineheight/2 0; - padding: 0 $lineheight/2; - } - .note-comments li, .changeset-comments li { margin: $lineheight/2 0; @@ -1196,16 +1181,6 @@ tr.turn:hover { background: $lightgrey; } -.content-body { - h1, h2, h3, p, ul, ol { - margin-bottom: $lineheight; - } - - h1, h2, h3 { - margin-top: $lineheight/2; - } -} - .content-inner { position: relative; max-width: 900px; @@ -1271,12 +1246,15 @@ tr.turn:hover { /* Rules for small maps in content areas */ .content_map { - position: relative; - width: 45%; - height: 400px; + height: 200px; border: 1px solid $grey; margin-bottom: $lineheight; - float: right; +} + +@include media-breakpoint-up(md) { + .content_map { + height: 400px; + } } /* Rules for the new trace form */ @@ -1306,21 +1284,14 @@ tr.turn:hover { /* Rules for the user profile page */ #userinformation { - min-height: 100px; .userinformation-inner { float: left; } - h2 { - margin-top: 0; - } .user-description { width: 100%; clear: both; } - .deemphasize { - margin: 0; - } } .admin-user-info small { @@ -1329,16 +1300,6 @@ tr.turn:hover { margin-right: $lineheight; } -.activity-block { - clear: left; - border-bottom: 1px solid $grey; - padding-bottom: $lineheight; - float: left; - h3 { - margin-bottom: $lineheight/2; - } -} - .contact-activity { margin-top: $lineheight; width: 100%; @@ -1417,7 +1378,7 @@ tr.turn:hover { margin-top: $lineheight/2; } - &.deemphasize { + &.deleted { background-color: #fee; } @@ -1472,7 +1433,7 @@ tr.turn:hover { padding-top: $lineheight; border-top: 1px solid $grey; } - &.deemphasize { + &.deleted { background-color: #fee; } p { @@ -1536,13 +1497,6 @@ tr.turn:hover { /* Rules for the account settings page */ -#accountForm .user_map { - position: relative; - width: 500px; - height: 400px; - border: 1px solid $grey; -} - #accountForm .user_image { margin-bottom: 0; } @@ -1567,11 +1521,6 @@ tr.turn:hover { display: inline !important; } -.content_map.settings_map { - width: 50%; - float: none; -} - /* Rules for the oauth settings page */ .oauth_clients .buttons .oauth-edit { @@ -2248,12 +2197,18 @@ input.richtext_title[type="text"] { display: block; color: white; font-weight: 300; - font-size: 34px; + font-size: 28px; span { color: $vibrant-green; } } + @include media-breakpoint-up(sm) { + h1 { + font-size: 34px; + } + } + .user-image { position: absolute; top: 0px; @@ -2329,8 +2284,3 @@ input.richtext_title[type="text"] { display: none; } } - -.read-reports { - background: $lightgrey; - opacity: 0.7; -} diff --git a/app/assets/stylesheets/small.scss b/app/assets/stylesheets/small.scss index 83b112ce7..808b8caa6 100644 --- a/app/assets/stylesheets/small.scss +++ b/app/assets/stylesheets/small.scss @@ -2,17 +2,7 @@ /* Styles specific to a small screen, such as iPhone, Android, etc... */ -body.small { - - input[type="submit"], - input[type="text"] { - -webkit-appearance: none; - } - - .column-1 { - width: 100%; - } - +body.small-nav { #menu-icon { display: inline-block !important; } @@ -91,7 +81,6 @@ body.small { .compact-hide { display: inline-block; } - .overlay-sidebar #sidebar .welcome.visible { display: none; @@ -104,55 +93,6 @@ body.small { .leaflet-top.leaflet-right { top: 10px !important; } - - .content_map { - width: 100%; - border: none; - float: none; - height: 200px; - max-height: none; - min-height: auto; - } - - /* Rules for the login form */ - - #login_login input#user_email { - width: 100%; - max-width: 18em; - } - - #login_login input#user_password { - width: 100%; - max-width: 18em; - } - - #login_login input#openid_url { - width: 100%; - max-width: 18em; - } - - #login_openid_buttons td { - padding: 2px; - } - - /* Rules for the user view */ - - .user_map { - width: 100% !important; - height: 300px !important; - } - - #userinformation .deemphasize { - position: relative; - right: auto; left: auto; - margin-top: 10px; - top: auto; - } - - &.site-about #content .attr h1 { - font-size: 28px; - } - } @media (max-width: 767.98px) { @@ -184,3 +124,26 @@ body.small { } } } + +@media (max-width: 575.98px) { + /* Rules for the login form */ + + #login_login input#user_email { + width: 100%; + max-width: 18em; + } + + #login_login input#user_password { + width: 100%; + max-width: 18em; + } + + #login_login input#openid_url { + width: 100%; + max-width: 18em; + } + + #login_openid_buttons td { + padding: 2px; + } +} diff --git a/app/controllers/api/changesets_controller.rb b/app/controllers/api/changesets_controller.rb index 316015228..a5a37b485 100644 --- a/app/controllers/api/changesets_controller.rb +++ b/app/controllers/api/changesets_controller.rb @@ -2,7 +2,6 @@ module Api class ChangesetsController < ApiController - layout "site" require "xml/libxml" before_action :authorize, :only => [:create, :update, :upload, :close, :subscribe, :unsubscribe] diff --git a/app/controllers/api/notes_controller.rb b/app/controllers/api/notes_controller.rb index a73240e5f..cd71b4374 100644 --- a/app/controllers/api/notes_controller.rb +++ b/app/controllers/api/notes_controller.rb @@ -1,7 +1,5 @@ module Api class NotesController < ApiController - layout "site", :only => [:mine] - before_action :check_api_readable before_action :setup_user_auth, :only => [:create, :comment, :show] before_action :authorize, :only => [:close, :reopen, :destroy, :comment] diff --git a/app/controllers/api/traces_controller.rb b/app/controllers/api/traces_controller.rb index 0b441bef9..6c77f9dc4 100644 --- a/app/controllers/api/traces_controller.rb +++ b/app/controllers/api/traces_controller.rb @@ -1,7 +1,5 @@ module Api class TracesController < ApiController - layout "site", :except => :georss - before_action :authorize_web before_action :set_locale before_action :authorize diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index d3387bd5f..d97e8774e 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -1,7 +1,5 @@ module Api class UsersController < ApiController - layout "site", :except => [:api_details] - before_action :disable_terms_redirect, :only => [:details] before_action :authorize, :only => [:details, :gpx_files] diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index 7c6b033ca..9f2fdb7e2 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -1,5 +1,5 @@ class NotesController < ApplicationController - layout "site", :only => [:mine] + layout "site" before_action :check_api_readable before_action :authorize_web @@ -11,11 +11,11 @@ class NotesController < ApplicationController ## # Display a list of notes by a specified user - def mine + def index if params[:display_name] if @user = User.active.find_by(:display_name => params[:display_name]) @params = params.permit(:display_name) - @title = t "notes.mine.title", :user => @user.display_name + @title = t ".title", :user => @user.display_name @page = (params[:page] || 1).to_i @page_size = 10 @notes = @user.notes diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index afe3f8322..5a50aa91f 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -34,7 +34,7 @@ <% @comments.each do |comment| %> <% if comment.visible %>

  • - + <%= t(".commented_by", :when => friendly_date_ago(comment.created_at), :exact_time => l(comment.created_at), @@ -47,7 +47,7 @@
  • <% elsif current_user and current_user.moderator? %>
  • - + <%= t(".hidden_commented_by", :when => friendly_date_ago(comment.created_at), :exact_time => l(comment.created_at), diff --git a/app/views/browse/new_note.html.erb b/app/views/browse/new_note.html.erb index 2929e610e..51633ffca 100644 --- a/app/views/browse/new_note.html.erb +++ b/app/views/browse/new_note.html.erb @@ -6,7 +6,7 @@

-

<%= t("javascripts.notes.new.intro") %>

+

<%= t("javascripts.notes.new.intro") %>

diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index ffc198b0a..74d1223c7 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -12,19 +12,18 @@
- <%= note_event("opened", @note.created_at, @note.author) %> +

<%= note_event("opened", @note.created_at, @note.author) %>

<% if @note.status == "closed" %> -
- <%= note_event(@note.status, @note.closed_at, @note.all_comments.last.author) %> +

<%= note_event(@note.status, @note.closed_at, @note.all_comments.last.author) %>

<% end %>
<% if @note_comments.find { |comment| comment.author.nil? } -%> -

<%= t "javascripts.notes.show.anonymous_warning" %>

+

<%= t "javascripts.notes.show.anonymous_warning" %>

<% end -%> <% if current_user && current_user != @note.author %> -

<%= report_link(t(".report"), @note) %>

+

<%= report_link(t(".report"), @note) %>

<% end %> <% if @note_comments.length > 1 %> @@ -32,7 +31,7 @@
    <% @note_comments[1..-1].each do |comment| %>
  • - <%= note_event(comment.event, comment.created_at, comment.author) %> + <%= note_event(comment.event, comment.created_at, comment.author) %> <%= comment.body.to_html %>
  • <% end %> diff --git a/app/views/diary_entries/_diary_comment.html.erb b/app/views/diary_entries/_diary_comment.html.erb index db4847826..9a3ff969d 100644 --- a/app/views/diary_entries/_diary_comment.html.erb +++ b/app/views/diary_entries/_diary_comment.html.erb @@ -1,6 +1,6 @@ -
    "> +
    "> <%= user_thumbnail diary_comment.user %> -

    <%= 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}")) %> +

    <%= 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 %> diff --git a/app/views/diary_entries/_diary_entry.html.erb b/app/views/diary_entries/_diary_entry.html.erb index b0c464718..48df5d18e 100644 --- a/app/views/diary_entries/_diary_entry.html.erb +++ b/app/views/diary_entries/_diary_entry.html.erb @@ -1,4 +1,4 @@ -

    +
    <% if !@user %> <%= user_thumbnail diary_entry.user %> @@ -6,7 +6,7 @@

    <%= link_to diary_entry.title, diary_entry_path(diary_entry.user, diary_entry) %>

    - + <%= 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)) %> diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index 5efa6a1bb..65bd9ced3 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -1,7 +1,7 @@ <% content_for :heading do %>

    <%= t ".title", :status => @issue.status.humanize, :issue_id => @issue.id %>

    <%= @issue.reportable.model_name.human %> : <%= link_to reportable_title(@issue.reportable), reportable_url(@issue.reportable) %>

    -

    +

    <%= @issue.assigned_role %> | <%= t ".reports", :count => @issue.reports.count %> @@ -24,14 +24,14 @@

    <%= t ".reports_of_this_issue" %>

    <% if @read_reports.present? %> -
    +

    <%= t ".read_reports" %>

    <%= render "reports", :reports => @read_reports %>
    <% end %> <% if @unread_reports.any? %> -
    +

    <%= t ".new_reports" %>

    <%= render "reports", :reports => @unread_reports %>
    diff --git a/app/views/notes/mine.html.erb b/app/views/notes/index.html.erb similarity index 85% rename from app/views/notes/mine.html.erb rename to app/views/notes/index.html.erb index 2f68ba5c6..50059625d 100644 --- a/app/views/notes/mine.html.erb +++ b/app/views/notes/index.html.erb @@ -1,6 +1,6 @@ <% content_for :heading do %> -

    <%= t "notes.mine.heading", :user => @user.display_name %>

    -

    <%= t "notes.mine.subheading_html", :user => link_to(@user.display_name, user_path(@user)) %>

    +

    <%= t ".heading", :user => @user.display_name %>

    +

    <%= t ".subheading_html", :user => link_to(@user.display_name, user_path(@user)) %>

    <% end %> <%= render :partial => "notes_paging_nav" %> diff --git a/app/views/site/export.html.erb b/app/views/site/export.html.erb index f1eed33cf..2eb23f755 100644 --- a/app/views/site/export.html.erb +++ b/app/views/site/export.html.erb @@ -24,7 +24,7 @@

    <%= t ".export_details_html" %>

    -

    +

    <%= t ".too_large.body" %>

    diff --git a/app/views/traces/_trace.html.erb b/app/views/traces/_trace.html.erb index 8980cb8f2..ff15836b7 100644 --- a/app/views/traces/_trace.html.erb +++ b/app/views/traces/_trace.html.erb @@ -9,7 +9,7 @@ <% end %> <%= link_to trace.name, :controller => "traces", :action => "show", :display_name => trace.user.display_name, :id => trace.id %> - ... + ... <% if trace.inserted %> (<%= t ".count_points", :count => trace.size %>) <% end %> diff --git a/app/views/traces/index.html.erb b/app/views/traces/index.html.erb index 86ac37f00..609dbcede 100644 --- a/app/views/traces/index.html.erb +++ b/app/views/traces/index.html.erb @@ -26,12 +26,6 @@ <%= render :partial => "trace_paging_nav" %> - - - - - - <%= render @traces unless @traces.nil? %> diff --git a/app/views/users/_contact.html.erb b/app/views/users/_contact.html.erb index d067bd478..4446c519d 100644 --- a/app/views/users/_contact.html.erb +++ b/app/views/users/_contact.html.erb @@ -7,7 +7,7 @@ <%= tag.div :class => "contact-activity clearfix", :data => { :user => user_data } do %> <%= user_thumbnail contact %>
    -

    +

    <%= 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 %>

    -
      +
      • <%= link_to t("users.show.send message"), new_message_path(contact) %>
      • <% if current_user.is_friends_with?(contact) %> diff --git a/app/views/users/account.html.erb b/app/views/users/account.html.erb index 0f2f3741f..ad6614c76 100644 --- a/app/views/users/account.html.erb +++ b/app/views/users/account.html.erb @@ -166,7 +166,7 @@ checked="checked" <% end %> id="updatehome" />
    - <%= tag.div "", :id => "map", :class => "content_map settings_map set_location" %> + <%= tag.div "", :id => "map", :class => "content_map set_location" %> <%= submit_tag t(".save changes button") %> diff --git a/app/views/users/confirm.html.erb b/app/views/users/confirm.html.erb index 3a2e12578..a3902c0a9 100644 --- a/app/views/users/confirm.html.erb +++ b/app/views/users/confirm.html.erb @@ -20,11 +20,11 @@ <% else %>

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

    -

    <%= t ".reconfirm_html", - :reconfirm => url_for(:action => "confirm_resend") %>

    +

    <%= t ".reconfirm_html", + :reconfirm => url_for(:action => "confirm_resend") %>

    <% end %> diff --git a/app/views/users/login.html.erb b/app/views/users/login.html.erb index ac61d7df7..365245bf0 100644 --- a/app/views/users/login.html.erb +++ b/app/views/users/login.html.erb @@ -10,7 +10,7 @@ <%= form_tag({ :action => "login" }, { :id => "login_form" }) do %> <%= hidden_field_tag("referer", h(params[:referer])) %> -

    <%= t ".no account" %> <%= link_to t(".register now"), :action => :new, :referer => params[:referer] %>

    +

    <%= t ".no account" %> <%= link_to t(".register now"), :action => :new, :referer => params[:referer] %>

    diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 1332ab6e2..440d68874 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -11,7 +11,7 @@ <%= number_with_delimiter(current_user.changesets.size) %>
  • - <%= link_to t(".my notes"), :controller => "notes", :action => "mine" %> + <%= link_to t(".my notes"), user_notes_path(@user) %>
  • <%= link_to t(".my traces"), :controller => "traces", :action => "mine" %> @@ -53,7 +53,7 @@ <%= number_with_delimiter(@user.changesets.size) %>
  • - <%= link_to t(".notes"), :controller => "notes", :action => "mine" %> + <%= link_to t(".notes"), user_notes_path(@user) %>
  • <%= link_to t(".traces"), :controller => "traces", :action => "index", :display_name => @user.display_name %> @@ -147,7 +147,7 @@ <% end %> -

    +

    <%= t ".mapper since" %> <%= l @user.creation_time.to_date, :format => :long %> <% unless @user.terms_agreed %> @@ -168,7 +168,7 @@

  • <% if current_user and current_user.administrator? -%> -