Mercurial > hg > soundsoftware-site
comparison .svn/pristine/ec/ec1cbc2837b541dae178b057c89fa58cc6ac7631.svn-base @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
1 <div class="contextual"> | |
2 « | |
3 <% unless @changeset.previous.nil? -%> | |
4 <%= link_to_revision(@changeset.previous, @repository, :text => l(:label_previous)) %> | |
5 <% else -%> | |
6 <%= l(:label_previous) %> | |
7 <% end -%> | |
8 | | |
9 <% unless @changeset.next.nil? -%> | |
10 <%= link_to_revision(@changeset.next, @repository, :text => l(:label_next)) %> | |
11 <% else -%> | |
12 <%= l(:label_next) %> | |
13 <% end -%> | |
14 » | |
15 | |
16 <%= form_tag({:controller => 'repositories', | |
17 :action => 'revision', | |
18 :id => @project, | |
19 :repository_id => @repository.identifier_param, | |
20 :rev => nil}, | |
21 :method => :get) do %> | |
22 <%= text_field_tag 'rev', @rev, :size => 8 %> | |
23 <%= submit_tag 'OK', :name => nil %> | |
24 <% end %> | |
25 </div> | |
26 | |
27 <h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2> | |
28 | |
29 <% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %> | |
30 <table class="revision-info"> | |
31 <% if @changeset.scmid.present? %> | |
32 <tr> | |
33 <td>ID</td><td><%= h(@changeset.scmid) %></td> | |
34 </tr> | |
35 <% end %> | |
36 <% if @changeset.parents.present? %> | |
37 <tr> | |
38 <td><%= l(:label_parent_revision) %></td> | |
39 <td> | |
40 <%= @changeset.parents.collect{ | |
41 |p| link_to_revision(p, @repository, :text => format_revision(p)) | |
42 }.join(", ").html_safe %> | |
43 </td> | |
44 </tr> | |
45 <% end %> | |
46 <% if @changeset.children.present? %> | |
47 <tr> | |
48 <td><%= l(:label_child_revision) %></td> | |
49 <td> | |
50 <%= @changeset.children.collect{ | |
51 |p| link_to_revision(p, @repository, :text => format_revision(p)) | |
52 }.join(", ").html_safe %> | |
53 </td> | |
54 </tr> | |
55 <% end %> | |
56 </table> | |
57 <% end %> | |
58 | |
59 <p> | |
60 <span class="author"> | |
61 <%= authoring(@changeset.committed_on, @changeset.author) %> | |
62 </span> | |
63 </p> | |
64 | |
65 <%= textilizable @changeset.comments %> | |
66 | |
67 <% if @changeset.issues.visible.any? || User.current.allowed_to?(:manage_related_issues, @repository.project) %> | |
68 <%= render :partial => 'related_issues' %> | |
69 <% end %> | |
70 | |
71 <% if User.current.allowed_to?(:browse_repository, @project) %> | |
72 <h3><%= l(:label_attachment_plural) %></h3> | |
73 <ul id="changes-legend"> | |
74 <li class="change change-A"><%= l(:label_added) %></li> | |
75 <li class="change change-M"><%= l(:label_modified) %></li> | |
76 <li class="change change-C"><%= l(:label_copied) %></li> | |
77 <li class="change change-R"><%= l(:label_renamed) %></li> | |
78 <li class="change change-D"><%= l(:label_deleted) %></li> | |
79 </ul> | |
80 | |
81 <p><%= link_to(l(:label_view_diff), | |
82 :action => 'diff', | |
83 :id => @project, | |
84 :repository_id => @repository.identifier_param, | |
85 :path => "", | |
86 :rev => @changeset.identifier) if @changeset.filechanges.any? %></p> | |
87 | |
88 <div class="changeset-changes"> | |
89 <%= render_changeset_changes %> | |
90 </div> | |
91 <% end %> | |
92 | |
93 <% content_for :header_tags do %> | |
94 <%= stylesheet_link_tag "scm" %> | |
95 <% end %> | |
96 | |
97 <% | |
98 title = "#{l(:label_revision)} #{format_revision(@changeset)}" | |
99 title << " - #{@changeset.comments.truncate(80)}" | |
100 html_title(title) | |
101 -%> |