Mercurial > hg > soundsoftware-site
comparison app/views/repositories/revision.html.erb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | cbb26bc654de |
children | bb32da3bea34 261b3d9a4903 |
comparison
equal
deleted
inserted
replaced
929:5f33065ddc4b | 1115:433d4f72a19b |
---|---|
1 <div class="contextual"> | 1 <div class="contextual"> |
2 « | 2 « |
3 <% unless @changeset.previous.nil? -%> | 3 <% unless @changeset.previous.nil? -%> |
4 <%= link_to_revision(@changeset.previous, @project, :text => l(:label_previous)) %> | 4 <%= link_to_revision(@changeset.previous, @repository, :text => l(:label_previous)) %> |
5 <% else -%> | 5 <% else -%> |
6 <%= l(:label_previous) %> | 6 <%= l(:label_previous) %> |
7 <% end -%> | 7 <% end -%> |
8 | | 8 | |
9 <% unless @changeset.next.nil? -%> | 9 <% unless @changeset.next.nil? -%> |
10 <%= link_to_revision(@changeset.next, @project, :text => l(:label_next)) %> | 10 <%= link_to_revision(@changeset.next, @repository, :text => l(:label_next)) %> |
11 <% else -%> | 11 <% else -%> |
12 <%= l(:label_next) %> | 12 <%= l(:label_next) %> |
13 <% end -%> | 13 <% end -%> |
14 » | 14 » |
15 | 15 |
16 <% form_tag({:controller => 'repositories', | 16 <%= form_tag({:controller => 'repositories', |
17 :action => 'revision', | 17 :action => 'revision', |
18 :id => @project, | 18 :id => @project, |
19 :repository_id => @repository.identifier_param, | |
19 :rev => nil}, | 20 :rev => nil}, |
20 :method => :get) do %> | 21 :method => :get) do %> |
21 <%= text_field_tag 'rev', @rev, :size => 8 %> | 22 <%= text_field_tag 'rev', @rev, :size => 8 %> |
22 <%= submit_tag 'OK', :name => nil %> | 23 <%= submit_tag 'OK', :name => nil %> |
23 <% end %> | 24 <% end %> |
24 </div> | 25 </div> |
25 | 26 |
26 <h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2> | 27 <h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2> |
27 | 28 |
29 <% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %> | |
28 <table class="revision-info"> | 30 <table class="revision-info"> |
29 <% if @changeset.scmid %> | 31 <% if @changeset.scmid.present? %> |
30 <tr> | 32 <tr> |
31 <td>ID</td><td><%= h(@changeset.scmid) %></td> | 33 <td>ID</td><td><%= h(@changeset.scmid) %></td> |
32 </tr> | 34 </tr> |
33 <% end %> | 35 <% end %> |
34 <% unless @changeset.parents.blank? %> | 36 <% if @changeset.parents.present? %> |
35 <tr> | 37 <tr> |
36 <td><%= l(:label_parent_revision) %></td> | 38 <td><%= l(:label_parent_revision) %></td> |
37 <td> | 39 <td> |
38 <%= @changeset.parents.collect{ | 40 <%= @changeset.parents.collect{ |
39 |p| link_to_revision(p, @project, :text => format_revision(p)) | 41 |p| link_to_revision(p, @repository, :text => format_revision(p)) |
40 }.join(", ") %> | 42 }.join(", ").html_safe %> |
41 </td> | 43 </td> |
42 </tr> | 44 </tr> |
43 <% end %> | 45 <% end %> |
44 <% unless @changeset.children.blank? %> | 46 <% if @changeset.children.present? %> |
45 <tr> | 47 <tr> |
46 <td><%= l(:label_child_revision) %></td> | 48 <td><%= l(:label_child_revision) %></td> |
47 <td> | 49 <td> |
48 <%= @changeset.children.collect{ | 50 <%= @changeset.children.collect{ |
49 |p| link_to_revision(p, @project, :text => format_revision(p)) | 51 |p| link_to_revision(p, @repository, :text => format_revision(p)) |
50 }.join(", ") %> | 52 }.join(", ").html_safe %> |
51 </td> | 53 </td> |
52 </tr> | 54 </tr> |
53 <% end %> | 55 <% end %> |
54 </table> | 56 </table> |
57 <% end %> | |
58 | |
55 <p> | 59 <p> |
56 <span class="author"> | 60 <span class="author"> |
57 <%= authoring(@changeset.committed_on, @changeset.author) %> | 61 <%= authoring(@changeset.committed_on, @changeset.author) %> |
58 </span> | 62 </span> |
59 </p> | 63 </p> |
60 | 64 |
61 <%= textilizable @changeset.comments %> | 65 <%= textilizable @changeset.comments %> |
62 | 66 |
63 <% if @changeset.issues.visible.any? %> | 67 <% if @changeset.issues.visible.any? || User.current.allowed_to?(:manage_related_issues, @repository.project) %> |
64 <h3><%= l(:label_related_issues) %></h3> | 68 <%= render :partial => 'related_issues' %> |
65 <ul> | |
66 <% @changeset.issues.visible.each do |issue| %> | |
67 <li><%= link_to_issue issue %></li> | |
68 <% end %> | |
69 </ul> | |
70 <% end %> | 69 <% end %> |
71 | 70 |
72 <% if User.current.allowed_to?(:browse_repository, @project) %> | 71 <% if User.current.allowed_to?(:browse_repository, @project) %> |
73 <h3><%= l(:label_attachment_plural) %></h3> | 72 <h3><%= l(:label_attachment_plural) %></h3> |
74 <ul id="changes-legend"> | 73 <ul id="changes-legend"> |
80 </ul> | 79 </ul> |
81 | 80 |
82 <p><%= link_to(l(:label_view_diff), | 81 <p><%= link_to(l(:label_view_diff), |
83 :action => 'diff', | 82 :action => 'diff', |
84 :id => @project, | 83 :id => @project, |
84 :repository_id => @repository.identifier_param, | |
85 :path => "", | 85 :path => "", |
86 :rev => @changeset.identifier) if @changeset.changes.any? %></p> | 86 :rev => @changeset.identifier) if @changeset.filechanges.any? %></p> |
87 | 87 |
88 <div class="changeset-changes"> | 88 <div class="changeset-changes"> |
89 <%= render_changeset_changes %> | 89 <%= render_changeset_changes %> |
90 </div> | 90 </div> |
91 <% end %> | 91 <% end %> |