summaryrefslogtreecommitdiffstats
path: root/browser/components/pocket/content/panels/tmpl/item_recs.handlebars
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /browser/components/pocket/content/panels/tmpl/item_recs.handlebars
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/pocket/content/panels/tmpl/item_recs.handlebars')
-rw-r--r--browser/components/pocket/content/panels/tmpl/item_recs.handlebars24
1 files changed, 24 insertions, 0 deletions
diff --git a/browser/components/pocket/content/panels/tmpl/item_recs.handlebars b/browser/components/pocket/content/panels/tmpl/item_recs.handlebars
new file mode 100644
index 0000000000..ce18b647d7
--- /dev/null
+++ b/browser/components/pocket/content/panels/tmpl/item_recs.handlebars
@@ -0,0 +1,24 @@
+<header>
+ {{#if recommendations.[1] }}
+ <h4>Similar Stories</h4>
+ {{else}}
+ <h4>Similar Story</h4>
+ {{/if}}
+ <a class="pkt_ext_learn_more" target="_blank" href="https://getpocket.com/story_recommendations_learn_more">Learn more</a>
+</header>
+
+<ol>
+ {{#each recommendations}}
+ <li>
+ <a href="{{this.item.resolved_url}}" class="pkt_ext_item_recs_link" target="_blank">
+
+ {{#if this.item.encodedThumbURL}}
+ <img class="rec-thumb" src="https://img-getpocket.cdn.mozilla.net/80x80/filters:format(jpeg):quality(60):no_upscale():strip_exif()/{{this.item.encodedThumbURL}}" />
+ {{/if}}
+
+ <p class="rec-title">{{this.item.title}}</p>
+ <p class="rec-source">{{this.item.domain_metadata.name}}</p>
+ </a>
+ </li>
+ {{/each}}
+</ol>