From da62a369c3eb11a12b3b712bdb1628f3f87bf94a Mon Sep 17 00:00:00 2001
From: Mathis Neumann <mathis@simpletechs.net>
Date: Thu, 23 Jun 2016 18:26:24 +0200
Subject: [PATCH] rename 'architectures' to 'deployments'

---
 app/router.js                                            | 2 +-
 app/routes/{architectures => deployments}/index.js       | 0
 app/routes/{architectures => deployments}/single.js      | 2 +-
 .../{architectures => deployments}/single/details.js     | 0
 app/templates/application.hbs                            | 4 ++--
 app/templates/architectures/index.hbs                    | 9 ---------
 app/templates/{architectures.hbs => deployments.hbs}     | 0
 app/templates/deployments/index.hbs                      | 9 +++++++++
 app/templates/{architectures => deployments}/single.hbs  | 0
 .../{architectures => deployments}/single/details.hbs    | 0
 10 files changed, 13 insertions(+), 13 deletions(-)
 rename app/routes/{architectures => deployments}/index.js (100%)
 rename app/routes/{architectures => deployments}/single.js (95%)
 rename app/routes/{architectures => deployments}/single/details.js (100%)
 delete mode 100644 app/templates/architectures/index.hbs
 rename app/templates/{architectures.hbs => deployments.hbs} (100%)
 create mode 100644 app/templates/deployments/index.hbs
 rename app/templates/{architectures => deployments}/single.hbs (100%)
 rename app/templates/{architectures => deployments}/single/details.hbs (100%)

diff --git a/app/router.js b/app/router.js
index 211b132..2d1a97b 100644
--- a/app/router.js
+++ b/app/router.js
@@ -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
         });
diff --git a/app/routes/architectures/index.js b/app/routes/deployments/index.js
similarity index 100%
rename from app/routes/architectures/index.js
rename to app/routes/deployments/index.js
diff --git a/app/routes/architectures/single.js b/app/routes/deployments/single.js
similarity index 95%
rename from app/routes/architectures/single.js
rename to app/routes/deployments/single.js
index b89ac00..cd7c872 100644
--- a/app/routes/architectures/single.js
+++ b/app/routes/deployments/single.js
@@ -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
diff --git a/app/routes/architectures/single/details.js b/app/routes/deployments/single/details.js
similarity index 100%
rename from app/routes/architectures/single/details.js
rename to app/routes/deployments/single/details.js
diff --git a/app/templates/application.hbs b/app/templates/application.hbs
index b8ae549..f0b84fb 100644
--- a/app/templates/application.hbs
+++ b/app/templates/application.hbs
@@ -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 -->
diff --git a/app/templates/architectures/index.hbs b/app/templates/architectures/index.hbs
deleted file mode 100644
index dbc342d..0000000
--- a/app/templates/architectures/index.hbs
+++ /dev/null
@@ -1,9 +0,0 @@
-{{model.length}}
-
-<ul>
-{{#each model as |system| }}
-    <li>{{#link-to 'architectures.single' system.id}}{{system.name}}{{/link-to}}</li>
-{{/each}}
-</ul>
-
-{{outlet}}
\ No newline at end of file
diff --git a/app/templates/architectures.hbs b/app/templates/deployments.hbs
similarity index 100%
rename from app/templates/architectures.hbs
rename to app/templates/deployments.hbs
diff --git a/app/templates/deployments/index.hbs b/app/templates/deployments/index.hbs
new file mode 100644
index 0000000..9cfa810
--- /dev/null
+++ b/app/templates/deployments/index.hbs
@@ -0,0 +1,9 @@
+{{model.length}}
+
+<ul>
+{{#each model as |system| }}
+    <li>{{#link-to 'deployments.single' system.id}}{{system.name}}{{/link-to}}</li>
+{{/each}}
+</ul>
+
+{{outlet}}
\ No newline at end of file
diff --git a/app/templates/architectures/single.hbs b/app/templates/deployments/single.hbs
similarity index 100%
rename from app/templates/architectures/single.hbs
rename to app/templates/deployments/single.hbs
diff --git a/app/templates/architectures/single/details.hbs b/app/templates/deployments/single/details.hbs
similarity index 100%
rename from app/templates/architectures/single/details.hbs
rename to app/templates/deployments/single/details.hbs
-- 
GitLab