mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Show last 30 papers on homepage
This commit is contained in:
parent
973af9f0d9
commit
f71c083722
3 changed files with 19 additions and 16 deletions
2
app/views/search/_form.slim
Normal file
2
app/views/search/_form.slim
Normal file
|
@ -0,0 +1,2 @@
|
|||
= form_tag(search_path, method: :get)
|
||||
= text_field_tag(:q, params[:q], placeholder: 'Suche…', autofocus: true)
|
|
@ -1,22 +1,20 @@
|
|||
div
|
||||
= form_tag(search_path, method: :get)
|
||||
= text_field_tag(:q, params[:q], placeholder: 'Suche…', autofocus: true)
|
||||
= render 'search/form'
|
||||
|
||||
.clearfix
|
||||
- if @result
|
||||
- if @show_search_result
|
||||
.left
|
||||
| #{@result.size} Treffer
|
||||
| #{@papers.size} Treffer
|
||||
.right
|
||||
button.button. TODO: Suche Abbonieren
|
||||
div
|
||||
- if @result
|
||||
ul.no-bullet
|
||||
- @result.each do |doc|
|
||||
li.search-result
|
||||
small = doc.paper_type
|
||||
'
|
||||
small = doc.originator
|
||||
'
|
||||
small = doc.published_at
|
||||
= link_to doc.url, target: '_blank' do
|
||||
div = doc.name
|
||||
ul.no-bullet
|
||||
- @papers.each do |doc|
|
||||
li.search-result
|
||||
small = doc.paper_type
|
||||
'
|
||||
small = doc.originator
|
||||
'
|
||||
small = doc.published_at
|
||||
= link_to doc.url, target: '_blank' do
|
||||
div = doc.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue