Skip to content

Commit

Permalink
Show collection type
Browse files Browse the repository at this point in the history
  • Loading branch information
abartov committed Jan 1, 2025
1 parent 1fec42c commit 2141d33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/search/results.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
%br
!= result._data['highlight']['fulltext'].join("<br />").gsub('<em>','<b>').gsub('</em>','</b>')
- elsif result.instance_of?(CollectionsIndex)
%b= Collection.model_name
%b= textify_collection_type(result.collection_type)
%br
%b= link_to([result.title, result.subtitle].compact_blank.join(' / '), collection_path(result.id))
- elsif result.instance_of?(AuthoritiesIndex)
%b= t(:author)
Expand Down

0 comments on commit 2141d33

Please sign in to comment.