2007-10-20 16:47:05 +04:00
|
|
|
<h3><%=l(:label_my_account)%></h3>
|
|
|
|
|
|
|
|
<p><%=l(:field_login)%>: <strong><%= @user.login %></strong><br />
|
|
|
|
<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %></p>
|
2009-12-23 09:27:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
<h4><%= l(:label_feeds_access_key) %></h4>
|
|
|
|
|
|
|
|
<p>
|
2007-10-20 16:47:05 +04:00
|
|
|
<% if @user.rss_token %>
|
2009-12-23 09:27:28 +03:00
|
|
|
<%= l(:label_feeds_access_key_created_on, distance_of_time_in_words(Time.now, @user.rss_token.created_on)) %>
|
|
|
|
<% else %>
|
|
|
|
<%= l(:label_missing_feeds_access_key) %>
|
|
|
|
<% end %>
|
|
|
|
(<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>)
|
|
|
|
</p>
|
|
|
|
|
2009-12-23 21:08:39 +03:00
|
|
|
<% if Setting.rest_api_enabled? %>
|
2009-12-23 09:27:28 +03:00
|
|
|
<h4><%= l(:label_api_access_key) %></h4>
|
2010-06-19 20:50:13 +04:00
|
|
|
<div>
|
2009-12-23 21:13:24 +03:00
|
|
|
<%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%>
|
|
|
|
<pre id='api-access-key' class='autoscroll'><%= @user.api_key %></pre>
|
2010-06-19 20:50:13 +04:00
|
|
|
</div>
|
2009-12-23 21:13:24 +03:00
|
|
|
<%= javascript_tag("$('api-access-key').hide();") %>
|
2009-12-23 09:27:28 +03:00
|
|
|
<p>
|
|
|
|
<% if @user.api_token %>
|
|
|
|
<%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %>
|
|
|
|
<% else %>
|
|
|
|
<%= l(:label_missing_api_access_key) %>
|
2007-10-20 16:47:05 +04:00
|
|
|
<% end %>
|
2009-12-23 09:27:28 +03:00
|
|
|
(<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>)
|
|
|
|
</p>
|
2009-12-23 21:08:39 +03:00
|
|
|
<% end %>
|