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

23 lines
671 B
Text
Raw Normal View History

2014-11-19 22:33:16 +01:00
div
= form_tag(search_path, method: :get)
= text_field_tag(:q, params[:q], placeholder: 'Suche…')
2014-11-19 21:54:36 +01:00
2014-11-19 22:33:16 +01:00
.clearfix
2014-11-19 21:54:36 +01:00
- if @result
2014-11-19 22:33:16 +01:00
.left
2014-11-19 21:54:36 +01:00
| #{@result['hits']['total']} Treffer
2014-11-19 22:33:16 +01:00
.right
button.button. TODO: Suche Abbonieren
div
- if @result
ul.no-bullet
- @result['hits']['hits'].each do |doc|
li.search-result
small = doc['_source']['paperType']
'
small = doc['_source']['originator'].join(', ')
'
small = doc['_source']['publishedDate']
= link_to "https://ratsinfo.leipzig.de/bi/#{doc['_source']['mainFile']}", target: '_blank' do
div = doc['_source']['name']