To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / repositories / revision.html.erb @ 1082:997f6d7738f7

History | View | Annotate | Download (2.84 KB)

1
<div class="contextual">
2

    
3
  <%= link_to_revision_archive(@repository, @changeset, @project, { :text => l(:label_download_revision), :class => 'icon icon-package' }) %>
4
  &nbsp;&nbsp;
5

    
6
  &#171;
7
  <% unless @changeset.previous.nil? -%>
8
    <%= link_to_revision(@changeset.previous, @project, :text => l(:label_previous)) %>
9
  <% else -%>
10
    <%= l(:label_previous) %>
11
  <% end -%>
12

    
13
  <% unless @changeset.next.nil? -%>
14
    <%= link_to_revision(@changeset.next, @project, :text => l(:label_next)) %>
15
  <% else -%>
16
    <%= l(:label_next) %>
17
  <% end -%>
18
  &#187;&nbsp;
19

    
20
  <% form_tag({:controller => 'repositories',
21
               :action     => 'revision',
22
               :id         => @project,
23
               :rev        => nil},
24
               :method     => :get) do %>
25
    <%= text_field_tag 'rev', @rev, :size => 8 %>
26
    <%= submit_tag 'OK', :name => nil %>
27
  <% end %>
28

    
29
</div>
30

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

    
33
<table class="revision-info">
34
  <% if @changeset.scmid %>
35
    <tr>
36
      <td>ID</td><td><%= h(@changeset.scmid) %></td>
37
    </tr>
38
  <% end %>
39
  <% unless @changeset.parents.blank? %>
40
    <tr>
41
      <td><%= l(:label_parent_revision) %></td>
42
      <td>
43
        <%= @changeset.parents.collect{
44
              |p| link_to_revision(p, @project, :text => format_revision(p))
45
            }.join(", ") %>
46
      </td>
47
    </tr>
48
  <% end %>
49
  <% unless @changeset.children.blank? %>
50
    <tr>
51
      <td><%= l(:label_child_revision) %></td>
52
      <td>
53
       <%= @changeset.children.collect{
54
              |p| link_to_revision(p, @project, :text => format_revision(p))
55
             }.join(", ") %>
56
      </td>
57
    </tr>
58
  <% end %>
59
</table>
60
<p>
61
<span class="author">
62
<%= authoring(@changeset.committed_on, @changeset.author) %>
63
</span>
64
</p>
65

    
66
<%= textilizable @changeset.comments %>
67

    
68
<% if @changeset.issues.visible.any? %>
69
<h3><%= l(:label_related_issues) %></h3>
70
<ul>
71
<% @changeset.issues.visible.each do |issue| %>
72
  <li><%= link_to_issue issue %></li>
73
<% end %>
74
</ul>
75
<% end %>
76

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

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

    
93
<div class="changeset-changes">
94
<%= render_changeset_changes %>
95
</div>
96
<% end %>
97

    
98
<% content_for :header_tags do %>
99
<%= stylesheet_link_tag "scm" %>
100
<% end %>
101

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