diff options
Diffstat (limited to 'app/views/my/account.rhtml')
-rw-r--r-- | app/views/my/account.rhtml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/my/account.rhtml b/app/views/my/account.rhtml index 018414ee2..1b8347ccd 100644 --- a/app/views/my/account.rhtml +++ b/app/views/my/account.rhtml @@ -51,6 +51,18 @@ <p><%= pref_fields.select :comments_sorting, [[l(:label_chronological_order), 'asc'], [l(:label_reverse_chronological_order), 'desc']] %></p> <% end %> </div> + +<% if @user.api_token %> +<h3><%=l(:label_api_access_key) %></h3> +<div class="box"> + <p> + <%= link_to_function(l(:text_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 %> |