«
<% unless @changeset.previous.nil? -%>
<%= link_to_revision(@changeset.previous, @repository, :text => l(:label_previous)) %>
<% else -%>
<%= l(:label_previous) %>
<% end -%>
|
<% unless @changeset.next.nil? -%>
<%= link_to_revision(@changeset.next, @repository, :text => l(:label_next)) %>
<% else -%>
<%= l(:label_next) %>
<% end -%>
»
<%= form_tag({:controller => 'repositories',
:action => 'revision',
:id => @project,
:repository_id => @repository.identifier_param,
:rev => nil},
:method => :get) do %>
<%= text_field_tag 'rev', @rev, :size => 8 %>
<%= submit_tag 'OK', :name => nil %>
<% end %>
<%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %>
<% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
<% if @changeset.scmid.present? %>
ID | <%= h(@changeset.scmid) %> |
<% end %>
<% if @changeset.parents.present? %>
<%= l(:label_parent_revision) %> |
<%= @changeset.parents.collect{
|p| link_to_revision(p, @repository, :text => format_revision(p))
}.join(", ").html_safe %>
|
<% end %>
<% if @changeset.children.present? %>
<%= l(:label_child_revision) %> |
<%= @changeset.children.collect{
|p| link_to_revision(p, @repository, :text => format_revision(p))
}.join(", ").html_safe %>
|
<% end %>
<% end %>
<%= authoring(@changeset.committed_on, @changeset.author) %>
<%= textilizable @changeset.comments %>
<% if @changeset.issues.visible.any? || User.current.allowed_to?(:manage_related_issues, @repository.project) %>
<%= render :partial => 'related_issues' %>
<% end %>
<% if User.current.allowed_to?(:browse_repository, @project) %>
<%= l(:label_attachment_plural) %>
- <%= l(:label_added) %>
- <%= l(:label_modified) %>
- <%= l(:label_copied) %>
- <%= l(:label_renamed) %>
- <%= l(:label_deleted) %>
<%= link_to(l(:label_view_diff),
:action => 'diff',
:id => @project,
:repository_id => @repository.identifier_param,
:path => "",
:rev => @changeset.identifier) if @changeset.filechanges.any? %>
<%= render_changeset_changes %>
<% end %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>
<%
title = "#{l(:label_revision)} #{format_revision(@changeset)}"
title << " - #{truncate(@changeset.comments, :length => 80)}"
html_title(title)
-%>