scinote-web/app/views/shared/reminder/_stock_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

8 lines
361 B
Text

<div class="row-reminders-title"><strong><%= t('repository_row.reminder.low_stock_title') %></strong></div>
<div class="row-reminders-body">
<% if reminder.value.amount <= 0 %>
<%= t('repository_row.reminder.stock_empty') %>
<% else %>
<%= t('repository_row.reminder.stock_low_html', stock_formated: reminder.value.formatted ) %>
<% end %>
</div>