<%= link_to t("All My Statuses"), user_statuses_path(@status.user) %>
<%= image_tag @status.icon if @status.icon.attached? %> | <%= time_ago_in_words(@status.created_at) %> | <% if current_user == @status.user %>
<%= link_to 'Edit', edit_user_status_path(@status.user, @status) %> |
<%= link_to t("Delete"), user_status_path(@status.user, @status),
data: { confirm: t("Are you sure? All information in this status will be lost.") },
method: :delete %>
<% end %>
<%= raw sanitize_field(@status, :text) %>
<% if @status.mood.present? %>
Mood: <%= @status.mood %>
<% end %>
<% if @status.music.present? %>
Music: <%= @status.music %>
<% end %>
<% end %>
<% unless @fandoms.empty? %>
<%= ts("Fandoms") %>
<% @fandoms.each_with_index do |fandom, i| %>
<% if i>= ArchiveConfig.NUMBER_OF_ITEMS_VISIBLE_IN_DASHBOARD && !params[:expand_fandoms] %>
<% end %>
<% else %>
<% if @user.bookmarks.visible.size > ArchiveConfig.NUMBER_OF_ITEMS_VISIBLE_IN_DASHBOARD %>
<%= bookmarks_link(@user) %>
<% end %>
<% end %>
<% end %>
<% end %>
<% if @works.blank? && @series.blank? && @bookmarks.blank? %>
<% if current_user == @user %>
<%= ts("You don't have anything posted under this name yet. ") %>
<%= ts("Would you like to ")%>
<%= link_to ts("post a new work"), new_work_path %>
<%= ts("or maybe")%>
<%= link_to ts("a new bookmark"), new_external_work_path %>?
<% else %>
<%= ts("There are no works or bookmarks under this name yet.") %>
<% end %>
<% end %>
<%= content_for :footer_js do %>
<%= javascript_tag do %>
$j(document).ready(function() {
$j("#expand-fandoms").removeClass("hidden").click(function(e) {
e.preventDefault();
$j(".more").toggleClass("hidden");
$j("#collapse-fandoms").toggleClass("hidden");
$j(this).toggleClass("hidden");
});
$j("#collapse-fandoms").click(function(e) {
e.preventDefault();
$j(".more").toggleClass("hidden");
$j("#expand-fandoms").toggleClass("hidden");
$j(this).toggleClass("hidden");
});
});
<% end %>
<% end %>