Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions app/components/organization-settings-menu.js

This file was deleted.

13 changes: 0 additions & 13 deletions app/components/project-settings-menu.js

This file was deleted.

6 changes: 1 addition & 5 deletions app/styles/_settings.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
.settings-menu {
@include span-columns(2.5);
}

.settings {
@include span-columns(9.5);
@include span-columns(12);
}

.settings-main {
Expand Down
11 changes: 0 additions & 11 deletions app/templates/components/organization-settings-menu.hbs

This file was deleted.

1 change: 0 additions & 1 deletion app/templates/components/organization-settings.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{{organization-header organization=organization}}
{{organization-menu organization=organization membership=membership}}
{{organization-settings-menu organization=organization}}
5 changes: 4 additions & 1 deletion app/templates/components/project-menu.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
{{#link-to 'project.settings.contributors' project}}Contributors {{#if project.hasPendingMembers}}<span class="info"><strong>{{project.pendingMembersCount}}</strong> pending</span>{{/if}}{{/link-to}}
</li>
<li>
{{link-to 'Donations' 'project.settings.donations' project}}
{{link-to 'Donations' 'project.settings.donations.goals' project}}
</li>
<li>
{{link-to 'Payments' 'project.settings.donations.payments' project}}
</li>
<li>
{{link-to 'Settings' 'project.settings.profile' project}}
Expand Down
18 changes: 0 additions & 18 deletions app/templates/components/project-settings-menu.hbs

This file was deleted.

3 changes: 1 addition & 2 deletions app/templates/organizations/slugged-route/settings.hbs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{{organization-settings-menu organization=model}}
{{outlet}}
{{outlet}}
1 change: 0 additions & 1 deletion app/templates/project/settings.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

{{project-details project=model}}
{{project-menu project=model}}
{{project-settings-menu project=model}}
<div class="settings">
{{outlet}}
</div>
62 changes: 0 additions & 62 deletions tests/integration/components/organization-settings-menu-test.js

This file was deleted.

3 changes: 1 addition & 2 deletions tests/integration/components/organization-settings-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ moduleForComponent('organization-settings', 'Integration | Component | organizat
});

test('it renders properly', function(assert) {
assert.expect(3);
assert.expect(2);

stubService(this, 'store');
stubService(this, 'session');
Expand All @@ -17,5 +17,4 @@ test('it renders properly', function(assert) {

assert.equal(this.$('.organization-header').length, 1, 'The header renders');
assert.equal(this.$('.organization-menu').length, 1, 'The menu renders');
assert.equal(this.$('.organization-settings-menu').length, 1, 'The settings menu renders');
});
5 changes: 3 additions & 2 deletions tests/integration/components/project-menu-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,20 @@ test('when authenticated, and user cannot manage organization, it renders proper
});

test('when authenticated, and user can manage organization, it renders properly', function(assert) {
assert.expect(6);
assert.expect(7);

stubService(this, 'session', { isAuthenticated: true });
this.register('ability:organization', Ability.extend({ canManage: true }));

this.render(hbs`{{project-menu}}`);

assert.equal(this.$('.project-menu li a').length, 5, 'The correct number of links render');
assert.equal(this.$('.project-menu li a').length, 6, 'The correct number of links render');
assert.equal(this.$('.project-menu li a:contains("About")').length, 1, 'The about link is rendered');
assert.equal(this.$('.project-menu li a:contains("Tasks")').length, 1, 'The tasks link is rendered');
assert.equal(this.$('.project-menu li a:contains("Contributors")').length, 1, 'The contributors link is rendered');
assert.equal(this.$('.project-menu li a:contains("Settings")').length, 1, 'The settings link is rendered');
assert.equal(this.$('.project-menu li a:contains("Donations")').length, 1, 'The donations link is rendered');
assert.equal(this.$('.project-menu li a:contains("Payments")').length, 1, 'The payments link is rendered');
});

test('when authenticated, and user can manage organization, and project has pending members', function(assert) {
Expand Down
60 changes: 0 additions & 60 deletions tests/integration/components/project-settings-menu-test.js

This file was deleted.