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
|
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
|
2016-12-23 00:17:18 +01:00
|
|
|
h4 = doc.name
|
2017-01-01 13:41:28 +01:00
|
|
|
- if @sub[doc.reference]
|
|
|
|
ul
|
|
|
|
- @sub[doc.reference].each do |sub|
|
|
|
|
li class="#{'current' if sub.reference == doc.reference}"
|
|
|
|
div = link_to "#{l sub.published_at.to_date}: #{sub.paper_type} von #{sub.originator.join(", ")}", sub.url, target: '_blank'
|
2016-12-23 00:17:18 +01:00
|
|
|
|
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
|