From b2fc1489563273d4e2f7104b61425f8d52aded6f Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 23 Feb 2013 17:17:46 -0500 Subject: [PATCH] add post count to pool listing --- app/assets/stylesheets/common/tables.css.scss | 4 ++++ app/views/pools/index.html.erb | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common/tables.css.scss b/app/assets/stylesheets/common/tables.css.scss index 5c3d9b608..24226bffe 100644 --- a/app/assets/stylesheets/common/tables.css.scss +++ b/app/assets/stylesheets/common/tables.css.scss @@ -19,6 +19,10 @@ table.striped { } } + .number { + text-align: right; + } + thead { tr { border-bottom: 2px solid #666; diff --git a/app/views/pools/index.html.erb b/app/views/pools/index.html.erb index 04bd49416..a6f070cac 100644 --- a/app/views/pools/index.html.erb +++ b/app/views/pools/index.html.erb @@ -4,8 +4,9 @@ - Name + Name Creator + Count @@ -20,6 +21,9 @@ <%= link_to h(pool.creator.name), user_path(pool.creator) %> + + <%= pool.post_count %> + <% end %> <% end %>