26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
<% if @entry && @entry.kind == 'file' %>
|
|
<% if action_name != 'entry' %>
|
|
<%= link_to l(:label_history), {:action => 'changes', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }, :class =>"fr mr5"%>
|
|
<% else %>
|
|
<a class="fr mr5"><%= l(:label_history) %></a>
|
|
<% end %>
|
|
|
|
<% if @repository.supports_cat? %>
|
|
<% if action_name != 'entry' %>
|
|
<%= link_to l(:button_view), {:action => 'entry', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }, :class =>"fr mr5" %>
|
|
<% else %>
|
|
<a class="fr mr5"><%= l(:button_view) %></a>
|
|
<% end %>
|
|
|
|
<% end %>
|
|
<%# 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 => "fr mr5") if @repository.supports_cat? %>
|
|
<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %>
|
|
<% end %>
|