1 <div class="contextual">
2 <%= link_to(l(:button_edit), {:action => 'edit', :page => @page.title}, :class => 'icon icon-edit') %>
3 <%= link_to(l(:label_history), {:action => 'history', :page => @page.title}, :class => 'icon icon-history') %>
6 <h2><%= @page.pretty_title %></h2>
9 <%= l(:label_version) %> <%= link_to @annotate.content.version, :action => 'index', :page => @page.title, :version => @annotate.content.version %>
10 <em>(<%= @annotate.content.author ? @annotate.content.author.name : "anonyme" %>, <%= format_time(@annotate.content.updated_on) %>)</em>
13 <% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
15 <table class="filecontent annotate CodeRay ">
18 <% @annotate.lines.each do |line| -%>
19 <tr class="bloc-<%= colors[line[0]] %>">
20 <th class="line-num"><%= line_num %></th>
21 <td class="revision"><%= link_to line[0], :controller => 'wiki', :action => 'index', :id => @project, :page => @page.title, :version => line[0] %></td>
22 <td class="author"><%= h(line[1]) %></td>
23 <td class="line-code"><pre><%=h line[2] %></pre></td>
30 <% content_for :header_tags do %>
31 <%= stylesheet_link_tag 'scm' %>