Rework search-results markup

This commit is contained in:
Lars Henrik Mai 2016-02-23 11:04:50 +01:00
parent e0573b703f
commit 25ceb50141
2 changed files with 25 additions and 19 deletions

View file

@ -1,4 +1,17 @@
.search-result { .search-result {
border-bottom: 1px solid $table-border-color; margin-bottom: 1.2em;
padding-bottom: 0.25em; }
.search-result article {
line-height: normal;
}
.search-result h4 {
line-height: normal;
font-size: 1.2rem;
margin-bottom: 0.1rem;
}
.search-result .metainfo {
font-size: 0.8rem;
} }

View file

@ -1,14 +1,6 @@
div div
= render 'search/form' = render 'search/form'
- if false # params[:q].present?
.row
.small-4.columns
= facet_list(@paper_type_facets)
.small-4.columns.end
= facet_list(@originator_facets)
.clearfix .clearfix
- if params[:q].present? - if params[:q].present?
.left .left
@ -21,15 +13,16 @@ div
ul.no-bullet#search_results ul.no-bullet#search_results
- @papers.each do |doc| - @papers.each do |doc|
li.search-result li.search-result
small = doc.paper_type article
h4 = link_to doc.name, doc.url, target: '_blank'
div.metainfo
span.paper_type = doc.paper_type
' '
small = doc.originator span.originator = doc.originator
' '
small = l doc.published_at.to_date span.published = l doc.published_at.to_date
' '
small = doc._score span.score = doc._score
= link_to doc.url, target: '_blank' do
div = doc.name
div div
= paginate @papers = paginate @papers