annotate .svn/pristine/36/36167ee499dcc4b045fdbe86a18299795ead7b8c.svn-base @ 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 |
cbb26bc654de |
children |
|
rev |
line source |
Chris@909
|
1 <h3><%=l(:label_my_account)%></h3>
|
Chris@909
|
2
|
Chris@909
|
3 <p><%=l(:field_login)%>: <strong><%= link_to_user(@user, :format => :username) %></strong><br />
|
Chris@909
|
4 <%=l(:field_created_on)%>: <%= format_time(@user.created_on) %></p>
|
Chris@909
|
5
|
Chris@909
|
6
|
Chris@909
|
7 <h4><%= l(:label_feeds_access_key) %></h4>
|
Chris@909
|
8
|
Chris@909
|
9 <p>
|
Chris@909
|
10 <% if @user.rss_token %>
|
Chris@909
|
11 <%= l(:label_feeds_access_key_created_on, distance_of_time_in_words(Time.now, @user.rss_token.created_on)) %>
|
Chris@909
|
12 <% else %>
|
Chris@909
|
13 <%= l(:label_missing_feeds_access_key) %>
|
Chris@909
|
14 <% end %>
|
Chris@909
|
15 (<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>)
|
Chris@909
|
16 </p>
|
Chris@909
|
17
|
Chris@909
|
18 <% if Setting.rest_api_enabled? %>
|
Chris@909
|
19 <h4><%= l(:label_api_access_key) %></h4>
|
Chris@909
|
20 <div>
|
Chris@909
|
21 <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%>
|
Chris@909
|
22 <pre id='api-access-key' class='autoscroll'><%= h(@user.api_key) %></pre>
|
Chris@909
|
23 </div>
|
Chris@909
|
24 <%= javascript_tag("$('api-access-key').hide();") %>
|
Chris@909
|
25 <p>
|
Chris@909
|
26 <% if @user.api_token %>
|
Chris@909
|
27 <%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %>
|
Chris@909
|
28 <% else %>
|
Chris@909
|
29 <%= l(:label_missing_api_access_key) %>
|
Chris@909
|
30 <% end %>
|
Chris@909
|
31 (<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>)
|
Chris@909
|
32 </p>
|
Chris@909
|
33 <% end %>
|