Do not display API key if API is disabled.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3224 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-12-23 18:08:39 +00:00
parent 682829a904
commit d404d2f586
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@
(<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>)
</p>
<% if Setting.rest_api_enabled? %>
<h4><%= l(:label_api_access_key) %></h4>
<p>
<% if @user.api_token %>
@ -24,3 +25,4 @@
<% end %>
(<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>)
</p>
<% end %>

View File

@ -52,7 +52,7 @@
<% end %>
</div>
<% if @user.api_token %>
<% if Setting.rest_api_enabled? && @user.api_token %>
<h3><%=l(:label_api_access_key) %></h3>
<div class="box">
<p>