Feature #4266 » add_changeset_comment_to_diff_page_v2.diff
| app/views/repositories/_changeset.html.erb (working copy) | ||
|---|---|---|
|
<h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
|
||
|
<div class="details">
|
||
|
<% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
|
||
|
<table class="revision-info">
|
||
|
<% if @changeset.scmid.present? %>
|
||
|
<tr>
|
||
|
<td>ID</td><td><%= @changeset.scmid %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
<% if @changeset.parents.present? %>
|
||
|
<tr>
|
||
|
<td><%= l(:label_parent_revision) %></td>
|
||
|
<td>
|
||
|
<%= @changeset.parents.collect{
|
||
|
|p| link_to_revision(p, @repository, :text => format_revision(p))
|
||
|
}.join(", ").html_safe %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
<% if @changeset.children.present? %>
|
||
|
<tr>
|
||
|
<td><%= l(:label_child_revision) %></td>
|
||
|
<td>
|
||
|
<%= @changeset.children.collect{
|
||
|
|p| link_to_revision(p, @repository, :text => format_revision(p))
|
||
|
}.join(", ").html_safe %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|
||
|
<% end %>
|
||
|
<p>
|
||
|
<span class="author">
|
||
|
<%= authoring(@changeset.committed_on, @changeset.author) %>
|
||
|
</span>
|
||
|
</p>
|
||
|
</div>
|
||
|
<%= textilizable @changeset.comments %>
|
||
|
<% if @changeset.issues.visible.any? || User.current.allowed_to?(:manage_related_issues, @repository.project) %>
|
||
|
<%= render :partial => 'related_issues' %>
|
||
|
<% end %>
|
||
| app/views/repositories/diff.html.erb (working copy) | ||
|---|---|---|
|
<h2><%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %></h2>
|
||
|
<%= render :partial => 'changeset', :locals => {:repository => @repository, :changeset => @changeset} %>
|
||
|
<!-- Choose view type -->
|
||
|
<%= form_tag({:action => 'diff', :id => @project,
|
||
| app/views/repositories/revision.html.erb (working copy) | ||
|---|---|---|
|
<% end %>
|
||
|
</div>
|
||
|
<h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
|
||
|
<%= render :partial => 'changeset', :locals => {:repository => @repository, :changeset => @changeset} %>
|
||
|
<div class="details">
|
||
|
<% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
|
||
|
<table class="revision-info">
|
||
|
<% if @changeset.scmid.present? %>
|
||
|
<tr>
|
||
|
<td>ID</td><td><%= @changeset.scmid %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
<% if @changeset.parents.present? %>
|
||
|
<tr>
|
||
|
<td><%= l(:label_parent_revision) %></td>
|
||
|
<td>
|
||
|
<%= @changeset.parents.collect{
|
||
|
|p| link_to_revision(p, @repository, :text => format_revision(p))
|
||
|
}.join(", ").html_safe %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
<% if @changeset.children.present? %>
|
||
|
<tr>
|
||
|
<td><%= l(:label_child_revision) %></td>
|
||
|
<td>
|
||
|
<%= @changeset.children.collect{
|
||
|
|p| link_to_revision(p, @repository, :text => format_revision(p))
|
||
|
}.join(", ").html_safe %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|
||
|
<% end %>
|
||
|
<p>
|
||
|
<span class="author">
|
||
|
<%= authoring(@changeset.committed_on, @changeset.author) %>
|
||
|
</span>
|
||
|
</p>
|
||
|
</div>
|
||
|
<%= 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) %>
|
||
|
<h3><%= l(:label_attachment_plural) %></h3>
|
||
|
<ul id="changes-legend">
|
||
- « Previous
- 1
- …
- 6
- 7
- 8
- Next »