mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(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.
This commit is contained in:
parent
d774c39031
commit
b8e0dc93d7
@ -1,5 +1,6 @@
|
|||||||
|
{{#if feed.items}}
|
||||||
{{#with feed}}
|
{{#with feed}}
|
||||||
<h2><a title="Atom/RSS feed" target="external" href="{{feedUrl}}"><img width="16" height="16" src="/rss.svg"></a> Feed (Experimental)</h2>
|
<h2><a title="Atom/RSS feed" target="external" href="{{feedUrl}}"><img width="16" height="16" src="/rss.svg"></a> Feed</h2>
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
{{#each items}}
|
{{#each items}}
|
||||||
@ -8,8 +9,9 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</dl>
|
</dl>
|
||||||
{{/with}}
|
{{/with}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#unless feed}}{{#if samples}}
|
{{#unless feed.items}}{{#if samples}}
|
||||||
<h2>Sample</h2>
|
<h2>Sample</h2>
|
||||||
<dl>
|
<dl>
|
||||||
{{#each samples}}
|
{{#each samples}}
|
||||||
|
Loading…
Reference in New Issue
Block a user