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 @ 915:2a68662d5adf

History | View | Annotate | Download (1.1 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

    
7
<h4><%= l(:label_feeds_access_key) %></h4>
8

    
9
<p>
10
<% if @user.rss_token %>
11
<%= l(:label_feeds_access_key_created_on, distance_of_time_in_words(Time.now, @user.rss_token.created_on)) %>
12
<% else %>
13
<%= l(:label_missing_feeds_access_key) %>
14
<% end %>
15
(<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>)
16
</p>
17

    
18
<% if Setting.rest_api_enabled? %>
19
<h4><%= l(:label_api_access_key) %></h4>
20
<div>
21
  <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%>
22
  <pre id='api-access-key' class='autoscroll'><%= h(@user.api_key) %></pre>
23
</div>
24
<%= javascript_tag("$('api-access-key').hide();") %>
25
<p>
26
<% if @user.api_token %>
27
<%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %>
28
<% else %>
29
<%= l(:label_missing_api_access_key) %>
30
<% end %>
31
(<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>)
32
</p>
33
<% end %>