mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Going for a simpler design for events
- The extra column made sense logically but was causing too many issues - Going to try the single setence again but change visual style to be easier to parse - Making sure this works around the feature flag refs https://github.com/TryGhost/Team/issues/1851
This commit is contained in:
parent
232882daa2
commit
86a0f103e9
@ -66,11 +66,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="gh-dashboard-recents-activity gh-dashboard-list {{if (feature "memberAttribution") 'feature-memberAttribution'}}" data-test-dashboard-member-activity>
|
<div class="gh-dashboard-recents-activity gh-dashboard-list" data-test-dashboard-member-activity>
|
||||||
<div class="gh-dashboard-list-header">
|
<div class="gh-dashboard-list-header">
|
||||||
<div class="gh-dashboard-list-title">Member</div>
|
<div class="gh-dashboard-list-title">Member</div>
|
||||||
<div class="gh-dashboard-list-title">Event</div>
|
<div class="gh-dashboard-list-title">Event</div>
|
||||||
{{#if (feature "memberAttribution")}}<div class="gh-dashboard-list-title">Attribution</div>{{/if}}
|
|
||||||
<div class="gh-dashboard-list-title">Time</div>
|
<div class="gh-dashboard-list-title">Time</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="gh-dashboard-list-body">
|
<div class="gh-dashboard-list-body">
|
||||||
@ -98,26 +97,20 @@
|
|||||||
<LinkTo class="gh-dashboard-list-text" @route="member" @model="{{parsedEvent.memberId}}" data-test-dashboard-member-activity-item>{{parsedEvent.subject}}</LinkTo>
|
<LinkTo class="gh-dashboard-list-text" @route="member" @model="{{parsedEvent.memberId}}" data-test-dashboard-member-activity-item>{{parsedEvent.subject}}</LinkTo>
|
||||||
</div>
|
</div>
|
||||||
<div class="gh-dashboard-list-item-sub">
|
<div class="gh-dashboard-list-item-sub">
|
||||||
{{svg-jar parsedEvent.icon}}
|
{{svg-jar parsedEvent.icon }}
|
||||||
<span class="gh-dashboard-list-subtext">
|
<span class="gh-dashboard-list-subtext">
|
||||||
{{capitalize-first-letter parsedEvent.action}}
|
<span class="gh-members-activity-description {{if (feature "memberAttribution") 'feature-memberAttribution'}}">
|
||||||
{{#if parsedEvent.url}}
|
<span class="gh-members-activity-event-text">{{capitalize-first-letter parsedEvent.action}}</span>
|
||||||
<a class="ghost-members-activity-object-link {{if (feature "memberAttribution") 'hidden'}}" href="{{parsedEvent.url}}" target="_blank" rel="noopener noreferrer">{{parsedEvent.object}}</a>
|
{{#if parsedEvent.info}}
|
||||||
{{/if}}
|
<span class="highlight">{{parsedEvent.info}}</span>
|
||||||
{{#if parsedEvent.info}}
|
{{/if}}
|
||||||
<span class="highlight">{{parsedEvent.info}}</span>
|
{{#if parsedEvent.url}}
|
||||||
{{/if}}
|
<span class="gh-members-activity-event-join">{{parsedEvent.join}}</span>
|
||||||
|
<a class="ghost-members-activity-object-link" href="{{parsedEvent.url}}" target="_blank" rel="noopener noreferrer">{{parsedEvent.object}}</a>
|
||||||
|
{{/if}}
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{#if (feature "memberAttribution")}}
|
|
||||||
<div class="gh-dashboard-list-item-sub">
|
|
||||||
{{#if parsedEvent.url}}
|
|
||||||
<a class="ghost-members-activity-object-link" href="{{parsedEvent.url}}" target="_blank" rel="noopener noreferrer">{{parsedEvent.object}}</a>
|
|
||||||
{{else}}
|
|
||||||
<span class="gh-list-nodata">—</span>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
<div class="gh-dashboard-list-item-sub gh-dashboard-list-item-date">
|
<div class="gh-dashboard-list-item-sub gh-dashboard-list-item-date">
|
||||||
<span class="gh-dashboard-list-subtext">{{moment-from-now parsedEvent.timestamp}}</span>
|
<span class="gh-dashboard-list-subtext">{{moment-from-now parsedEvent.timestamp}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
{{#if (and @member.attribution @member.attribution.url @member.attribution.title) }}
|
{{#if (and @member.attribution @member.attribution.url @member.attribution.title) }}
|
||||||
<p>
|
<p>
|
||||||
{{svg-jar "satellite"}}
|
{{svg-jar "satellite"}}
|
||||||
Signed up to <a href="{{@member.attribution.url}}" target="_blank" rel="noopener noreferrer">{{ @member.attribution.title }}</a>
|
Signed up on <a href="{{@member.attribution.url}}" target="_blank" rel="noopener noreferrer">{{ @member.attribution.title }}</a>
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<p class="gh-member-last-seen">
|
<p class="gh-member-last-seen">
|
||||||
|
@ -24,16 +24,18 @@
|
|||||||
<div class="gh-member-feed-detail">
|
<div class="gh-member-feed-detail">
|
||||||
<div class="gh-member-feed-event">
|
<div class="gh-member-feed-event">
|
||||||
<span class="gh-member-feed-event-inner">
|
<span class="gh-member-feed-event-inner">
|
||||||
<span class="gh-members-activity-description">
|
<span class="gh-members-activity-description {{if (feature "memberAttribution") 'feature-memberAttribution'}}">
|
||||||
{{capitalize-first-letter event.action}}
|
<span class="gh-members-activity-event-text">{{capitalize-first-letter event.action}}</span>
|
||||||
|
{{#if event.info}}
|
||||||
|
<span class="highlight">{{event.info}}</span>
|
||||||
|
{{/if}}
|
||||||
{{#if event.url}}
|
{{#if event.url}}
|
||||||
{{event.join}}
|
<span class="gh-members-activity-event-join">{{event.join}}</span>
|
||||||
<a class="ghost-members-activity-object-link" href="{{event.url}}" target="_blank" rel="noopener noreferrer">{{event.object}}</a>
|
<a class="ghost-members-activity-object-link" href="{{event.url}}" target="_blank" rel="noopener noreferrer">{{event.object}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if event.email}}
|
{{#if event.email}}
|
||||||
<GhEmailPreviewLink @data={{event.email}} />
|
<GhEmailPreviewLink @data={{event.email}} />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="highlight">{{event.info}}</span>
|
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
<div class="gh-members-activity-container">
|
<div class="gh-members-activity-container">
|
||||||
<div class="gh-members-activity-icon">{{svg-jar event.icon}}</div>
|
<div class="gh-members-activity-icon">{{svg-jar event.icon}}</div>
|
||||||
<div class="gh-members-activity-event">
|
<div class="gh-members-activity-event">
|
||||||
<span class="gh-members-activity-description">
|
<span class="gh-members-activity-description {{if (feature "memberAttribution") 'feature-memberAttribution'}}">
|
||||||
{{capitalize-first-letter event.action}}
|
<span class="gh-members-activity-event-text">{{capitalize-first-letter event.action}}</span>
|
||||||
{{#if (and event.url (not (feature "memberAttribution")))}}
|
{{#if event.url}}
|
||||||
{{event.join}}
|
<span class="gh-members-activity-event-join">{{event.join}}</span>
|
||||||
<a class="ghost-members-activity-object-link" href="{{event.url}}" target="_blank" rel="noopener noreferrer">{{event.object}}</a>
|
<a class="ghost-members-activity-object-link" href="{{event.url}}" target="_blank" rel="noopener noreferrer">{{event.object}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if event.email}}
|
{{#if event.email}}
|
||||||
@ -35,17 +35,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{#if (feature "memberAttribution")}}
|
|
||||||
<div class="gh-list-data gh-list-data-attribution">
|
|
||||||
{{#if event.url}}
|
|
||||||
<a class="ghost-members-activity-object-link" href="{{event.url}}" target="_blank" rel="noopener noreferrer">{{event.object}}</a>
|
|
||||||
{{else if event.email}}
|
|
||||||
<GhEmailPreviewLink @data={{event.email}} />
|
|
||||||
{{else}}
|
|
||||||
<span class="gh-list-nodata">—</span>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
<div class="gh-list-data gh-list-data-date">{{moment-format event.timestamp "DD MMM YYYY HH:mm"}}</div>
|
<div class="gh-list-data gh-list-data-date">{{moment-format event.timestamp "DD MMM YYYY HH:mm"}}</div>
|
||||||
</tr>
|
</tr>
|
||||||
{{/let}}
|
{{/let}}
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
<th>Member</th>
|
<th>Member</th>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
<th>Event</th>
|
<th>Event</th>
|
||||||
{{#if (feature "memberAttribution")}}
|
|
||||||
<th>Attribution</th>
|
|
||||||
{{/if}}
|
|
||||||
<th>Time</th>
|
<th>Time</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -713,11 +713,6 @@ Dashboard List */
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-dashboard-list-subtext a {
|
|
||||||
font-weight: 600;
|
|
||||||
color: var(--darkgrey);
|
|
||||||
}
|
|
||||||
|
|
||||||
.gh-dashboard-list-item svg {
|
.gh-dashboard-list-item svg {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
min-width: 24px;
|
min-width: 24px;
|
||||||
|
@ -153,11 +153,37 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-members-activity-description.feature-memberAttribution {
|
||||||
|
color: var(--darkgrey);
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-members-activity-description.feature-memberAttribution a {
|
||||||
|
font-weight: 400;
|
||||||
|
color: var(--midgrey) !important;
|
||||||
|
text-decoration: underline;
|
||||||
|
text-decoration-color: var(--midlightgrey);
|
||||||
|
transition: all 150ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-members-activity-description.feature-memberAttribution a:hover {
|
||||||
|
color: var(--middarkgrey) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.gh-members-activity-description a {
|
.gh-members-activity-description a {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--darkgrey);
|
color: var(--darkgrey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-members-activity-event-join {
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--middarkgrey);
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-memberAttribution .gh-members-activity-event-join {
|
||||||
|
font-weight: 400;
|
||||||
|
color: var(--midgrey);
|
||||||
|
}
|
||||||
|
|
||||||
.gh-members-activity-icon {
|
.gh-members-activity-icon {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
min-width: 24px;
|
min-width: 24px;
|
||||||
|
@ -1186,12 +1186,6 @@ textarea.gh-member-details-textarea {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-member-settings .gh-members-activity-description {
|
|
||||||
font-weight: 500;
|
|
||||||
font-size: 1.4rem;
|
|
||||||
color: var(--middarkgrey);
|
|
||||||
}
|
|
||||||
|
|
||||||
.gh-member-feed-time {
|
.gh-member-feed-time {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
|
Loading…
Reference in New Issue
Block a user