mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
7cba738a9b
* 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]
12 lines
638 B
Text
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 %>
|