Sha256: 00f94aa95b4ea63f742b318fcf1b417eb24698c0ee3ebc6314d79d56159ef1c5
Contents?: true
Size: 1.41 KB
Versions: 15
Compression:
Stored size: 1.41 KB
Contents
<div class="view"> <h2>Viewing User: <%=h @user %></h2> <h3>Groups (Direct):</h3> <ul> <% if @groups.empty? %> <li class="empty">This user isn't a member of any groups.</li> <% end %> <% @groups.each do |group| %> <li><%= auto_link group.to_s %> <% end %> </ul> <h3>Repositories with Read & Write Access</h3> <ul> <% if @user.admin? %> <li>This user can read ALL repositories as an admin.</li> <% else %> <% if @all_access.empty? %> <li class="empty">This user doesn't have read and write access to any repositories</li> <% end %> <% @all_access.each do |repo| %> <li><%= link_to h(repo.name), "/repos/#{URI.encode(repo.name)}" %> <% end %> <% end %> </ul> <% if !@user.admin? %> <h3>Repositories with Write-Only Access</h3> <ul> <% if @write_only.empty? %> <li class="empty">This user doesn't have write-only to any repositories</li> <% end %> <% @write_only.each do |repo| %> <li><%= link_to h(repo.name), "/repos/#{URI.encode(repo.name)}" %> <% end %> </ul> <h3>Repositories with Read-only Access</h3> <ul> <% if @read_only.empty? %> <li class="empty">This user doesn't have read-only to any repositories</li> <% end %> <% @read_only.each do |repo| %> <li><%= link_to h(repo.name), "/repos/#{URI.encode(repo.name)}" %> <% end %> </ul> <% end %> </div>
Version data entries
15 entries across 15 versions & 4 rubygems