comparison app/views/repositories/revision.rhtml @ 119:8661b858af72

* Update to Redmine trunk rev 4705
author Chris Cannam
date Thu, 13 Jan 2011 14:12:06 +0000
parents 513646585e45
children b859cc0c4fa1 cbce1fd3b1b7
comparison
equal deleted inserted replaced
39:150ceac17a8d 119:8661b858af72
1 <div class="contextual"> 1 <div class="contextual">
2 &#171; 2 &#171;
3 <% unless @changeset.previous.nil? -%> 3 <% unless @changeset.previous.nil? -%>
4 <%= link_to_revision(@changeset.previous.revision, @project, :text => l(:label_previous)) %> 4 <%= link_to_revision(@changeset.previous, @project, :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.revision, @project, :text => l(:label_next)) %> 10 <%= link_to_revision(@changeset.next, @project, :text => l(:label_next)) %>
11 <% else -%> 11 <% else -%>
12 <%= l(:label_next) %> 12 <%= l(:label_next) %>
13 <% end -%> 13 <% end -%>
14 &#187;&nbsp; 14 &#187;&nbsp;
15 15
16 <% form_tag({:controller => 'repositories', :action => 'revision', :id => @project, :rev => nil}, :method => :get) do %> 16 <% form_tag({:controller => 'repositories', :action => 'revision', :id => @project, :rev => nil}, :method => :get) do %>
17 <%= text_field_tag 'rev', @rev[0,8], :size => 8 %> 17 <%= text_field_tag 'rev', @rev, :size => 8 %>
18 <%= submit_tag 'OK', :name => nil %> 18 <%= submit_tag 'OK', :name => nil %>
19 <% end %> 19 <% end %>
20 </div> 20 </div>
21 21
22 <h2><%= l(:label_revision) %> <%= format_revision(@changeset.revision) %></h2> 22 <h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>
23 23
24 <p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %> 24 <p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %>
25 <span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p> 25 <span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p>
26 26
27 <%= textilizable @changeset.comments %> 27 <%= textilizable @changeset.comments %>
43 <li class="change change-C"><%= l(:label_copied) %></li> 43 <li class="change change-C"><%= l(:label_copied) %></li>
44 <li class="change change-R"><%= l(:label_renamed) %></li> 44 <li class="change change-R"><%= l(:label_renamed) %></li>
45 <li class="change change-D"><%= l(:label_deleted) %></li> 45 <li class="change change-D"><%= l(:label_deleted) %></li>
46 </ul> 46 </ul>
47 47
48 <p><%= link_to(l(:label_view_diff), :action => 'diff', :id => @project, :path => "", :rev => @changeset.revision) if @changeset.changes.any? %></p> 48 <p><%= link_to(l(:label_view_diff), :action => 'diff', :id => @project, :path => "", :rev => @changeset.identifier) if @changeset.changes.any? %></p>
49 49
50 <div class="changeset-changes"> 50 <div class="changeset-changes">
51 <%= render_changeset_changes %> 51 <%= render_changeset_changes %>
52 </div> 52 </div>
53 <% end %> 53 <% end %>
54 54
55 <% content_for :header_tags do %> 55 <% content_for :header_tags do %>
56 <%= stylesheet_link_tag "scm" %> 56 <%= stylesheet_link_tag "scm" %>
57 <% end %> 57 <% end %>
58 58
59 <% html_title("#{l(:label_revision)} #{@changeset.revision}") -%> 59 <% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%>