From f37336c789735d323c965f53824979eea8145597 Mon Sep 17 00:00:00 2001 From: Neetpone <132411956+Neetpone@users.noreply.github.com> Date: Tue, 2 Apr 2024 19:43:43 -0400 Subject: [PATCH] fix: display the long description if there's no short one. --- app/views/search/_advanced.html.slim | 7 +++---- app/views/search/search.html.slim | 5 ++++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/search/_advanced.html.slim b/app/views/search/_advanced.html.slim index 7f30a47..ff604b6 100644 --- a/app/views/search/_advanced.html.slim +++ b/app/views/search/_advanced.html.slim @@ -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'] diff --git a/app/views/search/search.html.slim b/app/views/search/search.html.slim index 37e714e..7c6df26 100644 --- a/app/views/search/search.html.slim +++ b/app/views/search/search.html.slim @@ -24,7 +24,10 @@ br span.popular span.stats - p.description= rec.short_description + - if rec.short_description.present? + p.description= rec.short_description + - else + p.description== rec.description_html footer .rating = rating_display(rec.rating)