annotate .svn/pristine/e3/e38f15d25eddac622827eb4fb140d82f4ed1a927.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 <h2><%= l(:label_board_plural) %></h2>
Chris@909 2
Chris@909 3 <table class="list boards">
Chris@909 4 <thead><tr>
Chris@909 5 <th><%= l(:label_board) %></th>
Chris@909 6 <th><%= l(:label_topic_plural) %></th>
Chris@909 7 <th><%= l(:label_message_plural) %></th>
Chris@909 8 <th><%= l(:label_message_last) %></th>
Chris@909 9 </tr></thead>
Chris@909 10 <tbody>
Chris@909 11 <% for board in @boards %>
Chris@909 12 <tr class="<%= cycle 'odd', 'even' %>">
Chris@909 13 <td>
Chris@909 14 <%= link_to h(board.name), {:action => 'show', :id => board}, :class => "board" %><br />
Chris@909 15 <%=h board.description %>
Chris@909 16 </td>
Chris@909 17 <td align="center"><%= board.topics_count %></td>
Chris@909 18 <td align="center"><%= board.messages_count %></td>
Chris@909 19 <td>
Chris@909 20 <small>
Chris@909 21 <% if board.last_message %>
Chris@909 22 <%= authoring board.last_message.created_on, board.last_message.author %><br />
Chris@909 23 <%= link_to_message board.last_message %>
Chris@909 24 <% end %>
Chris@909 25 </small>
Chris@909 26 </td>
Chris@909 27 </tr>
Chris@909 28 <% end %>
Chris@909 29 </tbody>
Chris@909 30 </table>
Chris@909 31
Chris@909 32 <% other_formats_links do |f| %>
Chris@909 33 <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_messages => 1, :key => User.current.rss_key} %>
Chris@909 34 <% end %>
Chris@909 35
Chris@909 36 <% content_for :header_tags do %>
Chris@909 37 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %>
Chris@909 38 <% end %>
Chris@909 39
Chris@909 40 <% html_title l(:label_board_plural) %>