From: Matt Amos Date: Thu, 1 Oct 2009 18:09:31 +0000 (+0000) Subject: Adding title for role icons when viewing user isn't an admin, re-adding translations... X-Git-Tag: live~7177^2~25 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/9b82acded9a9d238593240bfae0a0e81ea24c0e8 Adding title for role icons when viewing user isn't an admin, re-adding translations for those. --- diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index dfd26e609..ab455461f 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -7,7 +7,7 @@ <%= 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}")) %> +<%= image_tag("roles/#{role}.png", :size => "20x20", :border => 0, :alt => t("user.view.role.#{role}"), :title => t("user.view.role.#{role}")) %> <% end %> <% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 9105a2d42..f0b9cb235 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -948,6 +948,8 @@ 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"