Index: app/views/repositories/_changeset.html.erb
===================================================================
--- app/views/repositories/_changeset.html.erb (revision 0)
+++ app/views/repositories/_changeset.html.erb (working copy)
@@ -0,0 +1,45 @@
+
<%= 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 | <%= @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 %>
Index: app/views/repositories/diff.html.erb
===================================================================
--- app/views/repositories/diff.html.erb (revision 15012)
+++ app/views/repositories/diff.html.erb (working copy)
@@ -1,4 +1,4 @@
-<%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %>
+<%= render :partial => 'changeset', :locals => {:repository => @repository, :changeset => @changeset} %>
<%= form_tag({:action => 'diff', :id => @project,
Index: app/views/repositories/revision.html.erb
===================================================================
--- app/views/repositories/revision.html.erb (revision 15012)
+++ app/views/repositories/revision.html.erb (working copy)
@@ -26,52 +26,8 @@
<% end %>
-<%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %>
+<%= render :partial => 'changeset', :locals => {:repository => @repository, :changeset => @changeset} %>
-
- <% 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 %>
-
-
-
- <%= 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) %>