revisions.rhtml
23 lines
| 966 B
| text/html+ruby
|
RhtmlLexer
|
r330 | <div class="contextual"> | |
<% form_tag do %> | |||
<p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %> | |||
<%= submit_tag 'OK' %></p> | |||
<% end %> | |||
</div> | |||
|
r374 | <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => (@entry ? @entry.kind : nil), :revision => @rev } %></h2> | |
|
r330 | ||
|
r374 | <% if @entry && @entry.is_file? %> | |
|
r330 | <h3><%=h @entry.name %></h3> | |
<p><%= link_to 'Download', {:action => 'entry', :id => @project, :path => @path, :rev => @rev, :format => 'raw' }, :class => "icon file" %> (<%= number_to_human_size @entry.size %>)</p> | |||
<% end %> | |||
<h3>Revisions</h3> | |||
|
r374 | <%= render :partial => 'revisions', :locals => {:project => @project, :path => @path, :changesets => @changesets, :entry => @entry }%> | |
|
r378 | ||
<p><%= pagination_links_full @changeset_pages %> | |||
[ <%= @changeset_pages.current.first_item %> - <%= @changeset_pages.current.last_item %> / <%= @changeset_count %> ]</p> | |||
|
r330 | ||
<% content_for :header_tags do %> | |||
<%= stylesheet_link_tag "scm" %> | |||
|
r147 | <% end %> |