diff options
-rw-r--r-- | app/views/my/_sidebar.rhtml | 5 | ||||
-rw-r--r-- | app/views/my/account.rhtml | 11 |
2 files changed, 5 insertions, 11 deletions
diff --git a/app/views/my/_sidebar.rhtml b/app/views/my/_sidebar.rhtml index ee3c8abdc..0a95acfea 100644 --- a/app/views/my/_sidebar.rhtml +++ b/app/views/my/_sidebar.rhtml @@ -18,6 +18,11 @@ <% if Setting.rest_api_enabled? %> <h4><%= l(:label_api_access_key) %></h4> <p> + <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%> + <pre id='api-access-key' class='autoscroll'><%= @user.api_key %></pre> +</p> +<%= javascript_tag("$('api-access-key').hide();") %> +<p> <% if @user.api_token %> <%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %> <% else %> diff --git a/app/views/my/account.rhtml b/app/views/my/account.rhtml index a3136f4cd..9bf45b33e 100644 --- a/app/views/my/account.rhtml +++ b/app/views/my/account.rhtml @@ -52,17 +52,6 @@ <% end %> </div> -<% if Setting.rest_api_enabled? && @user.api_token %> -<h3><%=l(:label_api_access_key) %></h3> -<div class="box"> - <p> - <%= link_to_function(l(:button_show), "$('api-access-key').show();")%> - <pre id='api-access-key'><%= @user.api_key %></pre> - </p> - <%= javascript_tag("$('api-access-key').hide();") %> -</div> -<% end %> - </div> <% end %> |