diff options
author | David Gay <david@davidgay.org> | 2021-06-02 22:43:03 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-02 22:43:03 -0400 |
commit | aa64fb57f541564b65d753f06333db238f655bfe (patch) | |
tree | d422aa33c28b24a50e8d1d9b4e5b1f31b49b3829 /app/views/characters/hearth/hearth_plantings | |
parent | 4c96893a114059dc4e748307c6d046ec1faa778f (diff) |
Some tweaks and fixes for magiculture
Diffstat (limited to 'app/views/characters/hearth/hearth_plantings')
-rw-r--r-- | app/views/characters/hearth/hearth_plantings/index.html.erb | 2 |
1 files changed, 1 insertions, 1 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 %> |