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

34 lines
685 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
2015-06-22 20:38:13 +02:00
- if false # params[:q].present?
2015-06-22 20:38:13 +02:00
.row
.small-4.columns
= facet_list(@paper_type_facets)
.small-4.columns.end
= facet_list(@originator_facets)
2015-06-13 21:18:55 +02: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
| #{@papers.total} Dokumente in der Datenbank
2014-11-19 22:33:16 +01:00
div
2015-04-27 22:35:11 +02:00
ul.no-bullet
- @papers.each do |doc|
li.search-result
small = doc.paper_type
'
small = doc.originator
'
2015-05-17 19:19:59 +02:00
small = l doc.published_at.to_date
2015-04-27 22:35:11 +02:00
= link_to doc.url, target: '_blank' do
div = doc.name
2015-04-27 23:14:48 +02:00
div
= paginate @papers