|
|
|
@ -27,34 +27,29 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
|
|
|
|
|
++#%> |
|
|
|
|
|
|
|
|
|
<% content_for :action_menu_specific do %> |
|
|
|
|
« |
|
|
|
|
<% 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 -%> |
|
|
|
|
» |
|
|
|
|
|
|
|
|
|
<%= styled_form_tag({:controller => '/repositories', :action => 'revision', :project_id => @project}, :method => :get) do %> |
|
|
|
|
<div class="choice"> |
|
|
|
|
<div class="choice--select"> |
|
|
|
|
<%= styled_text_field_tag 'rev', @rev, :size => 8 %> |
|
|
|
|
</div> |
|
|
|
|
<div class="choice--button"> |
|
|
|
|
<%= submit_tag 'OK', :name => nil, class: 'button -highlight' %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
<% content_for :toolbar do %> |
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
<% if @changeset.previous.nil? %> |
|
|
|
|
<button class="button" disabled="disabled"><%= l(:label_previous) %></button> |
|
|
|
|
<% else %> |
|
|
|
|
<%= link_to_revision(@changeset.previous, @project, text: l(:label_previous), class: 'button') %> |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
<% if @changeset.next.nil? %> |
|
|
|
|
<button class="button" disabled="disabled"><%= l(:label_next) %></button> |
|
|
|
|
<% else %> |
|
|
|
|
<%= link_to_revision(@changeset.next, @project, text: l(:label_next), class: 'button') %> |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
<%= form_tag({:controller => '/repositories', :action => 'revision', :project_id => @project}, :method => :get) do %> |
|
|
|
|
<%= text_field_tag :rev, @rev, placeholder: l(:label_revision) %> |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<% end %> |
|
|
|
|
<h2><%= l(:label_revision) %> <%= format_revision(@changeset) %></h2> |
|
|
|
|
<%= render :partial => 'layouts/action_menu_specific' %> |
|
|
|
|
<%= render :partial => 'layouts/toolbar' %> |
|
|
|
|
<p><% if @changeset.scmid %>ID: <%= h(@changeset.scmid) %><br /> |
|
|
|
|
<% end %> |
|
|
|
|
<span class="author"><%= authoring(@changeset.committed_on, @changeset.author) %></span></p> |
|
|
|
|