2019-01-03 21:11:00 +08:00
|
|
|
<% @my_module.experiment.project.team.repositories.order(created_at: :asc).each do |repository| %>
|
|
|
|
<li>
|
|
|
|
<a class="dropdown-item <%= "active-item" if @repository == repository %> help_tooltips"
|
|
|
|
data-tooltiplink="<%= I18n.t('tooltips.link.protocol.inventories') %>"
|
|
|
|
data-tooltipcontent="<%= I18n.t('tooltips.text.protocol.inventories') %>"
|
|
|
|
href="<%= repository_my_module_url(id: @my_module, repository_id: repository) %>"
|
|
|
|
title="<%= repository.name %>">
|
2019-01-11 04:11:20 +08:00
|
|
|
<% if enable_counters %>
|
2019-01-17 22:04:20 +08:00
|
|
|
<% cache [repository, @my_module] do %>
|
2019-01-11 04:11:20 +08:00
|
|
|
<%= truncate(repository.name) %>
|
|
|
|
<span class="assigned-items-counter"><%= "(#{@my_module.repository_rows_count(repository)})" %></span>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= truncate(repository.name) %>
|
|
|
|
<span class="assigned-items-counter"><i class="fas fa-spinner fa-spin"></i></span>
|
2019-01-03 21:11:00 +08:00
|
|
|
<% end %>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<% unless @my_module.experiment.project.team.repositories.last == repository %>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|