mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
31 lines
909 B
Text
31 lines
909 B
Text
<% results.each do |project| %>
|
|
<h5>
|
|
<span class="fas fa-folder"></span>
|
|
<%= render partial: 'search/results/partials/project_text.html.erb',
|
|
locals: { project: project, query: search_query, link_to_page: :show } %>
|
|
</h5>
|
|
|
|
<p>
|
|
<span>
|
|
<%=t 'search.index.created_at' %>
|
|
<%=l project.created_at, format: :full %>
|
|
</span>
|
|
<br>
|
|
<% if project.project_folder %>
|
|
<span>
|
|
<%=t "search.index.folder" %>
|
|
<%= render partial: "search/results/partials/project_folders_text.html.erb",
|
|
locals: { folder: project.project_folder } %>
|
|
</span>
|
|
<br>
|
|
<% end %>
|
|
<span>
|
|
<%=t 'search.index.team' %>
|
|
<%= render partial: 'search/results/partials/team_text.html.erb',
|
|
locals: { team: project.team } %>
|
|
</span>
|
|
<span data-hook="search-result-project"></span>
|
|
</p>
|
|
|
|
<hr>
|
|
<% end %>
|