To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / queries / index.html.erb @ 1591:63650ae64bf2
History | View | Annotate | Download (821 Bytes)
| 1 |
<div class="contextual"> |
|---|---|
| 2 |
<%= link_to_if_authorized l(:label_query_new), new_project_query_path(:project_id => @project), :class => 'icon icon-add' %>
|
| 3 |
</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 class="name"> |
| 14 |
<%= link_to h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
|
| 15 |
</td>
|
| 16 |
<td class="buttons"> |
| 17 |
<% if query.editable_by?(User.current) %>
|
| 18 |
<%= link_to l(:button_edit), edit_query_path(query), :class => 'icon icon-edit' %>
|
| 19 |
<%= delete_link query_path(query) %>
|
| 20 |
<% end %>
|
| 21 |
</td>
|
| 22 |
</tr>
|
| 23 |
<% end %>
|
| 24 |
</table>
|
| 25 |
<% end %>
|