diff options
author | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-06-16 16:24:40 +0200 |
---|---|---|
committer | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-06-16 16:24:40 +0200 |
commit | a78a0cbf688b14e1d180586995e46941e7471baf (patch) | |
tree | 3f4a002ef106c029c3ded5a87780af09a4e68f44 /app | |
parent | 2bfffee038c57c5f6f1d03aad434ae9b861bde60 (diff) |
Improve date visualization in installments screen
Diffstat (limited to 'app')
-rw-r--r-- | app/views/spree/admin/installments/index.html.erb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/views/spree/admin/installments/index.html.erb b/app/views/spree/admin/installments/index.html.erb index 483cf4d..5b17707 100644 --- a/app/views/spree/admin/installments/index.html.erb +++ b/app/views/spree/admin/installments/index.html.erb @@ -13,8 +13,8 @@ <table id="listing_installments" class="index"> <thead> <tr data-hook="admin_installments_index_headers"> - <th><%= sort_link(@search, :actionable_date, SolidusSubscriptions::Installment.human_attribute_name(:actionable_date)) %></th> <th><%= sort_link(@search, :created_at, SolidusSubscriptions::Installment.human_attribute_name(:created_at)) %></th> + <th><%= sort_link(@search, :actionable_date, SolidusSubscriptions::Installment.human_attribute_name(:actionable_date)) %></th> <th><%= SolidusSubscriptions::Installment.human_attribute_name(:fulfilled) %></th> <th data-hook="admin_installments_index_header_actions" class="actions"></th> </tr> @@ -23,8 +23,14 @@ <tbody> <% @installments.each do |installment| %> <tr> - <td><%= l(installment.actionable_date.to_date) if installment.actionable_date %></td> - <td><%= l(installment.created_at.to_date) %></td> + <td><%= l(installment.created_at) %></td> + <td> + <% if installment.actionable_date %> + <%= l(installment.actionable_date) %> + <% else %> + — + <% end %> + </td> <td><%= render 'state_pill', installment: installment %></td> <td class="actions"></td> </tr> |