annotate .svn/pristine/7f/7ff23d5fea408f9d6534a6f5460b6d5d1d871f7f.svn-base @ 1478:5ca1f4a47171 bibplugin_db_migrations

Close obsolete branch bibplugin_db_migrations
author Chris Cannam
date Fri, 30 Nov 2012 14:40:50 +0000
parents cbb26bc654de
children
rev   line source
Chris@909 1 <div class="contextual">
Chris@909 2 <%= link_to(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit') %>
Chris@909 3 <%= link_to(l(:label_history),
Chris@909 4 {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
Chris@909 5 </div>
Chris@909 6
Chris@909 7 <%= wiki_page_breadcrumb(@page) %>
Chris@909 8
Chris@909 9 <h2><%=h @page.pretty_title %></h2>
Chris@909 10
Chris@909 11 <p>
Chris@909 12 <%= l(:label_version) %> <%= link_to h(@annotate.content.version),
Chris@909 13 :action => 'show', :project_id => @project,
Chris@909 14 :id => @page.title, :version => @annotate.content.version %>
Chris@909 15 <em>(<%= h(@annotate.content.author ?
Chris@909 16 @annotate.content.author.name : l(:label_user_anonymous))
Chris@909 17 %>, <%= format_time(@annotate.content.updated_on) %>)</em>
Chris@909 18 </p>
Chris@909 19
Chris@909 20 <% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
Chris@909 21
Chris@909 22 <table class="filecontent annotate">
Chris@909 23 <tbody>
Chris@909 24 <% line_num = 1 %>
Chris@909 25 <% @annotate.lines.each do |line| -%>
Chris@909 26 <tr class="bloc-<%= colors[line[0]] %>">
Chris@909 27 <th class="line-num"><%= line_num %></th>
Chris@909 28 <td class="revision"><%= link_to line[0], :controller => 'wiki',
Chris@909 29 :action => 'show', :project_id => @project,
Chris@909 30 :id => @page.title, :version => line[0] %></td>
Chris@909 31 <td class="author"><%= h(line[1]) %></td>
Chris@909 32 <td class="line-code"><pre><%=h line[2] %></pre></td>
Chris@909 33 </tr>
Chris@909 34 <% line_num += 1 %>
Chris@909 35 <% end -%>
Chris@909 36 </tbody>
Chris@909 37 </table>
Chris@909 38
Chris@909 39 <% content_for :header_tags do %>
Chris@909 40 <%= stylesheet_link_tag 'scm' %>
Chris@909 41 <% end %>