mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
21f2a58a8a
refs https://github.com/TryGhost/Team/issues/559 refs https://github.com/TryGhost/Team/issues/1277 - switched modal implementation to the newer promise-modal style - added `<GhEmailPreviewLink>` component that renders a link that when clicked opens the modal - removes the need for templates/controllers to manually handle modal opening/closing and to pass actions down from parents - updated all places we were triggering an email preview modal to use `<GhEmailPreviewLink>`
9 lines
545 B
Handlebars
9 lines
545 B
Handlebars
<div class="gh-member-feed-row" ...attributes>
|
|
<span class="gh-member-feed-activity midgrey" data-tooltip={{@activity.tooltip}}>{{svg-jar @activity.icon class=@activity.iconClass}}</span>
|
|
{{#if @activity.email}}
|
|
<GhEmailPreviewLink @data={{@activity.email}} class="gh-member-feed-title">{{@activity.message}}</GhEmailPreviewLink>
|
|
{{else}}
|
|
<span class="gh-member-feed-title">{{@activity.message}}</span>
|
|
{{/if}}
|
|
<span class="gh-member-feed-date">{{moment-format @activity.timestamp "D MMM YYYY"}}</span>
|
|
</div> |