diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index a43612a0..7d310c2e 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -15,9 +15,6 @@ content_jsonld = { <%= content_jsonld.to_json.html_safe %> %> - - -

<%= @user.name %>

@@ -44,7 +41,8 @@ content_jsonld = { <% end %> <% if @user.username.present? %>
- <%= link_to 'Forums', thredded_path %> name: @<%= @user.username %> + <%= link_to 'Forums', thredded_path %> name:
+ @<%= @user.username %>
<% end %>
@@ -74,33 +72,35 @@ content_jsonld = {
-
-
-
Recent activity
-
- <% @stream.each do |change_event| %> - <% content = change_event.content_type.constantize.find_by(id: change_event.content_id) %> - <% next if content.nil? %> - <% next unless content.readable_by?(user_signed_in? ? current_user : User.new) %> +<% if @stream.any? %> +
+
+
Recent activity
+
+ <% @stream.each do |change_event| %> + <% content = change_event.content_type.constantize.find_by(id: change_event.content_id) %> + <% next if content.nil? %> + <% next unless content.readable_by?(user_signed_in? ? current_user : User.new) %> -
-
- <%= change_event.content_type.constantize.icon %> -
+
+
+ <%= change_event.content_type.constantize.icon %> +
-
-
- <%= change_event.action.titleize %> <%= link_to content.name, content %> -
-
- <%= content.description %> -
- - <%= time_ago_in_words change_event.created_at %> ago - +
+
+ <%= change_event.action.titleize %> <%= link_to content.name, content %> +
+
+ <%= content.description %> +
+ + <%= time_ago_in_words change_event.created_at %> ago + +
-
- <% end %> -
+ <% end %> +
+
- +<% end %>