소스 검색

Display API key in the sidebar, just below the API key heading.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3225 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/0.9.0
Jean-Philippe Lang 14 년 전
부모
커밋
e26eeef837
2개의 변경된 파일5개의 추가작업 그리고 11개의 파일을 삭제
  1. 5
    0
      app/views/my/_sidebar.rhtml
  2. 0
    11
      app/views/my/account.rhtml

+ 5
- 0
app/views/my/_sidebar.rhtml 파일 보기

@@ -17,6 +17,11 @@

<% if Setting.rest_api_enabled? %>
<h4><%= l(:label_api_access_key) %></h4>
<p>
<%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%>
<pre id='api-access-key' class='autoscroll'><%= @user.api_key %></pre>
</p>
<%= javascript_tag("$('api-access-key').hide();") %>
<p>
<% if @user.api_token %>
<%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %>

+ 0
- 11
app/views/my/account.rhtml 파일 보기

@@ -52,17 +52,6 @@
<% end %>
</div>

<% if Setting.rest_api_enabled? && @user.api_token %>
<h3><%=l(:label_api_access_key) %></h3>
<div class="box">
<p>
<%= link_to_function(l(:button_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 %>


Loading…
취소
저장