fix: display the long description if there's no short one.

This commit is contained in:
Neetpone 2024-04-02 19:43:43 -04:00
parent ef246a4503
commit f37336c789
2 changed files with 7 additions and 5 deletions

View file

@ -95,12 +95,13 @@ div.search-adv
= label_tag 'star_2', '', class: 'star' = label_tag 'star_2', '', class: 'star'
= radio_button_tag :stars, 1, true, class: 'star star-1' = radio_button_tag :stars, 1, true, class: 'star star-1'
= label_tag 'star_1', '', class: 'star' = 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 .cols
.opts .opts
b Characters b Characters
br 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 .js-tag-editor
.selected-tags .selected-tags
= text_field_tag :characters, @search_params['characters'] = text_field_tag :characters, @search_params['characters']
@ -109,8 +110,6 @@ div.search-adv
.opts .opts
b Tags b Tags
br 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 .js-tag-editor
.selected-tags .selected-tags
= text_field_tag :tags, @search_params['tags'] = text_field_tag :tags, @search_params['tags']

View file

@ -24,7 +24,10 @@
br br
span.popular span.popular
span.stats span.stats
p.description= rec.short_description - if rec.short_description.present?
p.description= rec.short_description
- else
p.description== rec.description_html
footer footer
.rating .rating
= rating_display(rec.rating) = rating_display(rec.rating)