Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

_link_to_functions.html.erb 890B

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. } if @repository.supports_history?
  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 %>