diff --git a/statuses/timeline.html.erb b/statuses/timeline.html.erb new file mode 100644 index 0000000..980081b --- /dev/null +++ b/statuses/timeline.html.erb @@ -0,0 +1,29 @@ +
+ <%= link_to "##{status.user.login}", user_path(status.user) %> said...
+
+ <% if status.icon.attached? %>
+ <%= image_tag status.icon %>
+ <% 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 %>
+
<%= raw sanitize_field(status, :text) %>
+ <% if status.mood.present? %> +Mood: <%= status.mood %>
+ <% end %> + + <% if status.music.present? %> +Music: <%= status.music %>
+