To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / repositories / revision.rhtml @ 898:84f0b221aa7a
History | View | Annotate | Download (2.2 KB)
| 1 |
<div class="contextual"> |
|---|---|
| 2 |
|
| 3 |
<%= link_to_revision_archive(@repository, @changeset, @project, { :text => l(:label_download_revision), :class => 'icon icon-package' }) %>
|
| 4 |
|
| 5 |
|
| 6 |
«
|
| 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 |
» |
| 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 |
<p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %> |
| 34 |
<span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p> |
| 35 |
|
| 36 |
<%= textilizable @changeset.comments %>
|
| 37 |
|
| 38 |
<% if @changeset.issues.visible.any? %>
|
| 39 |
<h3><%= l(:label_related_issues) %></h3> |
| 40 |
<ul>
|
| 41 |
<% @changeset.issues.visible.each do |issue| %>
|
| 42 |
<li><%= link_to_issue issue %></li> |
| 43 |
<% end %>
|
| 44 |
</ul>
|
| 45 |
<% end %>
|
| 46 |
|
| 47 |
<% if User.current.allowed_to?(:browse_repository, @project) %>
|
| 48 |
<h3><%= l(:label_attachment_plural) %></h3> |
| 49 |
<ul id="changes-legend"> |
| 50 |
<li class="change change-A"><%= l(:label_added) %></li> |
| 51 |
<li class="change change-M"><%= l(:label_modified) %></li> |
| 52 |
<li class="change change-C"><%= l(:label_copied) %></li> |
| 53 |
<li class="change change-R"><%= l(:label_renamed) %></li> |
| 54 |
<li class="change change-D"><%= l(:label_deleted) %></li> |
| 55 |
</ul>
|
| 56 |
|
| 57 |
<p><%= link_to(l(:label_view_diff), |
| 58 |
:action => 'diff',
|
| 59 |
:id => @project,
|
| 60 |
:path => "",
|
| 61 |
:rev => @changeset.identifier) if @changeset.changes.any? %></p> |
| 62 |
|
| 63 |
<div class="changeset-changes"> |
| 64 |
<%= render_changeset_changes %>
|
| 65 |
</div>
|
| 66 |
<% end %>
|
| 67 |
|
| 68 |
<% content_for :header_tags do %>
|
| 69 |
<%= stylesheet_link_tag "scm" %>
|
| 70 |
<% end %>
|
| 71 |
|
| 72 |
<% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%>
|