From 1d593592024a81a906bc6d144bc5a9f1078ffa22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 1 Oct 2009 17:57:20 +0000 Subject: [PATCH] Add title="" to the revoke/grant icons that indicate what they're about to do --- app/views/user/view.html.erb | 4 ++-- config/locales/en.yml | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index b0faeaf64..dfd26e609 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -2,9 +2,9 @@ <% UserRole::ALL_ROLES.each do |role| %> <% if @user and @user.administrator? %> <% if @this_user.has_role? role %> -<%= link_to(image_tag("roles/#{role}.png", :size => "20x20", :border => 0, :alt => t("user.view.role.#{role}")), :controller => 'user_roles', :action => 'revoke', :display_name => @this_user.display_name, :role => role) %> +<%= link_to(image_tag("roles/#{role}.png", :size => "20x20", :border => 0, :alt => t("user.view.role.revoke.#{role}"), :title => t("user.view.role.revoke.#{role}")), :controller => 'user_roles', :action => 'revoke', :display_name => @this_user.display_name, :role => role) %> <% else %> -<%= link_to(image_tag("roles/blank_#{role}.png", :size => "20x20", :border => 0, :alt => t("user.view.role.#{role}")), :controller => 'user_roles', :action => 'grant', :display_name => @this_user.display_name, :role => role) %> +<%= link_to(image_tag("roles/blank_#{role}.png", :size => "20x20", :border => 0, :alt => t("user.view.role.grant.#{role}"), :title => t("user.view.role.grant.#{role}")), :controller => 'user_roles', :action => 'grant', :display_name => @this_user.display_name, :role => role) %> <% end %> <% elsif @this_user.has_role? role %> <%= image_tag("roles/#{role}.png", :size => "20x20", :border => 0, :alt => t("user.view.role.#{role}")) %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 38dc04bc3..8d53dcdf3 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -948,8 +948,12 @@ en: change your settings: change your settings my_oauth_details: "View my OAuth details" role: - administrator: "Administrator" - moderator: "Moderator" + grant: + administrator: "Grant administrator access" + moderator: "Grant moderator access" + revoke: + administrator: "Revoke administrator access" + moderator: "Revoke moderator access" block_history: "view blocks received" moderator_history: "view blocks given" create_block: "block this user" -- 2.39.5