2022-03-15 17:24:35 +08:00
|
|
|
<% reminders.each_with_index do |reminder, index| %>
|
|
|
|
<li class="row-reminders-notification">
|
|
|
|
<% if reminder.value_type == 'RepositoryStockValue' %>
|
2022-03-22 20:33:58 +08:00
|
|
|
<%= render partial: 'shared/reminder/stock_reminder', locals: { reminder: reminder } %>
|
|
|
|
<% elsif reminder.value_type == 'RepositoryDateTimeValueBase' %>
|
|
|
|
<%= render partial: 'shared/reminder/date_reminder', locals: { reminder: reminder } %>
|
2022-03-15 17:24:35 +08:00
|
|
|
<% end %>
|
2022-03-24 17:16:47 +08:00
|
|
|
<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 %>">
|
2023-06-08 23:33:50 +08:00
|
|
|
<i class="sn-icon sn-icon-close"></i>
|
2022-03-15 17:24:35 +08:00
|
|
|
<%= t('repository_row.reminder.clear') %>
|
2022-03-24 17:16:47 +08:00
|
|
|
</button>
|
2022-03-15 17:24:35 +08:00
|
|
|
<%if index + 1 < reminders.length %>
|
|
|
|
<hr>
|
|
|
|
<%end%>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
|