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:
1 parent
aeb053cc95
commit
7b0dca2d6d
1 file changed
+3
-2
@@ -20,7 +20,7 @@
|
|||||||
:with => "Form.serialize('query_form')" %>
|
:with => "Form.serialize('query_form')" %>
|
||||||
|
|
|
|
||||||
<%= link_to l(:button_clear), :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 %>
|
<%= 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),
|
<%= link_to_remote l(:button_save),
|
||||||
:url => { :controller => 'projects', :action => "add_query", :id => @project },
|
:url => { :controller => 'projects', :action => "add_query", :id => @project },
|
||||||
@@ -32,11 +32,12 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
<% if authorize_for('projects', 'add_query') %>
|
||||||
<div style="float:right;">
|
<div style="float:right;">
|
||||||
<%= link_to l(:button_edit), :controller => 'queries', :action => 'edit', :id => @query %>
|
<%= 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 %>
|
<%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :post => true %>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
<h2><%= @query.name %></h2>
|
<h2><%= @query.name %></h2>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= error_messages_for 'query' %>
|
<%= error_messages_for 'query' %>
|
||||||
|
|||||||
Reference in new issue
Block a user