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.

index.rhtml 1.0KB

123456789101112131415161718192021222324252627
  1. <div class="contextual">
  2. <%= link_to_if_authorized l(:label_query_new), {:controller => 'queries', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>
  3. </div>
  4. <h2><%= l(:label_query_plural) %></h2>
  5. <% if @queries.empty? %>
  6. <p><i><%=l(:label_no_data)%></i></p>
  7. <% else %>
  8. <table class="list">
  9. <% @queries.each do |query| %>
  10. <tr class="<%= cycle('odd', 'even') %>">
  11. <td>
  12. <%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
  13. </td>
  14. <td align="right">
  15. <small>
  16. <% if query.editable_by?(User.current) %>
  17. <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => query}, :class => 'icon icon-edit' %>
  18. <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
  19. </small>
  20. <% end %>
  21. </td>
  22. </tr>
  23. <% end %>
  24. </table>
  25. <% end %>