stadtratmonitor/app/views/search/index.html.slim

28 lines
682 B
Text
Raw Normal View History

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
- if params[:q].present?
2014-11-19 22:33:16 +01:00
.left
| #{@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
- else
| #{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