From 3f7b717c0fac21b89e1f8c68d105f71b738baacf Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Fri, 3 Feb 2023 11:17:56 +0000 Subject: [PATCH] Added logic to display target post titles refs https://github.com/TryGhost/Team/issues/2481 --- ghost/admin/app/components/dashboard/charts/recents.hbs | 6 +++++- ghost/admin/app/templates/mentions.hbs | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/components/dashboard/charts/recents.hbs b/ghost/admin/app/components/dashboard/charts/recents.hbs index a1c75067f0..cb6281385d 100644 --- a/ghost/admin/app/components/dashboard/charts/recents.hbs +++ b/ghost/admin/app/components/dashboard/charts/recents.hbs @@ -157,7 +157,11 @@
- {{mention.target}} + {{#if mention.resource}} + {{mention.resource.name}} + {{else}} + {{mention.target}} + {{/if}}
diff --git a/ghost/admin/app/templates/mentions.hbs b/ghost/admin/app/templates/mentions.hbs index 77347c27c1..838ea07db2 100644 --- a/ghost/admin/app/templates/mentions.hbs +++ b/ghost/admin/app/templates/mentions.hbs @@ -9,9 +9,8 @@ {{#if this.mentionsList}} {{#each this.mentionsList as |mention|}}
- {{!-- TODO: show the title of your post instead of a link --}} {{!-- TODO: link to the post analytics page of your post --}} -

Your post {{mention.target}} was mentioned in:

+

Your {{if (eq mention.resource.type "post") "post" "page"}} {{if mention.resource mention.resource.name mention.target}} was mentioned in:

{{if mention.sourceTitle mention.sourceTitle mention.target}}