Tweak layout

This commit is contained in:
Andreas Haller 2014-11-19 22:33:16 +01:00
parent 2abba45f4c
commit 3d721d1759
3 changed files with 27 additions and 29 deletions

View file

@ -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;
} }

View file

@ -8,16 +8,12 @@ head
body body
.row .row
.small-12.columns
.clearfix
.right = render 'login_button'
h1#title = link_to 'Stadtratmonitor Leipzig', root_path
- flash.each do |name, msg| - flash.each do |name, msg|
= content_tag :div, msg, class: name = content_tag :div, msg, class: name
.row
.large-8.columns
h1#title
= link_to 'Stadtratmonitor Leipzig', root_path
.large-4.columns
ul.inline-list.right
li = render 'login_button'
.row
= yield = yield
script src="https://login.persona.org/include.js" script src="https://login.persona.org/include.js"

View file

@ -1,13 +1,14 @@
div
= form_tag(search_path, method: :get) = form_tag(search_path, method: :get)
= text_field_tag(:q, params[:q], placeholder: 'Suche…') = 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|