diff --git a/app/views/main/paper.html.erb b/app/views/main/paper.html.erb index 06d5c685..a27159e8 100644 --- a/app/views/main/paper.html.erb +++ b/app/views/main/paper.html.erb @@ -37,18 +37,18 @@
-
+
park -

<%= number_with_delimiter @total_trees_saved.round %>

+

<%= number_with_delimiter @total_trees_saved.round %>

trees saved
-
+

park - Note: The average 40-foot pine tree typically yields between 10,000 and 20,000 notebook-quality sheets of paper. + The average 40-foot pine tree typically yields between 10,000 and 20,000 notebook-quality sheets of paper. For the estimations on this page, we're using a conservative estimate of <%= number_with_delimiter GreenService::SHEETS_OF_PAPER_PER_TREE %> pages per tree.

@@ -83,8 +83,15 @@ <%= content_class_from_name(content_type).icon %> - <%= number_with_delimiter content_list_count %> - <%= content_type.pluralize content_list_count %> + <% if ["Timeline", "Document"].include?(content_type) %> + <%= number_with_delimiter content_list_count %> + <%= content_type.pluralize content_list_count %> + <% else %> + <%= link_to send("#{content_type.downcase}_worldbuilding_info_path"), class: 'black-text' do %> + <%= number_with_delimiter content_list_count %> + <%= content_type.pluralize content_list_count %> + <% end %> + <% end %> copy_all diff --git a/config/routes.rb b/config/routes.rb index 81bb58fd..96b6af37 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -283,6 +283,8 @@ Rails.application.routes.draw do scope '/worldbuilding' do Rails.application.config.content_types[:all].each do |content_type| get content_type.name.downcase.pluralize, to: "information##{content_type.name.downcase.pluralize}", as: "#{content_type.name.downcase}_worldbuilding_info" + # TODO: documents info page + # TODO: timelines info page end end