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 @ 441:cbce1fd3b1b7
History | View | Annotate | Download (2.04 KB)
| 1 | 0:513646585e45 | Chris | <div class="contextual"> |
|---|---|---|---|
| 2 | «
|
||
| 3 | <% unless @changeset.previous.nil? -%>
|
||
| 4 | 119:8661b858af72 | Chris | <%= link_to_revision(@changeset.previous, @project, :text => l(:label_previous)) %>
|
| 5 | 0:513646585e45 | Chris | <% else -%>
|
| 6 | <%= l(:label_previous) %>
|
||
| 7 | <% end -%>
|
||
| 8 | | |
||
| 9 | <% unless @changeset.next.nil? -%>
|
||
| 10 | 119:8661b858af72 | Chris | <%= link_to_revision(@changeset.next, @project, :text => l(:label_next)) %>
|
| 11 | 0:513646585e45 | Chris | <% else -%>
|
| 12 | <%= l(:label_next) %>
|
||
| 13 | <% end -%>
|
||
| 14 | » |
||
| 15 | |||
| 16 | 441:cbce1fd3b1b7 | Chris | <% form_tag({:controller => 'repositories',
|
| 17 | :action => 'revision',
|
||
| 18 | :id => @project,
|
||
| 19 | :rev => nil},
|
||
| 20 | :method => :get) do %>
|
||
| 21 | 119:8661b858af72 | Chris | <%= text_field_tag 'rev', @rev, :size => 8 %>
|
| 22 | 0:513646585e45 | Chris | <%= submit_tag 'OK', :name => nil %>
|
| 23 | <% end %>
|
||
| 24 | </div>
|
||
| 25 | |||
| 26 | 119:8661b858af72 | Chris | <h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2> |
| 27 | 0:513646585e45 | Chris | |
| 28 | <p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %> |
||
| 29 | <span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p> |
||
| 30 | |||
| 31 | <%= textilizable @changeset.comments %>
|
||
| 32 | |||
| 33 | <% if @changeset.issues.visible.any? %>
|
||
| 34 | <h3><%= l(:label_related_issues) %></h3> |
||
| 35 | <ul>
|
||
| 36 | <% @changeset.issues.visible.each do |issue| %>
|
||
| 37 | <li><%= link_to_issue issue %></li> |
||
| 38 | <% end %>
|
||
| 39 | </ul>
|
||
| 40 | <% end %>
|
||
| 41 | |||
| 42 | <% if User.current.allowed_to?(:browse_repository, @project) %>
|
||
| 43 | <h3><%= l(:label_attachment_plural) %></h3> |
||
| 44 | <ul id="changes-legend"> |
||
| 45 | 441:cbce1fd3b1b7 | Chris | <li class="change change-A"><%= l(:label_added) %></li> |
| 46 | 0:513646585e45 | Chris | <li class="change change-M"><%= l(:label_modified) %></li> |
| 47 | 441:cbce1fd3b1b7 | Chris | <li class="change change-C"><%= l(:label_copied) %></li> |
| 48 | <li class="change change-R"><%= l(:label_renamed) %></li> |
||
| 49 | <li class="change change-D"><%= l(:label_deleted) %></li> |
||
| 50 | 0:513646585e45 | Chris | </ul>
|
| 51 | |||
| 52 | 441:cbce1fd3b1b7 | Chris | <p><%= link_to(l(:label_view_diff), |
| 53 | :action => 'diff',
|
||
| 54 | :id => @project,
|
||
| 55 | :path => "",
|
||
| 56 | :rev => @changeset.identifier) if @changeset.changes.any? %></p> |
||
| 57 | 0:513646585e45 | Chris | |
| 58 | <div class="changeset-changes"> |
||
| 59 | <%= render_changeset_changes %>
|
||
| 60 | </div>
|
||
| 61 | <% end %>
|
||
| 62 | |||
| 63 | <% content_for :header_tags do %>
|
||
| 64 | <%= stylesheet_link_tag "scm" %>
|
||
| 65 | <% end %>
|
||
| 66 | |||
| 67 | 119:8661b858af72 | Chris | <% html_title("#{l(:label_revision)} #{format_revision(@changeset)}") -%> |