mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-10 06:37:32 +08:00
Add file extension to global search
This commit is contained in:
parent
85d2370d28
commit
62356c36a1
1 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,11 @@
|
|||
<% if asset.is_image? %>
|
||||
<span class="glyphicon glyphicon-picture"></span>
|
||||
<% else %>
|
||||
<span class="glyphicon glyphicon-file"></span>
|
||||
<% if wopi_file?(asset) %>
|
||||
<%= file_extension_icon(asset) %>
|
||||
<% else %>
|
||||
<span class="glyphicon glyphicon-file"></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= render partial: "search/results/partials/asset_text.html.erb", locals: { asset: asset, query: search_query } %>
|
||||
</h5>
|
||||
|
|
Loading…
Reference in a new issue