annotate app/views/my/_sidebar.html.erb @ 1524:82fac3dcf466
redmine-2.5-integration
Fix failure to interpret Javascript when autocompleting members for project
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Thu, 11 Sep 2014 10:24:38 +0100 |
parents |
433d4f72a19b |
children |
|
rev |
line source |
Chris@0
|
1 <h3><%=l(:label_my_account)%></h3>
|
Chris@0
|
2
|
Chris@441
|
3 <p><%=l(:field_login)%>: <strong><%= link_to_user(@user, :format => :username) %></strong><br />
|
Chris@0
|
4 <%=l(:field_created_on)%>: <%= format_time(@user.created_on) %></p>
|
Chris@0
|
5
|
Chris@1115
|
6 <% if @user.own_account_deletable? %>
|
Chris@1115
|
7 <p><%= link_to(l(:button_delete_my_account), {:action => 'destroy'}, :class => 'icon icon-del') %></p>
|
Chris@1115
|
8 <% end %>
|
Chris@0
|
9
|
Chris@0
|
10 <h4><%= l(:label_feeds_access_key) %></h4>
|
Chris@0
|
11
|
Chris@0
|
12 <p>
|
Chris@0
|
13 <% if @user.rss_token %>
|
Chris@0
|
14 <%= l(:label_feeds_access_key_created_on, distance_of_time_in_words(Time.now, @user.rss_token.created_on)) %>
|
Chris@0
|
15 <% else %>
|
Chris@0
|
16 <%= l(:label_missing_feeds_access_key) %>
|
Chris@0
|
17 <% end %>
|
Chris@0
|
18 (<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>)
|
Chris@0
|
19 </p>
|
Chris@0
|
20
|
Chris@0
|
21 <% if Setting.rest_api_enabled? %>
|
Chris@0
|
22 <h4><%= l(:label_api_access_key) %></h4>
|
Chris@0
|
23 <div>
|
Chris@1115
|
24 <%= link_to_function(l(:button_show), "$('#api-access-key').toggle();")%>
|
Chris@441
|
25 <pre id='api-access-key' class='autoscroll'><%= h(@user.api_key) %></pre>
|
Chris@0
|
26 </div>
|
Chris@1115
|
27 <%= javascript_tag("$('#api-access-key').hide();") %>
|
Chris@0
|
28 <p>
|
Chris@0
|
29 <% if @user.api_token %>
|
Chris@0
|
30 <%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %>
|
Chris@0
|
31 <% else %>
|
Chris@0
|
32 <%= l(:label_missing_api_access_key) %>
|
Chris@0
|
33 <% end %>
|
Chris@0
|
34 (<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>)
|
Chris@0
|
35 </p>
|
Chris@0
|
36 <% end %>
|