2009-09-01 16:13:17 +04:00
|
|
|
<% if @entry && @entry.kind == 'file' %>
|
|
|
|
|
2008-12-22 23:33:01 +03:00
|
|
|
<p>
|
2012-01-15 22:19:19 +04:00
|
|
|
<%= 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 } %> |
|
2008-12-22 23:33:01 +03:00
|
|
|
<% if @repository.supports_cat? %>
|
2012-01-15 22:19:19 +04:00
|
|
|
<%= 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 } %> |
|
2008-12-22 23:33:01 +03:00
|
|
|
<% end %>
|
|
|
|
<% if @repository.supports_annotate? %>
|
2012-01-15 22:19:19 +04:00
|
|
|
<%= 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 } %> |
|
2008-12-22 23:33:01 +03:00
|
|
|
<% end %>
|
2012-01-15 22:19:19 +04:00
|
|
|
<%= link_to(l(:button_download), {:action => 'entry', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %>
|
2008-12-22 23:33:01 +03:00
|
|
|
<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %>
|
|
|
|
</p>
|
2009-09-01 16:13:17 +04:00
|
|
|
|
|
|
|
<% end %>
|