2017-06-23 22:06:11 +08:00
|
|
|
<% results.each do |repository_row| %>
|
|
|
|
<h5>
|
2018-05-22 22:55:58 +08:00
|
|
|
<i class="fas fa-list-alt"></i>
|
2017-06-23 22:06:11 +08:00
|
|
|
<%=t "search.index.repositories.repository_row" %>
|
|
|
|
<%= highlight repository_row.name, search_query.strip.split(/\s+/) %>
|
|
|
|
</h5>
|
|
|
|
|
|
|
|
<p>
|
2018-04-04 17:55:11 +08:00
|
|
|
<span>
|
|
|
|
<%=t 'repository_row.modal_info.ID' %>
|
2023-05-03 17:07:18 +08:00
|
|
|
<%= highlight repository_row.code, @search_query.strip.split(/\s+/) %>
|
2018-04-04 17:55:11 +08:00
|
|
|
</span>
|
|
|
|
<br />
|
2017-06-23 22:06:11 +08:00
|
|
|
<span>
|
|
|
|
<%=t "search.index.repositories.added_on" %>
|
|
|
|
<%=l repository_row.created_at, format: :full %>
|
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<span>
|
|
|
|
<%=t "search.index.repositories.added_by" %>
|
|
|
|
<%= highlight repository_row.created_by.full_name, search_query.strip.split(/\s+/) %>
|
|
|
|
</span>
|
2018-05-15 23:48:48 +08:00
|
|
|
<br>
|
2018-04-04 17:55:11 +08:00
|
|
|
<% repository_row.repository_cells.each do |cell| %>
|
|
|
|
<span>
|
|
|
|
<%=t "search.index.repositories.custom_column", column: cell.repository_column.name %>
|
2020-01-06 16:39:38 +08:00
|
|
|
<%= highlight cell.value.formatted, search_query.strip.split(/\s+/) %>
|
2018-04-04 17:55:11 +08:00
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<% end %>
|
2017-06-23 22:06:11 +08:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<span>
|
|
|
|
<%=t "search.index.modules" %>
|
2017-06-27 19:39:08 +08:00
|
|
|
<% if repository_row.my_modules.any? %>
|
2017-06-23 22:06:11 +08:00
|
|
|
<% repository_row.my_modules.each_with_index do |mod, i| %>
|
|
|
|
<%= render partial: "search/results/partials/my_module_text.html.erb",
|
|
|
|
locals: { my_module: mod, link_to_page: :repositories, repository: repository } %>
|
|
|
|
<% if i != repository_row.my_modules.count - 1 %>
|
|
|
|
,
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<em><%=t "search.index.repositories.no_modules" %></em>
|
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<span>
|
|
|
|
<%=t "search.index.team" %>
|
|
|
|
<%= render partial: "search/results/partials/team_text.html.erb",
|
|
|
|
locals: { team: repository.team } %>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<% end %>
|