mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
2453f6afbd
closes https://github.com/TryGhost/Ghost/issues/12461 Design changes: - added activity feed to member details page - rearranged Stripe info to display on the right - added toggle buttons for Stripe subscription and customer info - added box to display activity feed for received and opened emails Functionality changes: - added `queryRecord()` to member adapter so `queryRecord('member', {id: x})` will hit `/members/:id/?query` instead of `/members/?id=x&query` - updated member route to query member with `?include=email_recipients` - added `EmailRecipient` model for access to event timestamps and email relationship setup - added `<GhMemberActivityFeed>` component that accepts an `EmailRecipient` array and converts that into an activity list - added support for `@model=emailInstance` to the email preview modal - fixed a timing issue with email preview that could result in it showing blank content until the mobile/desktop toggle is used - fixed sometimes blank member location Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
9 lines
516 B
Handlebars
9 lines
516 B
Handlebars
<div class="gh-member-feed-row" ...attributes>
|
|
<span class="gh-member-feed-activity midgrey" data-tooltip={{@activity.tooltip}}>{{svg-jar @activity.icon}}</span>
|
|
{{#if @activity.action}}
|
|
<button type="button" class="gh-member-feed-title" {{on "click" @activity.action}}>{{@activity.message}}</button>
|
|
{{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> |