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

22 lines
659 B
Text
Raw Normal View History

= form_tag(search_path, method: :get)
2014-11-19 21:54:36 +01:00
= text_field_tag(:q, params[:q], placeholder: 'Suche…')
.row
- if @result
.small-9.columns
| #{@result['hits']['total']} Treffer
.small-3.columns
button.button.right TODO: Suche Abbonieren
- 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']