mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-08 09:56:43 +01:00
fix: display the long description if there's no short one.
This commit is contained in:
parent
ef246a4503
commit
f37336c789
2 changed files with 7 additions and 5 deletions
|
@ -95,12 +95,13 @@ div.search-adv
|
|||
= label_tag 'star_2', '', class: 'star'
|
||||
= radio_button_tag :stars, 1, true, class: 'star star-1'
|
||||
= label_tag 'star_1', '', class: 'star'
|
||||
noscript
|
||||
.cols
|
||||
p Please enable JavaScript if you wish to have a more friendly tag searching experience. Otherwise, use the dropdown as a reference and separate exact tag names by commas in the field. Add a - to negate.
|
||||
.cols
|
||||
.opts
|
||||
b Characters
|
||||
br
|
||||
noscript
|
||||
p Please enable JavaScript if you wish to have a more friendly tag searching experience. Otherwise, ignore the dropdown and separate exact tag names by commas in the field.
|
||||
.js-tag-editor
|
||||
.selected-tags
|
||||
= text_field_tag :characters, @search_params['characters']
|
||||
|
@ -109,8 +110,6 @@ div.search-adv
|
|||
.opts
|
||||
b Tags
|
||||
br
|
||||
noscript
|
||||
p Please enable JavaScript if you wish to have a more friendly tag searching experience. Otherwise, ignore the dropdown and separate exact tag names by commas in the field.
|
||||
.js-tag-editor
|
||||
.selected-tags
|
||||
= text_field_tag :tags, @search_params['tags']
|
||||
|
|
|
@ -24,7 +24,10 @@
|
|||
br
|
||||
span.popular
|
||||
span.stats
|
||||
- if rec.short_description.present?
|
||||
p.description= rec.short_description
|
||||
- else
|
||||
p.description== rec.description_html
|
||||
footer
|
||||
.rating
|
||||
= rating_display(rec.rating)
|
||||
|
|
Loading…
Reference in a new issue