2006-12-24 16:38:45 +03:00
|
|
|
<div class="contextual">
|
2007-01-26 22:56:25 +03:00
|
|
|
<% form_tag do %>
|
2007-01-05 22:10:57 +03:00
|
|
|
<p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
|
|
|
|
<%= submit_tag 'OK' %></p>
|
2007-01-26 22:56:25 +03:00
|
|
|
<% end %>
|
2006-12-24 16:38:45 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => @entry.kind, :revision => @rev } %></h2>
|
|
|
|
|
|
|
|
<% if @entry.is_file? %>
|
|
|
|
<h3><%=h @entry.name %></h3>
|
2007-01-26 23:02:49 +03:00
|
|
|
<p><%= link_to 'Download', {:action => 'entry', :id => @project, :path => @path, :rev => @rev, :format => 'raw' }, :class => "icon file" %> (<%= number_to_human_size @entry.size %>)</p>
|
2006-12-24 16:38:45 +03:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<h3>Revisions</h3>
|
|
|
|
|
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th><%= l(:field_author) %></th>
|
|
|
|
<th><%= l(:label_date) %></th>
|
|
|
|
<th><%= l(:field_description) %></th>
|
|
|
|
<th></th>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
|
|
|
<% @revisions.each do |revision| %>
|
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
|
|
|
<th align="center"><%= link_to revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier %></th>
|
|
|
|
<td align="center"><em><%=h revision.author %></em></td>
|
|
|
|
<td align="center"><%= format_time(revision.time) %></td>
|
2007-01-05 22:10:57 +03:00
|
|
|
<td style="width:70%"><%= textilizable(revision.message) %></td>
|
2006-12-24 16:38:45 +03:00
|
|
|
<td align="center"><%= link_to 'Diff', :action => 'diff', :id => @project, :path => @path, :rev => revision.identifier if @entry.is_file? && revision != @revisions.last %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2007-01-05 22:10:57 +03:00
|
|
|
<p><%= lwr(:label_modification, @revisions.length) %></p>
|
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag "scm" %>
|
|
|
|
<% end %>
|