scinote-web/app/views/shared/reminder/_date_reminder.html.erb
ajugo 7cba738a9b
Date remidner flyout [SCI-6503] (#3937)
* Implement date reminder flyout [SCI-6503]

* Show only days left for date reminder [SCI-6503]

* Pluralize day in reminders [SCI-6503]

* Create partials for different reminders [SCI-6503]

* Unify css for reminder [SCI-6503]
2022-03-22 13:33:58 +01:00

12 lines
638 B
Text

<div class="row-reminders-title"><strong><%= t('repository_row.reminder.date_reminder') %></strong></div>
<div class="row-reminders-body">
<%if reminder.value.data < Time.now.utc %>
<%= t('repository_row.reminder.item_expired') %>
<% else %>
<%= t('repository_row.reminder.date_expiration_html', date_expiration:
pluralize(((reminder.value.data - Time.now.utc)/1.day).ceil, t('repository_row.reminder.day'))) %>
<% end %>
</div>
<% if reminder.repository_column.metadata["reminder_message"].present? %>
<div class="row-reminders-body" > <%= reminder.repository_column.metadata["reminder_message"] %> </div>
<% end %>