From e26eeef837f15de2d8f139ca838980eaa9de4da0 Mon Sep 17 00:00:00 2001
From: Jean-Philippe Lang
+ <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%>
+ <%= l(:label_api_access_key) %>
+<%= @user.api_key %>
+
<% if @user.api_token %> <%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %> 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 %> -<% if Setting.rest_api_enabled? && @user.api_token %> -
- <%= link_to_function(l(:button_show), "$('api-access-key').show();")%> -
<%= @user.api_key %>- - <%= javascript_tag("$('api-access-key').hide();") %> -