mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-12 04:03:08 +00:00
queries crud links displayed according permissions
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@92 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
aeb053cc95
commit
7b0dca2d6d
@ -20,7 +20,7 @@
|
||||
:with => "Form.serialize('query_form')" %>
|
||||
|
|
||||
<%= link_to l(:button_clear), :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 %>
|
||||
<% if loggedin? %>
|
||||
<% if authorize_for('projects', 'add_query') %>
|
||||
|
|
||||
<%= link_to_remote l(:button_save),
|
||||
:url => { :controller => 'projects', :action => "add_query", :id => @project },
|
||||
@ -32,11 +32,12 @@
|
||||
</tr>
|
||||
</table>
|
||||
<% else %>
|
||||
<% if authorize_for('projects', 'add_query') %>
|
||||
<div style="float:right;">
|
||||
<%= link_to l(:button_edit), :controller => 'queries', :action => 'edit', :id => @query %>
|
||||
<%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :post => true %>
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
<h2><%= @query.name %></h2>
|
||||
<% end %>
|
||||
<%= error_messages_for 'query' %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user