To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / my / _sidebar.html.erb @ 1531:ae8145b28b2b

History | View | Annotate | Download (1.25 KB)

1
<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 %>