Mercurial > hg > soundsoftware-site
comparison app/views/repositories/revision.html.erb @ 908:c6c2cbd0afee redmine-1.3
Rename .rhtml files to .html.erb in preparation for merge
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 18:36:29 +0000 |
parents | app/views/repositories/revision.rhtml@cbce1fd3b1b7 |
children | cbb26bc654de |
comparison
equal
deleted
inserted
replaced
907:df51e8ff578d | 908:c6c2cbd0afee |
---|---|
1 <div class="contextual"> | |
2 « | |
3 <% unless @changeset.previous.nil? -%> | |
4 <%= link_to_revision(@changeset.previous, @project, :text => l(:label_previous)) %> | |
5 <% else -%> | |
6 <%= l(:label_previous) %> | |
7 <% end -%> | |
8 | | |
9 <% unless @changeset.next.nil? -%> | |
10 <%= link_to_revision(@changeset.next, @project, :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 :rev => nil}, | |
20 :method => :get) do %> | |
21 <%= text_field_tag 'rev', @rev, :size => 8 %> | |
22 <%= submit_tag 'OK', :name => nil %> | |
23 <% end %> | |
24 </div> | |
25 | |
26 <h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2> | |
27 | |
28 <p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %> | |
29 <span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p> | |
30 | |
31 <%= textilizable @changeset.comments %> | |
32 | |
33 <% if @changeset.issues.visible.any? %> | |
34 <h3><%= l(:label_related_issues) %></h3> | |
35 <ul> | |
36 <% @changeset.issues.visible.each do |issue| %> | |
37 <li><%= link_to_issue issue %></li> | |
38 <% end %> | |
39 </ul> | |
40 <% end %> | |
41 | |
42 <% if User.current.allowed_to?(:browse_repository, @project) %> | |
43 <h3><%= l(:label_attachment_plural) %></h3> | |
44 <ul id="changes-legend"> | |
45 <li class="change change-A"><%= l(:label_added) %></li> | |
46 <li class="change change-M"><%= l(:label_modified) %></li> | |
47 <li class="change change-C"><%= l(:label_copied) %></li> | |
48 <li class="change change-R"><%= l(:label_renamed) %></li> | |
49 <li class="change change-D"><%= l(:label_deleted) %></li> | |
50 </ul> | |
51 | |
52 <p><%= link_to(l(:label_view_diff), | |
53 :action => 'diff', | |
54 :id => @project, | |
55 :path => "", | |
56 :rev => @changeset.identifier) if @changeset.changes.any? %></p> | |
57 | |
58 <div class="changeset-changes"> | |
59 <%= render_changeset_changes %> | |
60 </div> | |
61 <% end %> | |
62 | |
63 <% content_for :header_tags do %> | |
64 <%= stylesheet_link_tag "scm" %> | |
65 <% end %> | |
66 | |
67 <% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%> |