_link_to_functions.html.erb
19 lines
| 1.0 KiB
| text/plain
|
TextLexer
|
r2744 | <% if @entry && @entry.kind == 'file' %> | ||
|
r2165 | <p> | ||
|
r8530 | <%= 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 } %> | | ||
|
r2165 | <% if @repository.supports_cat? %> | ||
|
r8530 | <%= 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 } %> | | ||
|
r2165 | <% end %> | ||
<% if @repository.supports_annotate? %> | ||||
|
r8530 | <%= 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 } %> | | ||
|
r2165 | <% end %> | ||
|
r9442 | <%= link_to(l(:button_download), | ||
{:action => 'raw', :id => @project, | ||||
:repository_id => @repository.identifier_param, | ||||
:path => to_path_param(@path), | ||||
:rev => @rev}) if @repository.supports_cat? %> | ||||
|
r2165 | <%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> | ||
</p> | ||||
|
r2744 | |||
<% end %> | ||||