Mercurial > hg > soundsoftware-site
annotate .svn/pristine/36/36167ee499dcc4b045fdbe86a18299795ead7b8c.svn-base @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +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 %> |