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:
parent
682829a904
commit
d404d2f586
|
@ -15,6 +15,7 @@
|
||||||
(<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>)
|
(<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<% if Setting.rest_api_enabled? %>
|
||||||
<h4><%= l(:label_api_access_key) %></h4>
|
<h4><%= l(:label_api_access_key) %></h4>
|
||||||
<p>
|
<p>
|
||||||
<% if @user.api_token %>
|
<% if @user.api_token %>
|
||||||
|
@ -24,3 +25,4 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
(<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>)
|
(<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>)
|
||||||
</p>
|
</p>
|
||||||
|
<% end %>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if @user.api_token %>
|
<% if Setting.rest_api_enabled? && @user.api_token %>
|
||||||
<h3><%=l(:label_api_access_key) %></h3>
|
<h3><%=l(:label_api_access_key) %></h3>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Reference in New Issue