From b8e0dc93d719f6679f8f63734995db63088ec9e9 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Sat, 9 Nov 2024 17:49:48 +0100 Subject: [PATCH] (search) Correctly show the feeds view when items are present ... otherwise show samples. This commit also removes the (Experimental) bit, as this is getting fairly mature. --- .../resources/templates/search/site-info/site-info-feed.hdb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/services-application/search-service/resources/templates/search/site-info/site-info-feed.hdb b/code/services-application/search-service/resources/templates/search/site-info/site-info-feed.hdb index ffcde3e5..c3e52d81 100644 --- a/code/services-application/search-service/resources/templates/search/site-info/site-info-feed.hdb +++ b/code/services-application/search-service/resources/templates/search/site-info/site-info-feed.hdb @@ -1,5 +1,6 @@ +{{#if feed.items}} {{#with feed}} -

Feed (Experimental)

+

Feed

{{#each items}} @@ -8,8 +9,9 @@ {{/each}}
{{/with}} +{{/if}} -{{#unless feed}}{{#if samples}} +{{#unless feed.items}}{{#if samples}}

Sample

{{#each samples}}