revision.html.erb
61 lines
| 1.9 KiB
| text/plain
|
TextLexer
|
r330 | <div class="contextual"> | ||
|
r925 | « | ||
<% unless @changeset.previous.nil? -%> | ||||
|
r13412 | <%= link_to_revision(@changeset.previous, @repository, | ||
:text => l(:label_previous), :accesskey => accesskey(:previous)) %> | ||||
|
r925 | <% else -%> | ||
<%= l(:label_previous) %> | ||||
<% end -%> | ||||
| | ||||
<% unless @changeset.next.nil? -%> | ||||
|
r13412 | <%= link_to_revision(@changeset.next, @repository, | ||
:text => l(:label_next), :accesskey => accesskey(:next)) %> | ||||
|
r925 | <% else -%> | ||
<%= l(:label_next) %> | ||||
<% end -%> | ||||
» | ||||
|
r2436 | |||
|
r9346 | <%= form_tag({:controller => 'repositories', | ||
|
r5739 | :action => 'revision', | ||
:id => @project, | ||||
|
r8530 | :repository_id => @repository.identifier_param, | ||
|
r5739 | :rev => nil}, | ||
:method => :get) do %> | ||||
|
r4493 | <%= text_field_tag 'rev', @rev, :size => 8 %> | ||
|
r1597 | <%= submit_tag 'OK', :name => nil %> | ||
|
r925 | <% end %> | ||
|
r330 | </div> | ||
|
r14758 | <%= render :partial => 'changeset' %> | ||
|
r470 | |||
|
r2436 | <% if User.current.allowed_to?(:browse_repository, @project) %> | ||
|
r480 | <h3><%= l(:label_attachment_plural) %></h3> | ||
|
r1868 | <ul id="changes-legend"> | ||
|
r5739 | <li class="change change-A"><%= l(:label_added) %></li> | ||
|
r1868 | <li class="change change-M"><%= l(:label_modified) %></li> | ||
|
r5739 | <li class="change change-C"><%= l(:label_copied) %></li> | ||
<li class="change change-R"><%= l(:label_renamed) %></li> | ||||
<li class="change change-D"><%= l(:label_deleted) %></li> | ||||
|
r1868 | </ul> | ||
|
r5739 | <p><%= link_to(l(:label_view_diff), | ||
:action => 'diff', | ||||
:id => @project, | ||||
|
r8530 | :repository_id => @repository.identifier_param, | ||
|
r5739 | :path => "", | ||
|
r9576 | :rev => @changeset.identifier) if @changeset.filechanges.any? %></p> | ||
|
r1868 | |||
<div class="changeset-changes"> | ||||
<%= render_changeset_changes %> | ||||
</div> | ||||
|
r2436 | <% end %> | ||
|
r330 | |||
<% content_for :header_tags do %> | ||||
<%= stylesheet_link_tag "scm" %> | ||||
|
r532 | <% end %> | ||
|
r951 | |||
|
r11679 | <% | ||
title = "#{l(:label_revision)} #{format_revision(@changeset)}" | ||||
|
r12565 | title << " - #{@changeset.comments.truncate(80)}" | ||
|
r11679 | html_title(title) | ||
-%> | ||||