mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
Tweak layout
This commit is contained in:
parent
2abba45f4c
commit
3d721d1759
3 changed files with 27 additions and 29 deletions
|
@ -1,3 +1,4 @@
|
||||||
.search-result {
|
.search-result {
|
||||||
border-bottom: 1px solid $table-border-color;
|
border-bottom: 1px solid $table-border-color;
|
||||||
|
padding-bottom: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,17 +8,13 @@ head
|
||||||
|
|
||||||
body
|
body
|
||||||
.row
|
.row
|
||||||
- flash.each do |name, msg|
|
.small-12.columns
|
||||||
= content_tag :div, msg, class: name
|
.clearfix
|
||||||
.row
|
.right = render 'login_button'
|
||||||
.large-8.columns
|
h1#title = link_to 'Stadtratmonitor Leipzig', root_path
|
||||||
h1#title
|
- flash.each do |name, msg|
|
||||||
= link_to 'Stadtratmonitor Leipzig', root_path
|
= content_tag :div, msg, class: name
|
||||||
.large-4.columns
|
= yield
|
||||||
ul.inline-list.right
|
|
||||||
li = render 'login_button'
|
|
||||||
.row
|
|
||||||
= yield
|
|
||||||
|
|
||||||
script src="https://login.persona.org/include.js"
|
script src="https://login.persona.org/include.js"
|
||||||
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
||||||
|
|
|
@ -1,21 +1,22 @@
|
||||||
= form_tag(search_path, method: :get)
|
div
|
||||||
= text_field_tag(:q, params[:q], placeholder: 'Suche…')
|
= form_tag(search_path, method: :get)
|
||||||
|
= text_field_tag(:q, params[:q], placeholder: 'Suche…')
|
||||||
|
|
||||||
.row
|
.clearfix
|
||||||
- if @result
|
- if @result
|
||||||
.small-9.columns
|
.left
|
||||||
| #{@result['hits']['total']} Treffer
|
| #{@result['hits']['total']} Treffer
|
||||||
.small-3.columns
|
.right
|
||||||
button.button.right TODO: Suche Abbonieren
|
button.button. TODO: Suche Abbonieren
|
||||||
|
div
|
||||||
- if @result
|
- if @result
|
||||||
ul.no-bullet
|
ul.no-bullet
|
||||||
- @result['hits']['hits'].each do |doc|
|
- @result['hits']['hits'].each do |doc|
|
||||||
li.search-result
|
li.search-result
|
||||||
small = doc['_source']['paperType']
|
small = doc['_source']['paperType']
|
||||||
'
|
'
|
||||||
small = doc['_source']['originator'].join(', ')
|
small = doc['_source']['originator'].join(', ')
|
||||||
'
|
'
|
||||||
small = doc['_source']['publishedDate']
|
small = doc['_source']['publishedDate']
|
||||||
= link_to "https://ratsinfo.leipzig.de/bi/#{doc['_source']['mainFile']}", target: '_blank' do
|
= link_to "https://ratsinfo.leipzig.de/bi/#{doc['_source']['mainFile']}", target: '_blank' do
|
||||||
div = doc['_source']['name']
|
div = doc['_source']['name']
|
||||||
|
|
Loading…
Reference in a new issue