summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/_link_to_functions.html.erb
blob: edb5e84a5cc6b0b008ed5424e7b25ed3c92ecd48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<% if @entry && @entry.kind == 'file' %>

<p>
<% if @repository.supports_cat? %>
    <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev } %> |
<% end %>
<%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev } %> |
<% if @repository.supports_annotate? %>
    <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev } %> |
<% end %>
<%= 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 %>