<%= avatar(@changeset.user) %>
<%= authoring(@changeset.committed_on, @changeset.author) %>
<% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
<% if @changeset.scmid.present? %>
-
ID <%= @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 %>
<% 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, @repository.project) %>
<%
tabs = []
tabs << { name: 'revision', label: :label_change_plural,
url: { :action => 'revision',
:id => @project,
:repository_id => @repository.identifier_param,
:path => nil,
:rev => @changeset.identifier}
}
tabs << { name: 'diff', label: :label_view_diff,
url: { :action => 'diff',
:id => @project,
:repository_id => @repository.identifier_param,
:path => "",
:rev => @changeset.identifier }
} if action_name == 'diff' || @changeset.filechanges.any?
%>
<%= render :partial => 'common/tabs', :locals => {:tabs => tabs, :selected_tab => action_name} %>
<% end %>