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>
2023-02-23 18:38:01 +03:00
{{ else }}
<div class="gh-canvas-breadcrumb">
<LinkTo @route="dashboard">
Dashboard
</LinkTo>
{{ svg-jar "arrow-right-small" }} Mentions
</div>
2023-02-22 12:48:15 +03:00
{{ / 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-23 18:44:21 +03:00
{{ # if ( and this .post this .mentionsInfinityModel ) }}
2023-02-22 12:48:15 +03:00
<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">
2023-02-23 18:38:01 +03:00
<div class="gh-mentions-list {{ unless this .mentionsInfinityModel "is-empty" }} ">
2023-02-20 20:27:21 +03:00
{{ # 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>
2023-03-01 14:15:29 +03:00
{{ # if ( gt mention .mentions .length 1 ) }}
2023-02-22 18:10:57 +03:00
<div class="gh-mention-link-icon">
{{ svg-jar "twitter-link" }}
</div>
2023-02-28 16:37:27 +03:00
<div>
2023-03-01 14:15:29 +03:00
<span class="gh-mention-your-link has-multiple-links"> {{ mention .mentions .length }} links</span>
<EmberPopover @tooltipClass="popover" @spacing= {{ 1 5 }} @arrowClass="popover-arrow" @side="top-start">
2023-02-28 16:37:27 +03:00
<ul class="gh-mention-multiple-links">
2023-03-01 14:15:29 +03:00
{{ # each mention .mentions as | submention | }}
<li> {{ if submention .resource submention .resource .name submention .target }} </li>
{{ / each }}
2023-02-28 16:37:27 +03:00
</ul>
</EmberPopover>
</div>
2023-03-01 14:15:29 +03:00
{{ else }}
{{ # unless this .post }}
<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>
{{ / unless }}
{{ / if }}
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">
2023-03-01 14:15:29 +03:00
<h3 class="gh-mention-title"> {{ or mention .sourceTitle mention .sourceSiteTitle mention .source }} </h3>
2023-02-20 20:27:21 +03:00
{{ # 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>
2023-02-23 18:38:01 +03:00
{{ # if this .mentionsInfinityModel }}
<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>
2023-02-20 20:27:21 +03:00
</div>
2023-02-23 18:38:01 +03:00
{{ / if }}
2023-01-18 19:42:36 +03:00
</section>
2023-01-17 15:16:18 +03:00
</section>