summaryrefslogtreecommitdiff
path: root/app/views/switchboards
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/switchboards')
-rw-r--r--app/views/switchboards/app.js8
-rw-r--r--app/views/switchboards/show-old.html.haml (renamed from app/views/switchboards/show.html.haml)0
-rw-r--r--app/views/switchboards/show.html.erb23
3 files changed, 31 insertions, 0 deletions
diff --git a/app/views/switchboards/app.js b/app/views/switchboards/app.js
new file mode 100644
index 0000000..a4aa100
--- /dev/null
+++ b/app/views/switchboards/app.js
@@ -0,0 +1,8 @@
+window.App = Ember.Application.create({
+ rootElement: '#xxxyyy',
+
+ ready: function() {
+ App.view.appendTo('#xxxyyy');
+ }
+});
+
diff --git a/app/views/switchboards/show.html.haml b/app/views/switchboards/show-old.html.haml
index a825806..a825806 100644
--- a/app/views/switchboards/show.html.haml
+++ b/app/views/switchboards/show-old.html.haml
diff --git a/app/views/switchboards/show.html.erb b/app/views/switchboards/show.html.erb
new file mode 100644
index 0000000..337d00c
--- /dev/null
+++ b/app/views/switchboards/show.html.erb
@@ -0,0 +1,23 @@
+<% content_for :title, "Switchboard #{@switchboard.name}" %>
+
+<div class='row'>
+ <div class='span12'>
+ <div id='container'>
+
+ </div>
+
+ <script type="text/x-handlebars">
+ <h1>{{appName}}</h1>
+
+ <h2>{{title}}</h2>
+ </script>
+
+
+
+ </div>
+</div>
+
+<script src="/js/libs/handlebars.js"></script>
+<script src="/js/libs/ember.js"></script>
+<script src="/js/libs/ember-data.js"></script>
+<script src="/js/app.js"></script>