2014-11-19 22:33:16 +01:00
|
|
|
div
|
2015-04-27 22:35:11 +02:00
|
|
|
= render 'search/form'
|
2014-11-19 21:54:36 +01:00
|
|
|
|
2014-11-19 22:33:16 +01:00
|
|
|
.clearfix
|
2015-06-01 23:53:45 +02:00
|
|
|
- if params[:q].present?
|
2014-11-19 22:33:16 +01:00
|
|
|
.left
|
2015-06-01 23:53:45 +02:00
|
|
|
| #{@papers.total} Treffer
|
2014-11-19 22:33:16 +01:00
|
|
|
.right
|
2015-04-28 00:49:42 +02:00
|
|
|
/ button.button. TODO: Suche Abbonieren
|
2015-04-27 23:25:14 +02:00
|
|
|
- else
|
2016-03-05 12:40:35 +01:00
|
|
|
| #{pluralize(@papers.total, "Dokument", "Dokumente")} in der Datenbank
|
2014-11-19 22:33:16 +01:00
|
|
|
div
|
2016-02-19 08:22:36 +01:00
|
|
|
ul.no-bullet#search_results
|
2015-04-27 22:35:11 +02:00
|
|
|
- @papers.each do |doc|
|
|
|
|
li.search-result
|
2016-02-23 11:04:50 +01:00
|
|
|
article
|
|
|
|
h4 = link_to doc.name, doc.url, target: '_blank'
|
|
|
|
div.metainfo
|
|
|
|
span.paper_type = doc.paper_type
|
|
|
|
'
|
|
|
|
span.originator = doc.originator
|
|
|
|
'
|
|
|
|
span.published = l doc.published_at.to_date
|
2016-02-23 11:37:53 +01:00
|
|
|
/! score: #{doc._score}
|
2015-04-27 23:14:48 +02:00
|
|
|
|
2016-02-24 11:39:12 +01:00
|
|
|
div#pagination
|
2015-04-27 23:14:48 +02:00
|
|
|
= paginate @papers
|