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 {
|
return {
|
||||||
titleToken: 'Members',
|
titleToken: 'Members',
|
||||||
mainClasses: ['gh-main-fullwidth']
|
mainClasses: ['gh-main-fullwidth']
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
|
import {inject as service} from '@ember/service';
|
||||||
import PostsRoute from './posts';
|
import PostsRoute from './posts';
|
||||||
|
|
||||||
export default class PagesRoute extends PostsRoute {
|
export default class PagesRoute extends PostsRoute {
|
||||||
|
@service feature;
|
||||||
|
|
||||||
modelName = 'page';
|
modelName = 'page';
|
||||||
|
|
||||||
buildRouteInfoMetadata() {
|
buildRouteInfoMetadata() {
|
||||||
return {
|
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 {
|
export default class PostsRoute extends AuthenticatedRoute {
|
||||||
@service infinity;
|
@service infinity;
|
||||||
@service router;
|
@service router;
|
||||||
|
@service feature;
|
||||||
|
|
||||||
queryParams = {
|
queryParams = {
|
||||||
type: {refreshModel: true},
|
type: {refreshModel: true},
|
||||||
|
@ -114,7 +115,8 @@ export default class PostsRoute extends AuthenticatedRoute {
|
||||||
|
|
||||||
buildRouteInfoMetadata() {
|
buildRouteInfoMetadata() {
|
||||||
return {
|
return {
|
||||||
titleToken: 'Posts'
|
titleToken: 'Posts',
|
||||||
|
mainClasses: this.feature.get('memberAttribution') ? ['gh-main-fullwidth'] : null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,10 @@
|
||||||
{{#if this.postsInfinityModel}}
|
{{#if this.postsInfinityModel}}
|
||||||
<li class="gh-list-row header">
|
<li class="gh-list-row header">
|
||||||
<div class="gh-list-header gh-posts-title-header">Title</div>
|
<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>
|
<div class="gh-list-header gh-posts-status-header">Status</div>
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue