From aa64fb57f541564b65d753f06333db238f655bfe Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 2 Jun 2021 22:43:03 -0400 Subject: Some tweaks and fixes for magiculture --- app/views/characters/hearth/hearth_plantings/index.html.erb | 2 +- app/views/characters/hearth/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/views/characters/hearth/hearth_plantings/index.html.erb b/app/views/characters/hearth/hearth_plantings/index.html.erb index 8aaefcc..d8e7f96 100644 --- a/app/views/characters/hearth/hearth_plantings/index.html.erb +++ b/app/views/characters/hearth/hearth_plantings/index.html.erb @@ -11,7 +11,7 @@
- <% @hearth_plantings.each do |hp| %> + <% @hearth_plantings.sort_by(&:ripens_at).each do |hp| %>

<%= hp.item.name %>

<% if hp.ripens_at > Time.now %> diff --git a/app/views/characters/hearth/index.html.erb b/app/views/characters/hearth/index.html.erb index 7ff34c5..c063088 100644 --- a/app/views/characters/hearth/index.html.erb +++ b/app/views/characters/hearth/index.html.erb @@ -25,7 +25,7 @@ <%= button_to "Use", hearth_amenity_use_path(built_amenity.hearth_amenity) %> <% end %> <% if built_amenity.hearth_amenity.gid == "loamspire" %> - <%= link_to "Manage", character_hearth_loamspire_path, class: "btn btn-primary" %> + <%= link_to "Manage crops", character_hearth_loamspire_path, class: "btn btn-primary" %> <% end %> <% end %> <% next_level = built_amenity ? built_amenity.level + 1 : 1 %> -- cgit v1.2.3