Skip to content
Browse files

Show the owner of the repository and populate the title (image tooltip)

with the user name and permissions.  For example "icefox rw".
  • Loading branch information...
1 parent 7b1af92 commit 95ef57981bf6663770304dbedc5d472e666c962c @icefox committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 web/app/views/repositories/_repositorytopbar.html.erb
View
3 web/app/views/repositories/_repositorytopbar.html.erb
@@ -1,8 +1,9 @@
<div id="repository">
<%= image_tag (@repository.public ? 'public.png' : 'private.png'), :class => 'repo_public_private' %>
<% @repository.permissions.each { |p| %>
- <%= image_tag(gravatar_url_for(p.user.email, "&size=16"), :size => "16x16", :class => 'repo_public_private', :alt => p.user.username) if p.user.email && p.user.username%>
+ <%= image_tag(gravatar_url_for(p.user.email, "&size=16"), :size => "16x16", :class => 'repo_public_private', :title => p.user.username + ' ' + p.mode) if p.user.email && p.user.username%>
<% } %>
+ <%= image_tag(gravatar_url_for(@repository.user.email, "&size=16"), :size => "16x16", :class => 'repo_public_private', :title => @repository.user.username + ' rw') if @repository.user && @repository.user.email %>
<%= link_to_user(@owner) %> / <b> <%= link_to_repository(@repository) %></b>
<% @repository.tags.each { |t| %>

0 comments on commit 95ef579

Please sign in to comment.
Something went wrong with that request. Please try again.