diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 1f5d0398e9..1a5a4700f0 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -50,6 +50,10 @@ small, aside { time[title] { text-decoration: underline dotted; } +time[title]:active::after, +time[title]:focus::after { + content: " (" attr(title) ")"; +} #container { position: relative; } diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 17c36bdfe0..f5d50f577d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -26,11 +26,11 @@ def dir end def friendly_date(date) - tag.time(time_ago_in_words(date), :title => l(date, :format => :friendly), :datetime => date.xmlschema) + tag.time(time_ago_in_words(date), :title => l(date, :format => :friendly), :datetime => date.xmlschema, :tabindex => 0) end def friendly_date_ago(date) - tag.time(time_ago_in_words(date, :scope => :"datetime.distance_in_words_ago"), :title => l(date, :format => :friendly), :datetime => date.xmlschema) + tag.time(time_ago_in_words(date, :scope => :"datetime.distance_in_words_ago"), :title => l(date, :format => :friendly), :datetime => date.xmlschema, :tabindex => 0) end def body_class diff --git a/app/helpers/changesets_helper.rb b/app/helpers/changesets_helper.rb index 3a26c2001c..b09f1364a7 100644 --- a/app/helpers/changesets_helper.rb +++ b/app/helpers/changesets_helper.rb @@ -23,9 +23,9 @@ def changeset_details(changeset) end if params.key?(:display_name) - t "browse.#{action}_ago_html", :time_ago => tag.time(time, :title => title, :datetime => datetime) + t "browse.#{action}_ago_html", :time_ago => tag.time(time, :title => title, :datetime => datetime, :tabindex => 0) else - t "browse.#{action}_ago_by_html", :time_ago => tag.time(time, :title => title, :datetime => datetime), + t "browse.#{action}_ago_by_html", :time_ago => tag.time(time, :title => title, :datetime => datetime, :tabindex => 0), :user => changeset_user_link(changeset) end end