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

25 lines
689 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
- 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 = doc.name
- 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'
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