summaryrefslogtreecommitdiffstats
path: root/browser/components/pocket/content/panels/tmpl/item_recs.handlebars
blob: ce18b647d78c4d2c6e1e6b5953d3bf36a992edc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>