@@ -18,6 +18,11 | |||
|
18 | 18 | <% if Setting.rest_api_enabled? %> |
|
19 | 19 | <h4><%= l(:label_api_access_key) %></h4> |
|
20 | 20 | <p> |
|
21 | <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%> | |
|
22 | <pre id='api-access-key' class='autoscroll'><%= @user.api_key %></pre> | |
|
23 | </p> | |
|
24 | <%= javascript_tag("$('api-access-key').hide();") %> | |
|
25 | <p> | |
|
21 | 26 | <% if @user.api_token %> |
|
22 | 27 | <%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %> |
|
23 | 28 | <% else %> |
@@ -52,17 +52,6 | |||
|
52 | 52 | <% end %> |
|
53 | 53 | </div> |
|
54 | 54 | |
|
55 | <% if Setting.rest_api_enabled? && @user.api_token %> | |
|
56 | <h3><%=l(:label_api_access_key) %></h3> | |
|
57 | <div class="box"> | |
|
58 | <p> | |
|
59 | <%= link_to_function(l(:button_show), "$('api-access-key').show();")%> | |
|
60 | <pre id='api-access-key'><%= @user.api_key %></pre> | |
|
61 | </p> | |
|
62 | <%= javascript_tag("$('api-access-key').hide();") %> | |
|
63 | </div> | |
|
64 | <% end %> | |
|
65 | ||
|
66 | 55 | </div> |
|
67 | 56 | <% end %> |
|
68 | 57 |
General Comments 0
You need to be logged in to leave comments.
Login now