From 42fdc1d54d89f6ffb2fdcc0ad3b75dd541013110 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 28 Jul 2012 15:14:56 +0000 Subject: [PATCH] Fixed API key display on my account. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10091 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/my/_sidebar.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) %>