To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / queries / index.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (936 Bytes)

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