about summary refs log tree commit diff
path: root/app/views/accounts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-06 12:34:39 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-06 12:34:39 +0100
commitaab330eb2d39711e19753e89ba7ff67521929cf0 (patch)
treea652e2dc7f3bbd67264f45bb9c7c010e149c03c8 /app/views/accounts
parentab80ebdeecf9410c5b43dde333b2e036e1198e24 (diff)
Adjusting design of public pages, optimizing account page queries
Diffstat (limited to 'app/views/accounts')
-rw-r--r--app/views/accounts/show.html.haml22
1 files changed, 16 insertions, 6 deletions
diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml
index ea55b655b..9f665e8c3 100644
--- a/app/views/accounts/show.html.haml
+++ b/app/views/accounts/show.html.haml
@@ -4,11 +4,21 @@
 
 .card
   .avatar= image_tag @account.avatar.url(:large)
-  .bio
-    %h1.name
-      = @account.display_name.blank? ? @account.username : @account.display_name
-      %small= "@#{@account.username}"
-
+  %h1.name
+    = @account.display_name.blank? ? @account.username : @account.display_name
+    %small= "@#{@account.username}"
+  .details
+    .counter
+      %span.counter-label Posts
+      %span.counter-number= @account.statuses.count
+    .counter
+      %span.counter-label Following
+      %span.counter-number= @account.following.count
+    .counter
+      %span.counter-label Followers
+      %span.counter-number= @account.followers.count
+    .bio
+      %p= @account.note
 .activity-stream
-  - @account.statuses.order('id desc').each do |status|
+  - @statuses.each do |status|
     = render partial: 'stream_entries/status', locals: { status: status, include_threads: false, is_successor: false, is_predecessor: false }