mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
12: Group sequential papers in search results
#12: Group sequential papers in search results - use consistent layout
This commit is contained in:
parent
7f1aead3a8
commit
52f93fcb42
4 changed files with 27 additions and 12 deletions
|
@ -5,8 +5,6 @@ div
|
|||
- if params[:q].present?
|
||||
.left
|
||||
| #{@papers.total} Treffer
|
||||
.right
|
||||
/ button.button. TODO: Suche Abbonieren
|
||||
- else
|
||||
| #{pluralize(@papers.total, "Dokument", "Dokumente")} in der Datenbank
|
||||
div
|
||||
|
@ -14,14 +12,12 @@ div
|
|||
- @papers.each do |doc|
|
||||
li.search-result
|
||||
article
|
||||
h4 = link_to doc.name, doc.url, target: '_blank'
|
||||
div.metainfo
|
||||
span.paper_type = doc.paper_type
|
||||
'
|
||||
span.originator = doc.originator
|
||||
'
|
||||
span.published = l doc.published_at.to_date
|
||||
/! score: #{doc._score}
|
||||
h4 = doc.name
|
||||
ul
|
||||
- @sub[doc.reference].each do |sub|
|
||||
li class="#{'current' if sub.reference == doc.reference}"
|
||||
div = link_to "#{l sub.published_at.to_date}: #{sub.paper_type} von #{sub.originator.join(", ")}", sub.url, target: '_blank'
|
||||
|
||||
|
||||
div#pagination
|
||||
= paginate @papers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue