diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/characters/hearth/hearth_plantings/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/characters/hearth/index.html.erb | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ </div> <div class="grid grid-cols-1 lg:grid-cols-2 gap-4"> - <% @hearth_plantings.each do |hp| %> + <% @hearth_plantings.sort_by(&:ripens_at).each do |hp| %> <div class="flex justify-between items-center border-2 border-yellow-900 rounded p-2"> <h2 class="font-bold"><%= hp.item.name %></h2> <% 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 %> |