To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / b4 / b4b4309afdcbb28f9f563957d2319d3e733382e5.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.25 KB)
| 1 | 1296:038ba2d95de8 | Chris | <h3><%=l(:label_my_account)%></h3> |
|---|---|---|---|
| 2 | |||
| 3 | <p><%=l(:field_login)%>: <strong><%= link_to_user(@user, :format => :username) %></strong><br /> |
||
| 4 | <%=l(:field_created_on)%>: <%= format_time(@user.created_on) %></p> |
||
| 5 | |||
| 6 | <% if @user.own_account_deletable? %> |
||
| 7 | <p><%= link_to(l(:button_delete_my_account), {:action => 'destroy'}, :class => 'icon icon-del') %></p>
|
||
| 8 | <% end %> |
||
| 9 | |||
| 10 | <h4><%= l(:label_feeds_access_key) %></h4> |
||
| 11 | |||
| 12 | <p> |
||
| 13 | <% if @user.rss_token %> |
||
| 14 | <%= l(:label_feeds_access_key_created_on, distance_of_time_in_words(Time.now, @user.rss_token.created_on)) %> |
||
| 15 | <% else %> |
||
| 16 | <%= l(:label_missing_feeds_access_key) %> |
||
| 17 | <% end %> |
||
| 18 | (<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>)
|
||
| 19 | </p> |
||
| 20 | |||
| 21 | <% if Setting.rest_api_enabled? %> |
||
| 22 | <h4><%= l(:label_api_access_key) %></h4> |
||
| 23 | <div> |
||
| 24 | <%= link_to_function(l(:button_show), "$('#api-access-key').toggle();")%>
|
||
| 25 | <pre id='api-access-key' class='autoscroll'><%= h(@user.api_key) %></pre> |
||
| 26 | </div> |
||
| 27 | <%= javascript_tag("$('#api-access-key').hide();") %>
|
||
| 28 | <p> |
||
| 29 | <% if @user.api_token %> |
||
| 30 | <%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %> |
||
| 31 | <% else %> |
||
| 32 | <%= l(:label_missing_api_access_key) %> |
||
| 33 | <% end %> |
||
| 34 | (<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>)
|
||
| 35 | </p> |
||
| 36 | <% end %> |