diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index b82497e2..5e8ed4a6 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -42,7 +42,8 @@ class MainController < ApplicationController @starred_pages = content_list.select { |page| page['favorite'] == 1 } @other_pages = content_list.select { |page| page['favorite'] == 0 } - + @page_type_counts = Hash.new(0) + content_list.each { |page| @page_type_counts[page['page_type']] += 1 } end def infostack diff --git a/app/views/main/table_of_contents.html.erb b/app/views/main/table_of_contents.html.erb index b06a0995..21ab5da5 100644 --- a/app/views/main/table_of_contents.html.erb +++ b/app/views/main/table_of_contents.html.erb @@ -20,9 +20,8 @@
- Star any page to keep it at the top of page lists. -
-+ Star any page to keep it at the top of page lists. +
+- Everything else! +
+ Filter by page type...
+ +- Table of Contents +
+ Stay connected and be notified as this world grows!
-- All your pages and stuff (maybe make this a universe page, sharable?) +
+ Your email address won't be shared with <%= @universe_scope.user.display_name %>.