mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added full width to pages and posts with member attribution columns
refs https://github.com/TryGhost/Team/issues/1818
This commit is contained in:
parent
efc10b501e
commit
5008a5b948
4 changed files with 12 additions and 3 deletions
|
@ -33,7 +33,6 @@ export default class MembersRoute extends AdminRoute {
|
|||
return {
|
||||
titleToken: 'Members',
|
||||
mainClasses: ['gh-main-fullwidth']
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
import {inject as service} from '@ember/service';
|
||||
import PostsRoute from './posts';
|
||||
|
||||
export default class PagesRoute extends PostsRoute {
|
||||
@service feature;
|
||||
|
||||
modelName = 'page';
|
||||
|
||||
buildRouteInfoMetadata() {
|
||||
return {
|
||||
titleToken: 'Pages'
|
||||
titleToken: 'Pages',
|
||||
mainClasses: this.feature.get('memberAttribution') ? ['gh-main-fullwidth'] : null
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import {inject as service} from '@ember/service';
|
|||
export default class PostsRoute extends AuthenticatedRoute {
|
||||
@service infinity;
|
||||
@service router;
|
||||
@service feature;
|
||||
|
||||
queryParams = {
|
||||
type: {refreshModel: true},
|
||||
|
@ -114,7 +115,8 @@ export default class PostsRoute extends AuthenticatedRoute {
|
|||
|
||||
buildRouteInfoMetadata() {
|
||||
return {
|
||||
titleToken: 'Posts'
|
||||
titleToken: 'Posts',
|
||||
mainClasses: this.feature.get('memberAttribution') ? ['gh-main-fullwidth'] : null
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -31,6 +31,10 @@
|
|||
{{#if this.postsInfinityModel}}
|
||||
<li class="gh-list-row header">
|
||||
<div class="gh-list-header gh-posts-title-header">Title</div>
|
||||
{{#if this.feature.memberAttribution}}
|
||||
<div class="gh-list-header gh-posts-opens-header">Signups</div>
|
||||
<div class="gh-list-header gh-posts-opens-header">Conversions</div>
|
||||
{{/if}}
|
||||
<div class="gh-list-header gh-posts-status-header">Status</div>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
Loading…
Add table
Reference in a new issue