Views setted up
diff --git a/xos/core/xoslib/static/js/xosContentProvider.js b/xos/core/xoslib/static/js/xosContentProvider.js
index 261b47f..6bea384 100644
--- a/xos/core/xoslib/static/js/xosContentProvider.js
+++ b/xos/core/xoslib/static/js/xosContentProvider.js
@@ -20,6 +20,15 @@
.when('/contentProvider/:id', {
template: '<content-provider-detail></content-provider-detail>'
})
+ .when('/contentProvider/:id/cdn_prefix', {
+ templateUrl: '../../static/templates/contentProvider/cp_cdn_prefix.html'
+ })
+ .when('/contentProvider/:id/origin_server', {
+ template: 'Origin Server view'
+ })
+ .when('/contentProvider/:id/users', {
+ template: 'User View'
+ })
.otherwise('/');
})
.config(function($httpProvider) {
diff --git a/xos/core/xoslib/static/templates/contentProvider/cp_cdn_prefix.html b/xos/core/xoslib/static/templates/contentProvider/cp_cdn_prefix.html
new file mode 100644
index 0000000..557fe3f
--- /dev/null
+++ b/xos/core/xoslib/static/templates/contentProvider/cp_cdn_prefix.html
@@ -0,0 +1,17 @@
+<div class="row-fluid">
+ <div class="span8">
+ <h1>{$ vm.cp.humanReadableName $}</h1>
+ </div>
+ <div class="span4">
+ <a href="#/" class="btn btn-default">Back</a>
+ </div>
+</div>
+<hr>
+<div class="row-fluid">
+ <div class="span2">
+ <div ng-include="'../../static/templates/contentProvider/cp_side_nav.html'"></div>
+ </div>
+ <div class="span10">
+ <h2>CDN Prefix</h2>
+ </div>
+</div>
\ No newline at end of file
diff --git a/xos/core/xoslib/static/templates/contentProvider/cp_detail.html b/xos/core/xoslib/static/templates/contentProvider/cp_detail.html
index 608c547..0d5bf0a 100644
--- a/xos/core/xoslib/static/templates/contentProvider/cp_detail.html
+++ b/xos/core/xoslib/static/templates/contentProvider/cp_detail.html
@@ -9,20 +9,7 @@
<hr>
<div class="row-fluid">
<div class="span2">
- <ul class="nav nav-list">
- <li>
- <a class="btn btn-primary" href="#/contentProvider/{$ vm.cp.id $}">Details</a>
- </li>
- <li>
- <a class="btn btn-default" href="#/contentProvider/{$ vm.cp.id $}">Cdn Prexix</a>
- </li>
- <li>
- <a class="btn btn-default" href="#/contentProvider/{$ vm.cp.id $}">Origin Server</a>
- </li>
- <li>
- <a class="btn btn-default" href="#/contentProvider/{$ vm.cp.id $}">Users</a>
- </li>
- </ul>
+ <div ng-include="'../../static/templates/contentProvider/cp_side_nav.html'"></div>
</div>
<div class="span10">
<form ng-submit="vm.saveContentProvider(vm.cp)">
diff --git a/xos/core/xoslib/static/templates/contentProvider/cp_origin_server.html b/xos/core/xoslib/static/templates/contentProvider/cp_origin_server.html
new file mode 100644
index 0000000..e990466
--- /dev/null
+++ b/xos/core/xoslib/static/templates/contentProvider/cp_origin_server.html
@@ -0,0 +1,17 @@
+<div class="row-fluid">
+ <div class="span8">
+ <h1>{$ vm.cp.humanReadableName $}</h1>
+ </div>
+ <div class="span4">
+ <a href="#/" class="btn btn-default">Back</a>
+ </div>
+</div>
+<hr>
+<div class="row-fluid">
+ <div class="span2">
+ <div ng-include="'../../static/templates/contentProvider/cp_side_nav.html'"></div>
+ </div>
+ <div class="span10">
+ <h1>Origin Servers</h1>
+ </div>
+</div>
\ No newline at end of file
diff --git a/xos/core/xoslib/static/templates/contentProvider/cp_side_nav.html b/xos/core/xoslib/static/templates/contentProvider/cp_side_nav.html
new file mode 100644
index 0000000..16a3b51
--- /dev/null
+++ b/xos/core/xoslib/static/templates/contentProvider/cp_side_nav.html
@@ -0,0 +1,14 @@
+<ul class="nav nav-list">
+ <li>
+ <a class="btn btn-primary" href="#/contentProvider/{$ vm.cp.id $}">Details</a>
+ </li>
+ <li>
+ <a class="btn btn-default" href="#/contentProvider/{$ vm.cp.id $}/cdn_prefix">Cdn Prexix</a>
+ </li>
+ <li>
+ <a class="btn btn-default" href="#/contentProvider/{$ vm.cp.id $}/origin_server">Origin Server</a>
+ </li>
+ <li>
+ <a class="btn btn-default" href="#/contentProvider/{$ vm.cp.id $}/users">Users</a>
+ </li>
+</ul>
\ No newline at end of file
diff --git a/xos/core/xoslib/static/templates/contentProvider/cp_user.html b/xos/core/xoslib/static/templates/contentProvider/cp_user.html
new file mode 100644
index 0000000..5750892
--- /dev/null
+++ b/xos/core/xoslib/static/templates/contentProvider/cp_user.html
@@ -0,0 +1,17 @@
+<div class="row-fluid">
+ <div class="span8">
+ <h1>{$ vm.cp.humanReadableName $}</h1>
+ </div>
+ <div class="span4">
+ <a href="#/" class="btn btn-default">Back</a>
+ </div>
+</div>
+<hr>
+<div class="row-fluid">
+ <div class="span2">
+ <div ng-include="'../../static/templates/contentProvider/cp_side_nav.html'"></div>
+ </div>
+ <div class="span10">
+ <h1>Users</h1>
+ </div>
+</div>
\ No newline at end of file