mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
5e92429212
Co-authored-by: Anton <anton@scinote.net>
20 lines
1,006 B
Text
20 lines
1,006 B
Text
<% reminders.each_with_index do |reminder, index| %>
|
|
<li class="row-reminders-notification">
|
|
<% if reminder.value_type == 'RepositoryStockValue' %>
|
|
<%= render partial: 'shared/reminder/stock_reminder', locals: { reminder: reminder } %>
|
|
<% elsif reminder.value_type == 'RepositoryDateTimeValueBase' %>
|
|
<%= render partial: 'shared/reminder/date_reminder', locals: { reminder: reminder } %>
|
|
<% end %>
|
|
<button class="row-reminders-footer btn btn-light" data-row-hide-reminders-url="
|
|
<%= repository_repository_row_repository_cell_hide_reminder_url(reminder.repository_row.repository,
|
|
reminder.repository_row,
|
|
reminder) %> " tabindex="<%= index + 1 %>">
|
|
<i class="fas fa-times"></i>
|
|
<%= t('repository_row.reminder.clear') %>
|
|
</button>
|
|
<%if index + 1 < reminders.length %>
|
|
<hr>
|
|
<%end%>
|
|
</li>
|
|
<% end %>
|
|
|