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.html.erb 857B

12345678910111213141516171819
  1. <% if @entry && @entry.kind == 'file' %>
  2. <%
  3. tabs = []
  4. tabs << { name: 'entry', label: :button_view,
  5. url: {:action => 'entry', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }
  6. } if @repository.supports_cat?
  7. tabs << { name: 'changes', label: :label_history,
  8. url: {:action => 'changes', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }
  9. }
  10. tabs << { name: 'annotate', label: :button_annotate,
  11. url: {:action => 'annotate', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(@path), :rev => @rev }
  12. } if @repository.supports_annotate?
  13. %>
  14. <%= render :partial => 'common/tabs', :locals => {:tabs => tabs, :selected_tab => action_name} %>
  15. <% end %>