summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/characters/hearth/index.html.erb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/characters/hearth/index.html.erb b/app/views/characters/hearth/index.html.erb
index c063088..b8478f1 100644
--- a/app/views/characters/hearth/index.html.erb
+++ b/app/views/characters/hearth/index.html.erb
@@ -22,7 +22,13 @@
<% end %>
<% end %>
<% if built_amenity.usable? %>
- <%= button_to "Use", hearth_amenity_use_path(built_amenity.hearth_amenity) %>
+ <% if built_amenity.on_cooldown? %>
+ <div class="text-sm">Will be filled again in
+ <%= distance_of_time_in_words_to_now(built_amenity.cooled_down_at) %>.
+ </div>
+ <% else %>
+ <%= button_to "Use", hearth_amenity_use_path(built_amenity.hearth_amenity) %>
+ <% end %>
<% end %>
<% if built_amenity.hearth_amenity.gid == "loamspire" %>
<%= link_to "Manage crops", character_hearth_loamspire_path, class: "btn btn-primary" %>