2026-03-17 05:16:49 +00:00
|
|
|
<div class="timeline">
|
|
|
|
|
<h1>Recent Statuses</h1>
|
2026-03-19 11:07:01 +00:00
|
|
|
Showing the 20 most recent statuses.<hr>
|
2026-03-17 05:16:49 +00:00
|
|
|
<% @statuses.each do |status| %> <p>
|
|
|
|
|
<%= link_to "##{status.user.login}", user_path(status.user) %> said...
|
|
|
|
|
<br>
|
|
|
|
|
<% if status.icon.attached? %>
|
|
|
|
|
<%= image_tag status.icon.variant(resize_to_limit: [100, 100]), class: "iconimg" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<%= 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 %>
|
|
|
|
|
<p><%= raw sanitize_field(status, :text) %></p>
|
|
|
|
|
<% if status.mood.present? %>
|
|
|
|
|
<p>Mood: <%= status.mood %></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% if status.music.present? %>
|
|
|
|
|
<p>Music: <%= status.music %></p>
|
|
|
|
|
<hr><% end %>
|
|
|
|
|
<hr>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|