summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/revision.html.erb
blob: 85b11d44129f2d823f02472e760b3940fa834f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<div class="contextual">
  &#171;
  <% unless @changeset.previous.nil? -%>
    <%= link_to_revision(@changeset.previous, @project, :text => l(:label_previous)) %>
  <% else -%>
    <%= l(:label_previous) %>
  <% end -%>
|
  <% unless @changeset.next.nil? -%>
    <%= link_to_revision(@changeset.next, @project, :text => l(:label_next)) %>
  <% else -%>
    <%= l(:label_next) %>
  <% end -%>
  &#187;&nbsp;

  <% form_tag({:controller => 'repositories',
               :action     => 'revision',
               :id         => @project,
               :rev        => nil},
               :method     => :get) do %>
    <%= text_field_tag 'rev', @rev, :size => 8 %>
    <%= submit_tag 'OK', :name => nil %>
  <% end %>
</div>

<h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2>

<p><% if @changeset.scmid %>ID: <%= h(@changeset.scmid) %><br /><% end %>
<span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p>

<%= textilizable @changeset.comments %>

<% if @changeset.issues.visible.any? %>
<h3><%= l(:label_related_issues) %></h3>
<ul>
<% @changeset.issues.visible.each do |issue| %>
  <li><%= link_to_issue issue %></li>
<% end %>
</ul>
<% end %>

<% if User.current.allowed_to?(:browse_repository, @project) %>
<h3><%= l(:label_attachment_plural) %></h3>
<ul id="changes-legend">
<li class="change change-A"><%= l(:label_added)    %></li>
<li class="change change-M"><%= l(:label_modified) %></li>
<li class="change change-C"><%= l(:label_copied)   %></li>
<li class="change change-R"><%= l(:label_renamed)  %></li>
<li class="change change-D"><%= l(:label_deleted)  %></li>
</ul>

<p><%= link_to(l(:label_view_diff),
               :action => 'diff',
               :id     => @project,
               :path   => "",
               :rev    => @changeset.identifier) if @changeset.changes.any? %></p>

<div class="changeset-changes">
<%= render_changeset_changes %>
</div>
<% end %>

<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>

<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%>