2020-11-10 22:04:35 +08:00
|
|
|
<% results.each do |project_folder| %>
|
|
|
|
<h5>
|
2023-06-15 21:12:51 +08:00
|
|
|
<span class="sn-icon sn-icon-folder"></span>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: 'search/results/partials/project_folder_text',
|
2020-11-10 22:04:35 +08:00
|
|
|
locals: { project_folder: project_folder, query: search_query, link_to_page: :show } %>
|
|
|
|
</h5>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<span>
|
|
|
|
<%= t('search.index.created_at') %>
|
|
|
|
<%= l(project_folder.created_at, format: :full) %>
|
|
|
|
</span>
|
|
|
|
<br>
|
2021-02-05 19:39:26 +08:00
|
|
|
<% if project_folder.parent_folder %>
|
|
|
|
<span>
|
|
|
|
<%=t "search.index.folder" %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: "search/results/partials/project_folders_text",
|
2021-02-05 19:39:26 +08:00
|
|
|
locals: { folder: project_folder.parent_folder } %>
|
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<% end %>
|
2020-11-10 22:04:35 +08:00
|
|
|
<span>
|
|
|
|
<%= t('search.index.team') %>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: 'search/results/partials/team_text', locals: { team: project_folder.team } %>
|
2020-11-10 22:04:35 +08:00
|
|
|
</span>
|
|
|
|
<span data-hook="search-result-project-folder"></span>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<% end %>
|