mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
polish up green page
This commit is contained in:
parent
29fae1e745
commit
28e5ffd469
@ -37,18 +37,18 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s12 m12 l4">
|
||||
<div class="card-panel center green white-text">
|
||||
<div class="card-panel center green darken-1 white-text">
|
||||
<i class="material-icons left large">park</i>
|
||||
<h1 style="margin: 0"><%= number_with_delimiter @total_trees_saved.round %></h1>
|
||||
<h1 style="margin: 0"><strong><%= number_with_delimiter @total_trees_saved.round %></strong></h1>
|
||||
trees saved
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col s12 m12 l8 offset-l4">
|
||||
<div class="col s12 m12 l9 offset-l3">
|
||||
<div class="card-panelf">
|
||||
<p class="grey-text text-darken-1">
|
||||
<i class="material-icons left green-text">park</i>
|
||||
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.
|
||||
</p>
|
||||
@ -83,8 +83,15 @@
|
||||
<i class="material-icons left <%= content_class_from_name(content_type).color %>-text">
|
||||
<%= content_class_from_name(content_type).icon %>
|
||||
</i>
|
||||
<%= 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 %>
|
||||
</td>
|
||||
<td>
|
||||
<i class="material-icons left grey-text">copy_all</i>
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user