annotate .svn/pristine/c2/c22734b0a706ecad447a99eddb6be080500c20cb.svn-base @ 1082:997f6d7738f7 bug_531

In repo controller entry action, show the page for the file even if it's binary (so user still has access to history etc links). This makes it possible to use the entry action as the default when a file is clicked on
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 22 Nov 2012 18:04:17 +0000
parents cbb26bc654de
children
rev   line source
Chris@909 1 <div class="contextual">
Chris@909 2 <%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %>
Chris@909 3 </div>
Chris@909 4
Chris@909 5 <h2><%= l(:label_group_plural) %></h2>
Chris@909 6
Chris@909 7 <% if @groups.any? %>
Chris@909 8 <table class="list groups">
Chris@909 9 <thead><tr>
Chris@909 10 <th><%=l(:label_group)%></th>
Chris@909 11 <th><%=l(:label_user_plural)%></th>
Chris@909 12 <th></th>
Chris@909 13 </tr></thead>
Chris@909 14 <tbody>
Chris@909 15 <% @groups.each do |group| %>
Chris@909 16 <tr class="<%= cycle 'odd', 'even' %>">
Chris@909 17 <td><%= link_to h(group), edit_group_path(group) %></td>
Chris@909 18 <td align="center"><%= group.users.size %></td>
Chris@909 19 <td class="buttons"><%= link_to l(:button_delete), group, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %></td>
Chris@909 20 </tr>
Chris@909 21 <% end %>
Chris@909 22 </table>
Chris@909 23 <% else %>
Chris@909 24 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@909 25 <% end %>