2007-06-23 17:49:29 +04:00
|
|
|
<div class="contextual">
|
2011-10-25 00:19:26 +04:00
|
|
|
<%= link_to_if_authorized l(:label_query_new), new_project_query_path(:project_id => @project), :class => 'icon icon-add' %>
|
2007-06-23 17:49:29 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2><%= l(:label_query_plural) %></h2>
|
|
|
|
|
|
|
|
<% if @queries.empty? %>
|
|
|
|
<p><i><%=l(:label_no_data)%></i></p>
|
|
|
|
<% else %>
|
|
|
|
<table class="list">
|
|
|
|
<% @queries.each do |query| %>
|
|
|
|
<tr class="<%= cycle('odd', 'even') %>">
|
2013-11-12 01:01:21 +04:00
|
|
|
<td class="name">
|
2011-08-02 17:11:38 +04:00
|
|
|
<%= link_to h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
|
2007-06-23 17:49:29 +04:00
|
|
|
</td>
|
2013-11-12 01:01:21 +04:00
|
|
|
<td class="buttons">
|
2011-09-17 06:51:40 +04:00
|
|
|
<% if query.editable_by?(User.current) %>
|
2011-10-25 00:19:26 +04:00
|
|
|
<%= link_to l(:button_edit), edit_query_path(query), :class => 'icon icon-edit' %>
|
2012-07-07 18:36:49 +04:00
|
|
|
<%= delete_link query_path(query) %>
|
2007-06-23 17:49:29 +04:00
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
<% end %>
|