stadtratmonitor/app/views/search/index.html.slim
2016-03-30 20:55:33 +02:00

27 lines
682 B
Text

div
= render 'search/form'
.clearfix
- if params[:q].present?
.left
| #{@papers.total} Treffer
.right
/ button.button. TODO: Suche Abbonieren
- else
| #{pluralize(@papers.total, "Dokument", "Dokumente")} in der Datenbank
div
ul.no-bullet#search_results
- @papers.each do |doc|
li.search-result
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
/! score: #{doc._score}
div#pagination
= paginate @papers