]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/4349'
authorTom Hughes <tom@compton.nu>
Wed, 15 Nov 2023 22:30:41 +0000 (22:30 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 15 Nov 2023 22:30:41 +0000 (22:30 +0000)
1  2 
app/assets/stylesheets/common.scss
app/helpers/application_helper.rb
config/locales/en.yml

index f91f380b2fcc357e93498fed878c1e6f5c6262ca,995c43f595a0a37414dcbfe65b78dea450b61a8e..1f5d0398e97b2b11433355821a69f11e4ee6c215
@@@ -47,6 -47,10 +47,10 @@@ small, aside 
    font-size: 12px;
  }
  
+ time[title] {
+   text-decoration: underline dotted;
+ }
  #container { position: relative; }
  
  .small_icon {
    margin-right: $lineheight * 0.25;
  }
  
 -[dir=rtl] { /* no-r2 */ text-align: right; }
 -
 -[dir=ltr] { /* no-r2 */ text-align: left; }
 -
  /* Rules for icons */
  
  .icon {
index 2fc0d808d53c87566318ac254b8f523587952726,4932bcc5ea2160995519d0aa14d0187ebf371901..17c36bdfe043066b81c518c9602546f3013af212
@@@ -26,11 -26,11 +26,11 @@@ module ApplicationHelpe
    end
  
    def friendly_date(date)
-     tag.span(time_ago_in_words(date), :title => l(date, :format => :friendly))
+     tag.time(time_ago_in_words(date), :title => l(date, :format => :friendly), :datetime => date.xmlschema)
    end
  
    def friendly_date_ago(date)
-     tag.span(time_ago_in_words(date, :scope => :"datetime.distance_in_words_ago"), :title => l(date, :format => :friendly))
+     tag.time(time_ago_in_words(date, :scope => :"datetime.distance_in_words_ago"), :title => l(date, :format => :friendly), :datetime => date.xmlschema)
    end
  
    def body_class
@@@ -48,8 -48,7 +48,8 @@@
    def application_data
      data = {
        :locale => I18n.locale,
 -      :preferred_editor => preferred_editor
 +      :preferred_editor => preferred_editor,
 +      :preferred_languages => preferred_languages.expand.map(&:to_s)
      }
  
      if current_user
diff --combined config/locales/en.yml
index ce84600d2870cf6a681d544ca5963e053faee832,079f525a00485ceee99261aeff27b0b829f09e1b..1a41dcce814de5f00882f7393c780f5b616f12c6
@@@ -465,6 -465,7 +465,7 @@@ en
      contact:
        km away: "%{count}km away"
        m away: "%{count}m away"
+       latest_edit_html: "Latest edit (%{ago}):"
      popup:
        your location: "Your location"
        nearby mapper: "Nearby mapper"
        ct status: "Contributor terms:"
        ct undecided: Undecided
        ct declined: Declined
-       latest edit: "Latest edit (%{ago}):"
        email address: "Email address:"
        created from: "Created from:"
        status: "Status:"
        role:
          administrator: "This user is an administrator"
          moderator: "This user is a moderator"
 +        importer: "This user is a importer"
          grant:
            administrator: "Grant administrator access"
            moderator: "Grant moderator access"
 +          importer: "Grant importer access"
          revoke:
            administrator: "Revoke administrator access"
            moderator: "Revoke moderator access"
 +          importer: "Revoke importer access"
        block_history: "Active Blocks"
        moderator_history: "Blocks Given"
        comments: "Comments"
      revoke:
        title: "Revoking block on %{block_on}"
        heading_html: "Revoking block on %{block_on} by %{block_by}"
-       time_future: "This block will end in %{time}."
-       past: "This block ended %{time} and cannot be revoked now."
+       time_future_html: "This block will end in %{time}."
+       past_html: "This block ended %{time} and cannot be revoked now."
        confirm: "Are you sure you wish to revoke this block?"
        revoke: "Revoke!"
        flash: "This block has been revoked."