Skip to content
Snippets Groups Projects
Commit da62a369 authored by Mathis Neumann's avatar Mathis Neumann
Browse files

rename 'architectures' to 'deployments'

parent 309b6d7b
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ const Router = Ember.Router.extend({
Router.map(function() {
this.route('home', {path: '/'});
this.route('architectures', function() {
this.route('deployments', function() {
this.route('single', {path: '/:systemId'}, function() {
this.route('details', {path: '/:entityType/:entityId'}); // use model properties for automatic matching
});
......
File moved
......@@ -38,7 +38,7 @@ export default Ember.Route.extend({
/* I would love to not generate the url first, but there seem to be unknown (to me) assumptions about
* passing object parameters to transitionTo which break with the current path variables.
*/
const url = this.router.generate('architectures.single.details', {
const url = this.router.generate('deployments.single.details', {
systemId: this.get('session.systemId'),
entityType,
entityId
......
......@@ -16,8 +16,8 @@
{{#link-to 'home' tagName='li'}}
{{#link-to 'home'}}Startseite{{/link-to}}
{{/link-to}}
{{#link-to 'architectures' tagName='li'}}
{{#link-to 'architectures'}}Architekturen{{/link-to}}
{{#link-to 'deployments' tagName='li'}}
{{#link-to 'deployments'}}Deployments{{/link-to}}
{{/link-to}}
</ul>
</div><!--/.nav-collapse -->
......
File moved
......@@ -2,7 +2,7 @@
<ul>
{{#each model as |system| }}
<li>{{#link-to 'architectures.single' system.id}}{{system.name}}{{/link-to}}</li>
<li>{{#link-to 'deployments.single' system.id}}{{system.name}}{{/link-to}}</li>
{{/each}}
</ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment