mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-10 03:03:05 +00:00
Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16649 e93f8b46-1217-0410-a6f0-8f06a7374b81
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
<% if @entry && @entry.kind == 'file' %>
|
|
|
|
<%
|
|
tabs = []
|
|
tabs << { name: 'entry', label: :button_view,
|
|
url: {:action => 'entry', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }
|
|
} if @repository.supports_cat?
|
|
|
|
tabs << { name: 'changes', label: :label_history,
|
|
url: {:action => 'changes', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }
|
|
}
|
|
tabs << { name: 'annotate', label: :button_annotate,
|
|
url: {:action => 'annotate', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }
|
|
} if @repository.supports_annotate?
|
|
%>
|
|
|
|
<%= render :partial => 'common/tabs', :locals => {:tabs => tabs, :selected_tab => action_name} %>
|
|
|
|
<p>
|
|
<%= link_to(l(:button_download),
|
|
{:action => 'raw', :id => @project,
|
|
:repository_id => @repository.identifier_param,
|
|
:path => to_path_param(@path),
|
|
:rev => @rev}, class: 'icon icon-download') if @repository.supports_cat? %>
|
|
<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %>
|
|
</p>
|
|
|
|
<% end %>
|