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.html.erb @ 1591:63650ae64bf2
History | View | Annotate | Download (3.2 KB)
| 1 | 0:513646585e45 | Chris | <div class="contextual"> |
|---|---|---|---|
| 2 | 741:496b3cfa2f36 | chris | |
| 3 | <%= link_to_revision_archive(@repository, @changeset, @project, { :text => l(:label_download_revision), :class => 'icon icon-package' }) %>
|
||
| 4 | |
||
| 5 | |||
| 6 | 0:513646585e45 | Chris | «
|
| 7 | <% unless @changeset.previous.nil? -%>
|
||
| 8 | 1115:433d4f72a19b | Chris | <%= link_to_revision(@changeset.previous, @repository, :text => l(:label_previous)) %>
|
| 9 | 0:513646585e45 | Chris | <% else -%>
|
| 10 | <%= l(:label_previous) %>
|
||
| 11 | <% end -%>
|
||
| 12 | 741:496b3cfa2f36 | chris | |
| 13 | 0:513646585e45 | Chris | <% unless @changeset.next.nil? -%>
|
| 14 | 1115:433d4f72a19b | Chris | <%= link_to_revision(@changeset.next, @repository, :text => l(:label_next)) %>
|
| 15 | 0:513646585e45 | Chris | <% else -%>
|
| 16 | <%= l(:label_next) %>
|
||
| 17 | <% end -%>
|
||
| 18 | » |
||
| 19 | |||
| 20 | 1115:433d4f72a19b | Chris | <%= form_tag({:controller => 'repositories',
|
| 21 | 441:cbce1fd3b1b7 | Chris | :action => 'revision',
|
| 22 | :id => @project,
|
||
| 23 | 1115:433d4f72a19b | Chris | :repository_id => @repository.identifier_param,
|
| 24 | 441:cbce1fd3b1b7 | Chris | :rev => nil},
|
| 25 | :method => :get) do %>
|
||
| 26 | 117:af80e5618e9b | Chris | <%= text_field_tag 'rev', @rev, :size => 8 %>
|
| 27 | 0:513646585e45 | Chris | <%= submit_tag 'OK', :name => nil %>
|
| 28 | <% end %>
|
||
| 29 | 741:496b3cfa2f36 | chris | |
| 30 | 0:513646585e45 | Chris | </div>
|
| 31 | |||
| 32 | 1115:433d4f72a19b | Chris | <h2><%= avatar(@changeset.user, :size => "24") %><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2> |
| 33 | 0:513646585e45 | Chris | |
| 34 | 1115:433d4f72a19b | Chris | <% if @changeset.scmid.present? || @changeset.parents.present? || @changeset.children.present? %>
|
| 35 | 909:cbb26bc654de | Chris | <table class="revision-info"> |
| 36 | 1115:433d4f72a19b | Chris | <% if @changeset.scmid.present? %>
|
| 37 | 909:cbb26bc654de | Chris | <tr>
|
| 38 | <td>ID</td><td><%= h(@changeset.scmid) %></td> |
||
| 39 | </tr>
|
||
| 40 | <% end %>
|
||
| 41 | 1115:433d4f72a19b | Chris | <% if @changeset.parents.present? %>
|
| 42 | 909:cbb26bc654de | Chris | <tr>
|
| 43 | <td><%= l(:label_parent_revision) %></td> |
||
| 44 | <td>
|
||
| 45 | <%= @changeset.parents.collect{
|
||
| 46 | 1115:433d4f72a19b | Chris | |p| link_to_revision(p, @repository, :text => format_revision(p))
|
| 47 | }.join(", ").html_safe %>
|
||
| 48 | 909:cbb26bc654de | Chris | </td>
|
| 49 | </tr>
|
||
| 50 | <% end %>
|
||
| 51 | 1115:433d4f72a19b | Chris | <% if @changeset.children.present? %>
|
| 52 | 909:cbb26bc654de | Chris | <tr>
|
| 53 | <td><%= l(:label_child_revision) %></td> |
||
| 54 | <td>
|
||
| 55 | <%= @changeset.children.collect{
|
||
| 56 | 1115:433d4f72a19b | Chris | |p| link_to_revision(p, @repository, :text => format_revision(p))
|
| 57 | }.join(", ").html_safe %>
|
||
| 58 | 909:cbb26bc654de | Chris | </td>
|
| 59 | </tr>
|
||
| 60 | <% end %>
|
||
| 61 | </table>
|
||
| 62 | 1115:433d4f72a19b | Chris | <% end %>
|
| 63 | |||
| 64 | 909:cbb26bc654de | Chris | <p>
|
| 65 | <span class="author"> |
||
| 66 | <%= authoring(@changeset.committed_on, @changeset.author) %>
|
||
| 67 | </span>
|
||
| 68 | </p>
|
||
| 69 | 0:513646585e45 | Chris | |
| 70 | <%= textilizable @changeset.comments %>
|
||
| 71 | |||
| 72 | 1115:433d4f72a19b | Chris | <% if @changeset.issues.visible.any? || User.current.allowed_to?(:manage_related_issues, @repository.project) %>
|
| 73 | <%= render :partial => 'related_issues' %>
|
||
| 74 | 0:513646585e45 | Chris | <% end %>
|
| 75 | |||
| 76 | <% if User.current.allowed_to?(:browse_repository, @project) %>
|
||
| 77 | <h3><%= l(:label_attachment_plural) %></h3> |
||
| 78 | <ul id="changes-legend"> |
||
| 79 | 441:cbce1fd3b1b7 | Chris | <li class="change change-A"><%= l(:label_added) %></li> |
| 80 | 0:513646585e45 | Chris | <li class="change change-M"><%= l(:label_modified) %></li> |
| 81 | 441:cbce1fd3b1b7 | Chris | <li class="change change-C"><%= l(:label_copied) %></li> |
| 82 | <li class="change change-R"><%= l(:label_renamed) %></li> |
||
| 83 | <li class="change change-D"><%= l(:label_deleted) %></li> |
||
| 84 | 0:513646585e45 | Chris | </ul>
|
| 85 | |||
| 86 | 441:cbce1fd3b1b7 | Chris | <p><%= link_to(l(:label_view_diff), |
| 87 | :action => 'diff',
|
||
| 88 | :id => @project,
|
||
| 89 | 1115:433d4f72a19b | Chris | :repository_id => @repository.identifier_param,
|
| 90 | 441:cbce1fd3b1b7 | Chris | :path => "",
|
| 91 | 1115:433d4f72a19b | Chris | :rev => @changeset.identifier) if @changeset.filechanges.any? %></p> |
| 92 | 0:513646585e45 | Chris | |
| 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 | 1464:261b3d9a4903 | Chris | <%
|
| 103 | title = "#{l(:label_revision)} #{format_revision(@changeset)}"
|
||
| 104 | 1517:dffacf8a6908 | Chris | title << " - #{@changeset.comments.truncate(80)}"
|
| 105 | 1464:261b3d9a4903 | Chris | html_title(title)
|
| 106 | -%> |