Skip to content

Commit

Permalink
Hide quick links when in banner plugin settings page.
Browse files Browse the repository at this point in the history
  • Loading branch information
akiko-pusu committed Feb 18, 2012
1 parent 33b0397 commit 08c439a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/views/banner/_body_bottom.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
<div class="banner banner_<%= Setting.plugin_redmine_banner['type'] %>" id="banner_content">
<%= textilizable Setting.plugin_redmine_banner['banner_description'] %>
</div>
<% if User.current.admin? %>
<%
if User.current.admin? && (params[:controller] != 'settings' && params[:action] != 'settings' && params[:id] != 'redmine_banner')
%>
<div id="banner_edit">
<%= link_to l(:button_edit),
{:controller => 'settings', :action => 'plugin', :id => 'redmine_banner'},
{:class => 'icon banner-icon-edit', :title => l(:button_edit)} %>
{:controller => 'settings', :action => 'plugin', :id => 'redmine_banner'},
{:class => 'icon banner-icon-edit', :title => l(:button_edit)} %>
<%= link_to_remote l(:button_off),
:url => {:controller => 'banner', :action => 'off', :moderate => 'yes',
:url => {:controller => 'banner', :action => 'off', :moderate => 'yes',
:id => nil}, :update => "banner_area",
:confirm => l(:text_are_you_sure),
:html => {:class => 'icon banner-icon-off', :title => l(:banner_off)} %>
Expand Down

0 comments on commit 08c439a

Please sign in to comment.