<%= link_to data_vault_path, class: 'grey-text tooltipped', style: 'position: relative; top: 4px;', data: { position: 'bottom', enterDelay: '500', tooltip: "Back to your Data Vault" } do %> arrow_back <% end %> Your discussions activity

<% if current_user.username.present? %> check You have a username set!
@<%= current_user.username %>
<% else %> close You don't have a username.
<%= link_to 'Claim your username!', '#' %> <% end %>
    forum <%= pluralize @topics.count, 'thread' %> created
    forum <%= pluralize @posts.count, 'responses' %> posted to threads
    forum <%= pluralize @private_topics.count, 'private message' %> sent
    forum <%= pluralize @private_posts.count, 'responses' %> in private messages
<% if @topics.any? || @posts.any? %>
Your posts on the forums
<%= area_chart [ { name: 'New threads', data: @topics.where('created_at > ?', DateTime.now - 7.days).group_by_day(:created_at).map { |date, count| [date.split(' ').first, count] } }, { name: 'Responses', data: @posts.where('created_at > ?', DateTime.now - 7.days).group_by_day(:created_at).map { |date, count| [date.split(' ').first, count] } } ], download: true %>
<% end %> <% if @private_topics.any? || @private_posts.any? %>
Your private discussions
<%= area_chart [ { name: 'New threads', data: @private_topics.where('created_at > ?', DateTime.now - 7.days).group_by_day(:created_at).map { |date, count| [date.split(' ').first, count] } }, { name: 'Responses', data: @private_posts.where('created_at > ?', DateTime.now - 7.days).group_by_day(:created_at).map { |date, count| [date.split(' ').first, count] } } ], download: true %>
<% end %> <% if @topics.any? || @posts.any? %>
Activity tracker
    <% @topics.order('id desc').each do |topic| %>
  • forum <%= link_to topic.title, thredded.messageboard_topic_path(messageboard_id: topic.messageboard_id, id: topic.slug) %> started <%= time_ago_in_words topic.created_at %> ago
    <%= pluralize topic.posts_count - 1, 'reply' %>
  • <% end %>
<% end %>