Chris@0:

<%=l(:label_my_account)%>

Chris@0: Chris@441:

<%=l(:field_login)%>: <%= link_to_user(@user, :format => :username) %>
Chris@0: <%=l(:field_created_on)%>: <%= format_time(@user.created_on) %>

Chris@0: Chris@0: Chris@0:

<%= l(:label_feeds_access_key) %>

Chris@0: Chris@0:

Chris@0: <% if @user.rss_token %> Chris@0: <%= l(:label_feeds_access_key_created_on, distance_of_time_in_words(Time.now, @user.rss_token.created_on)) %> Chris@0: <% else %> Chris@0: <%= l(:label_missing_feeds_access_key) %> Chris@0: <% end %> Chris@0: (<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>) Chris@0:

Chris@0: Chris@0: <% if Setting.rest_api_enabled? %> Chris@0:

<%= l(:label_api_access_key) %>

Chris@0:
Chris@0: <%= link_to_function(l(:button_show), "$('api-access-key').toggle();")%> Chris@441:
<%= h(@user.api_key) %>
Chris@0:
Chris@0: <%= javascript_tag("$('api-access-key').hide();") %> Chris@0:

Chris@0: <% if @user.api_token %> Chris@0: <%= l(:label_api_access_key_created_on, distance_of_time_in_words(Time.now, @user.api_token.created_on)) %> Chris@0: <% else %> Chris@0: <%= l(:label_missing_api_access_key) %> Chris@0: <% end %> Chris@0: (<%= link_to l(:button_reset), {:action => 'reset_api_key'}, :method => :post %>) Chris@0:

Chris@0: <% end %>