summaryrefslogtreecommitdiffstats
path: root/app/views/projects/list_issues.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-02 09:58:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-02 09:58:07 +0000
commit470ef4d11ee7465c7cc2ca19fd4535fec061395b (patch)
tree43822af536dd7ce6b3e441395ba4a92d9f1b2522 /app/views/projects/list_issues.rhtml
parent57d4e698fe59773b692b9e2f86cea6c9790ad191 (diff)
downloadredmine-470ef4d11ee7465c7cc2ca19fd4535fec061395b.tar.gz
redmine-470ef4d11ee7465c7cc2ca19fd4535fec061395b.zip
* replaced "add_issue" links on projects/show by a drop down list
* added this shortcut on list_issues git-svn-id: http://redmine.rubyforge.org/svn/trunk@136 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/list_issues.rhtml')
-rw-r--r--app/views/projects/list_issues.rhtml12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/views/projects/list_issues.rhtml b/app/views/projects/list_issues.rhtml
index a8b1db7bc..7ccc59611 100644
--- a/app/views/projects/list_issues.rhtml
+++ b/app/views/projects/list_issues.rhtml
@@ -1,4 +1,7 @@
<% if @query.new_record? %>
+ <div class="contextual">
+ <%= render :partial => 'issues/add_shortcut', :locals => {:trackers => @trackers } %>
+ </div>
<h2><%=l(:label_issue_plural)%></h2>
<%= start_form_tag({:action => 'list_issues'}, :id => 'query_form') %>
@@ -24,12 +27,13 @@
</div>
<br />
<% else %>
- <% if authorize_for('projects', 'add_query') %>
<div class="contextual">
- <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => @query}, :class => 'pic picEdit' %>
- <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %>
+ <%= render :partial => 'issues/add_shortcut', :locals => {:trackers => @trackers } %>
+ <% if authorize_for('projects', 'add_query') %>
+ <%= link_to l(:button_edit), {:controller => 'queries', :action => 'edit', :id => @query}, :class => 'pic picEdit' %>
+ <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %>
+ <% end %>
</div>
- <% end %>
<h2><%= @query.name %></h2>
<% end %>
<%= error_messages_for 'query' %>