You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_link_to_functions.rhtml 847B

123456789101112131415
  1. <% if @entry && @entry.kind == 'file' %>
  2. <p>
  3. <%= link_to_if action_name != 'changes', l(:label_history), {:action => 'changes', :id => @project, :path => to_path_param(@path), :rev => @rev } %> |
  4. <% if @repository.supports_cat? %>
  5. <%= link_to_if action_name != 'entry', l(:button_view), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev } %> |
  6. <% end %>
  7. <% if @repository.supports_annotate? %>
  8. <%= link_to_if action_name != 'annotate', l(:button_annotate), {:action => 'annotate', :id => @project, :path => to_path_param(@path), :rev => @rev } %> |
  9. <% end %>
  10. <%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => to_path_param(@path), :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %>
  11. <%= "(#{number_to_human_size(@entry.size)})" if @entry.size %>
  12. </p>
  13. <% end %>