From: Jean-Philippe Lang Date: Sat, 28 Jul 2012 15:14:56 +0000 (+0000) Subject: Fixed API key display on my account. X-Git-Tag: 2.1.0~232 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=42fdc1d54d89f6ffb2fdcc0ad3b75dd541013110;p=redmine.git Fixed API key display on my account. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10091 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/my/_sidebar.html.erb b/app/views/my/_sidebar.html.erb index c89e6f3b4..4c9270fc7 100644 --- a/app/views/my/_sidebar.html.erb +++ b/app/views/my/_sidebar.html.erb @@ -21,10 +21,10 @@ <% if Setting.rest_api_enabled? %>

<%= l(:label_api_access_key) %>

- <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%> + <%= link_to_function(l(:button_show), "$('#api-access-key').toggle();")%>
<%= h(@user.api_key) %>
-<%= javascript_tag("$('api-access-key').hide();") %> +<%= javascript_tag("$('#api-access-key').hide();") %>

<% if @user.api_token %> <%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %>