2007-03-12 20:59:02 +03:00
|
|
|
<div class="contextual">
|
2007-12-01 20:15:42 +03:00
|
|
|
«
|
|
|
|
<% unless @changeset.previous.nil? -%>
|
2012-01-15 22:19:19 +04:00
|
|
|
<%= link_to_revision(@changeset.previous, @repository, :text => l(:label_previous)) %>
|
2007-12-01 20:15:42 +03:00
|
|
|
<% else -%>
|
|
|
|
<%= l(:label_previous) %>
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
|
<% unless @changeset.next.nil? -%>
|
2012-01-15 22:19:19 +04:00
|
|
|
<%= link_to_revision(@changeset.next, @repository, :text => l(:label_next)) %>
|
2007-12-01 20:15:42 +03:00
|
|
|
<% else -%>
|
|
|
|
<%= l(:label_next) %>
|
|
|
|
<% end -%>
|
|
|
|
»
|
2009-02-21 15:58:18 +03:00
|
|
|
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= form_tag({:controller => 'repositories',
|
2011-05-21 04:58:47 +04:00
|
|
|
:action => 'revision',
|
|
|
|
:id => @project,
|
2012-01-15 22:19:19 +04:00
|
|
|
:repository_id => @repository.identifier_param,
|
2011-05-21 04:58:47 +04:00
|
|
|
:rev => nil},
|
|
|
|
:method => :get) do %>
|
2011-01-02 12:45:05 +03:00
|
|
|
<%= text_field_tag 'rev', @rev, :size => 8 %>
|
2008-07-01 01:52:29 +04:00
|
|
|
<%= submit_tag 'OK', :name => nil %>
|
2007-12-01 20:15:42 +03:00
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
|
2012-01-04 22:41:50 +04:00
|
|
|
<h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2012-01-04 22:31:27 +04:00
|
|
|
<% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
|
2011-11-03 15:34:09 +04:00
|
|
|
<table class="revision-info">
|
2012-01-04 22:31:27 +04:00
|
|
|
<% if @changeset.scmid.present? %>
|
2011-11-03 15:34:09 +04:00
|
|
|
<tr>
|
|
|
|
<td>ID</td><td><%= h(@changeset.scmid) %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2012-01-04 22:31:27 +04:00
|
|
|
<% if @changeset.parents.present? %>
|
2011-11-03 15:34:09 +04:00
|
|
|
<tr>
|
|
|
|
<td><%= l(:label_parent_revision) %></td>
|
|
|
|
<td>
|
|
|
|
<%= @changeset.parents.collect{
|
2012-01-15 22:19:19 +04:00
|
|
|
|p| link_to_revision(p, @repository, :text => format_revision(p))
|
2011-12-03 10:15:03 +04:00
|
|
|
}.join(", ").html_safe %>
|
2011-11-03 15:34:09 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2012-01-04 22:31:27 +04:00
|
|
|
<% if @changeset.children.present? %>
|
2011-11-03 15:34:09 +04:00
|
|
|
<tr>
|
|
|
|
<td><%= l(:label_child_revision) %></td>
|
|
|
|
<td>
|
|
|
|
<%= @changeset.children.collect{
|
2012-01-15 22:19:19 +04:00
|
|
|
|p| link_to_revision(p, @repository, :text => format_revision(p))
|
2011-12-03 10:15:03 +04:00
|
|
|
}.join(", ").html_safe %>
|
2011-11-03 15:34:09 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
2012-01-04 22:31:27 +04:00
|
|
|
<% end %>
|
|
|
|
|
2011-11-03 15:34:09 +04:00
|
|
|
<p>
|
|
|
|
<span class="author">
|
|
|
|
<%= authoring(@changeset.committed_on, @changeset.author) %>
|
|
|
|
</span>
|
|
|
|
</p>
|
2007-06-13 00:12:05 +04:00
|
|
|
|
2007-04-25 19:06:20 +04:00
|
|
|
<%= textilizable @changeset.comments %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2012-02-05 14:56:27 +04:00
|
|
|
<% if @changeset.issues.visible.any? || User.current.allowed_to?(:manage_related_issues, @repository.project) %>
|
|
|
|
<%= render :partial => 'related_issues' %>
|
2007-04-24 17:57:27 +04:00
|
|
|
<% end %>
|
|
|
|
|
2009-02-21 15:58:18 +03:00
|
|
|
<% if User.current.allowed_to?(:browse_repository, @project) %>
|
2007-04-26 22:46:55 +04:00
|
|
|
<h3><%= l(:label_attachment_plural) %></h3>
|
2008-09-17 20:39:23 +04:00
|
|
|
<ul id="changes-legend">
|
2011-05-21 04:58:47 +04:00
|
|
|
<li class="change change-A"><%= l(:label_added) %></li>
|
2008-09-17 20:39:23 +04:00
|
|
|
<li class="change change-M"><%= l(:label_modified) %></li>
|
2011-05-21 04:58:47 +04:00
|
|
|
<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>
|
2008-09-17 20:39:23 +04:00
|
|
|
</ul>
|
|
|
|
|
2011-05-21 04:58:47 +04:00
|
|
|
<p><%= link_to(l(:label_view_diff),
|
|
|
|
:action => 'diff',
|
|
|
|
:id => @project,
|
2012-01-15 22:19:19 +04:00
|
|
|
:repository_id => @repository.identifier_param,
|
2011-05-21 04:58:47 +04:00
|
|
|
:path => "",
|
2012-06-03 15:46:58 +04:00
|
|
|
:rev => @changeset.identifier) if @changeset.filechanges.any? %></p>
|
2008-09-17 20:39:23 +04:00
|
|
|
|
|
|
|
<div class="changeset-changes">
|
|
|
|
<%= render_changeset_changes %>
|
|
|
|
</div>
|
2009-02-21 15:58:18 +03:00
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag "scm" %>
|
2007-05-16 01:32:36 +04:00
|
|
|
<% end %>
|
2007-12-07 21:42:40 +03:00
|
|
|
|
2011-01-02 12:45:05 +03:00
|
|
|
<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%>
|