% content_for :meta_title, 'My Profile History' %>
<% content_for :meta_description, "List of a user's historical activities on the site." %>
<%= render 'tab_menu' %>
<% if @profile.other_name.present? %>
<%= @profile.other_name %>
<%= @profile.name %>
<% else %>
<%= @profile.name %>
<% end %>
When? |
What happened? |
<% if @activities.any? %>
<% @activities.each do |activity| %>
<%= human_date_and_time(activity.created_at) %> |
<%= "You #{activity.message}".html_safe %> |
<% end %>
<% else # no activities %>
You don't have any activities yet. |
<% end %>
<%= render 'admin_context_menu' %>
<%# partial in tkh_menus gem or has to be added in host app %>
<%= render './shared/menus' %>