diff --git a/htdocs/portal/assets/js/fsportal.js b/htdocs/portal/assets/js/fsportal.js
index f519e28cc7..c52f8f4f89 100644
--- a/htdocs/portal/assets/js/fsportal.js
+++ b/htdocs/portal/assets/js/fsportal.js
@@ -68,23 +68,33 @@ App.ChannelsRoute = Ember.Route.extend({
});
-App.ShowApplicationsRoute = Ember.Route.extend({
+App.ShowRegistrationsRoute = Ember.Route.extend({
setupController: function(controller) {
// Set the Controller's `title`
- controller.set('title', "ShowApplications");
- console.log("showApplications");
- App.applicationsController.load();
+ controller.set('title', "ShowRegistrations");
+ App.registrationsController.load();
+ }//,
+ // renderTemplate: function() {
+ // this.render('calls');
+ // }
+});
+
+App.ShowModulesRoute = Ember.Route.extend({
+ setupController: function(controller) {
+ // Set the Controller's `title`
+ App.showModulesController.load();
}//,
// renderTemplate: function() {
// this.render('calls');
// }
});
-App.ShowRegistrationsRoute = Ember.Route.extend({
+App.ShowApplicationsRoute = Ember.Route.extend({
setupController: function(controller) {
// Set the Controller's `title`
- controller.set('title', "ShowRegistrations");
- App.registrationsController.load();
+ controller.set('title', "ShowApplications");
+ console.log("showApplications");
+ App.applicationsController.load();
}//,
// renderTemplate: function() {
// this.render('calls');
@@ -131,6 +141,7 @@ App.Router.map(function(){
this.route("calls");
this.route("channels");
this.route("showRegistrations");
+ this.route("showModules");
this.route("showApplications");
this.route("showEndpoints");
this.route("showCodecs");
@@ -408,6 +419,24 @@ App.showAPIsController = Ember.ArrayController.create({
}
});
+App.showModulesController = Ember.ArrayController.create({
+ content: [],
+ init: function(){
+ },
+ load: function() {
+ var me = this;
+ $.getJSON("/txtapi/show?module%20as%20json", function(data){
+ me.set('total', data.row_count);
+ me.content.clear();
+ console.log(data);
+ if (data.row_count == 0) return;
+
+ me.pushObjects(data.rows);
+
+ });
+ }
+});
+
App.usersController = Ember.ArrayController.create({
content: [],
init: function(){
diff --git a/htdocs/portal/index.html b/htdocs/portal/index.html
index 5974beea4d..1519b77bdc 100644
--- a/htdocs/portal/index.html
+++ b/htdocs/portal/index.html
@@ -150,6 +150,28 @@
+
+