scinote-web/app/views/search/results/_projects.html.erb

37 lines
1 KiB
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<% results.each do |project| %>
<h5>
2023-06-08 14:33:37 +08:00
<span class="sn-icon sn-icon-projects"></span>
<%= render partial: 'search/results/partials/project_text.html.erb',
locals: { project: project, query: search_query, link_to_page: :show } %>
2016-02-12 23:52:43 +08:00
</h5>
<p>
<span>
<%=t 'search.object_id' %>
<%= highlight project.code, @search_query.strip.split(/\s+/) %>
</span>
<br>
2016-02-12 23:52:43 +08:00
<span>
<%=t 'search.index.created_at' %>
2016-02-12 23:52:43 +08:00
<%=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 %>
2016-02-12 23:52:43 +08:00
<span>
2017-01-25 19:01:23 +08:00
<%=t 'search.index.team' %>
<%= render partial: 'search/results/partials/team_text.html.erb',
locals: { team: project.team } %>
2016-02-12 23:52:43 +08:00
</span>
<span data-hook="search-result-project"></span>
2016-02-12 23:52:43 +08:00
</p>
<hr>
<% end %>