2023-02-01 01:16:29 +03:00
<section class="gh-canvas" {{ scroll-top }} >
2023-01-17 15:16:18 +03:00
<GhCanvasHeader class="gh-canvas-header">
2023-02-21 23:11:41 +03:00
<div class="flex flex-column flex-grow-1">
2023-02-22 12:48:15 +03:00
{{ # if this .post }}
<div class="gh-canvas-breadcrumb">
<LinkTo @route="posts">
Posts
</LinkTo>
{{ svg-jar "arrow-right-small" }}
<LinkTo @route="posts.analytics" @model= {{ this .post .id }} >
Analytics
</LinkTo>
{{ svg-jar "arrow-right-small" }} Mentions
</div>
{{ / if }}
2023-02-21 23:11:41 +03:00
<h2 class="gh-canvas-title gh-post-title" data-test-screen-title>
2023-02-22 12:48:15 +03:00
{{ # if this .post }}
{{ this .post .title }}
{{ else }}
Mentions
{{ / if }}
2023-02-21 23:11:41 +03:00
</h2>
2023-02-22 12:48:15 +03:00
{{ # if this .post }}
<div class="gh-post-analytics-meta">
<div class="gh-post-analytics-meta-text">
This post was mentioned in:
</div>
2023-02-21 23:11:41 +03:00
</div>
2023-02-22 12:48:15 +03:00
{{ / if }}
2023-02-21 23:11:41 +03:00
</div>
2023-01-17 15:16:18 +03:00
</GhCanvasHeader>
2023-02-20 20:27:21 +03:00
<section class="gh-mentions-main-section">
<div class="gh-mentions-list">
{{ # if this .mentionsInfinityModel }}
<div>
{{ # each this .mentionsInfinityModel as | mention | }}
<a href=" {{ mention .source }} " class="gh-mention-card" rel="noreferrer noopener" target="_blank">
{{!-- TODO: link to the post analytics page of your post --}}
<div class="gh-mention-header">
2023-01-24 00:42:19 +03:00
{{ # if mention .sourceFavicon }}
<img src=" {{ mention .sourceFavicon }} " alt=" {{ mention .sourceSiteTitle }} " class="gh-mention-icon">
{{ / if }}
2023-02-20 20:27:21 +03:00
<div class="gh-mention-publisher"> {{ mention .sourceSiteTitle }} </div>
<div class="gh-mention-link-icon">
{{ svg-jar "twitter-link" }}
</div>
<span class="gh-mention-your-link"> {{ if mention .resource mention .resource .name mention .target }} </span>
2023-02-01 01:08:46 +03:00
<span class="gh-mention-timestamp" title= {{ gh-format-post-time mention .timestamp }} > {{ moment-from-now mention .timestamp }} </span>
2023-01-24 00:42:19 +03:00
</div>
2023-02-20 20:27:21 +03:00
<div class="gh-mention-content">
<div class="gh-mention-source">
<h3 class="gh-mention-title"> {{ if mention .sourceTitle mention .sourceTitle mention .target }} </h3>
{{ # if mention .sourceExcerpt }}
<p class="gh-mention-description"> {{ mention .sourceExcerpt }} </p>
{{ / if }}
<div class="gh-mention-metadata">
{{ # if mention .sourceAuthor }}
<span class="gh-mention-author"> {{ mention .sourceAuthor }} </span>
{{ / if }}
</div>
</div>
{{ # if mention .sourceFeaturedImage }}
<div class="gh-mention-thumbnail">
<img src=" {{ mention .sourceFeaturedImage }} " alt="" role="presentation">
</div>
{{ / if }}
2023-01-24 00:42:19 +03:00
</div>
2023-02-20 20:27:21 +03:00
</a>
{{ / each }}
2023-01-24 00:42:19 +03:00
</div>
2023-02-20 20:27:21 +03:00
{{ else }}
<div class="gh-mentions-list-cta">
{{ svg-jar "email-love-letter" class = "love-letter" }}
<h4>No mentions yet</h4>
<p>When other sites mention your posts, they'll appear here.</p>
</div>
{{ / if }}
<GhInfinityLoader
2023-02-20 14:27:01 +03:00
@infinityModel= {{ this .mentionsInfinityModel }}
@scrollable=".gh-main"
@triggerOffset= {{ 1 0 0 0 }} />
2023-02-20 20:27:21 +03:00
</div>
<div class="gh-mentions-sidebar">
<div class="gh-mentions-explainer">
<img src="assets/img/mentions-background.png" alt="" role="presentation"/>
<h2>Introducing Mentions</h2>
<p>Whenever another person or site links to you, you’ ll receive a notification in your dashboard to show you who’ s talking about your content — and, when you link to someone else’ s work, they’ ll be notified, too.</p>
</div>
</div>
2023-01-18 19:42:36 +03:00
</section>
2023-01-17 15:16:18 +03:00
</section>