You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2014/12/09 09:37:53 UTC
[8/8] stratos git commit: Application topology view logic initialized
Application topology view logic initialized
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/f9fe1731
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/f9fe1731
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/f9fe1731
Branch: refs/heads/4.1.0-test
Commit: f9fe1731b9be45ebe2b65e1deb51bf4e8350e12d
Parents: 23342d2
Author: Dakshika Jayathilaka <si...@gmail.com>
Authored: Tue Dec 9 11:23:18 2014 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Tue Dec 9 14:09:31 2014 +0530
----------------------------------------------------------------------
.../theme0/renderers/applications_form.js | 180 +++++++++++++------
1 file changed, 124 insertions(+), 56 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/f9fe1731/components/org.apache.stratos.manager.console/console/themes/theme0/renderers/applications_form.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/renderers/applications_form.js b/components/org.apache.stratos.manager.console/console/themes/theme0/renderers/applications_form.js
index 6488a6e..fd23107 100644
--- a/components/org.apache.stratos.manager.console/console/themes/theme0/renderers/applications_form.js
+++ b/components/org.apache.stratos.manager.console/console/themes/theme0/renderers/applications_form.js
@@ -21,70 +21,138 @@
var render = function (theme, data, meta, require) {
if(data.error.length === 0 ){
- theme('index', {
- page_meta: [
- {
- partial: 'index_title',
- context: {
- page_title: 'Apache Stratos - Application Managment',
- page_description: 'Apache Stratos - Application Managment'
+
+ if(data.applicationView == true){
+ theme('index', {
+ page_meta: [
+ {
+ partial: 'index_title',
+ context: {
+ page_title: 'Apache Stratos - Application Managment',
+ page_description: 'Apache Stratos - Application Managment'
+ }
}
- }
- ],
- header:[
- {
- partial: 'index_header',
- context:{
+ ],
+ header:[
+ {
+ partial: 'index_header',
+ context:{
+ }
}
- }
- ],
- sub_header:[
- {
- partial:'index_sub_header',
- context:{
- breadcrumbPathLevelOne:data.breadcrumbPathLevelOne,
- breadcrumbPathLevelTwo:data.breadcrumbPathLevelTwo
+ ],
+ sub_header:[
+ {
+ partial:'index_sub_header',
+ context:{
+ breadcrumbPathLevelOne:data.breadcrumbPathLevelOne,
+ breadcrumbPathLevelTwo:data.breadcrumbPathLevelTwo
+ }
}
- }
- ],
- left_menu:[
- {
- partial:'index_left_menu',
- context:{
- left_menu:data.left_menu
- }
- }
- ],
- right_menu_help:[
- {
- partial:'index_right_menu_help',
- context:{
+ ],
+ left_menu:[
+ {
+ partial:'index_left_menu',
+ context:{
+ left_menu:data.left_menu
+ }
+ }
+ ],
+ right_menu_help:[
+ {
+ partial:'index_right_menu_help',
+ context:{
+ }
}
- }
- ],
- content: [
- {
- partial:'applications_form',
- context:{
- formContext: data.breadcrumbPathLevelTwo,
- form_action: data.form_action,
- formHtml: data.formHtml,
- formData: data.formData,
- formDataRaw: data.formDataRaw,
- formDataEdit: data.formDataEdit,
- isForm: data.isForm,
- isEdit:data.isEdit,
- formTitle: data.formTitle,
- isForm: data.isForm,
- content_body: {sections:
- data.list_data
+ ],
+ content: [
+ {
+ partial:'applications_topology',
+ context:{
+ formContext: data.breadcrumbPathLevelTwo,
+ appName: data.appName,
+ topology_data: data.topology_data,
+ form_action: data.form_action,
+ formHtml: data.formHtml,
+ formData: data.formData,
+ formDataRaw: data.formDataRaw,
+ formDataEdit: data.formDataEdit,
+ isForm: data.isForm,
+ isEdit:data.isEdit,
+ formTitle: data.formTitle,
+ content_body: {sections:
+ data.list_data
+ }
}
}
- }
- ]
- });
+ ]
+ });
+ }else{
+ theme('index', {
+ page_meta: [
+ {
+ partial: 'index_title',
+ context: {
+ page_title: 'Apache Stratos - Application Managment',
+ page_description: 'Apache Stratos - Application Managment'
+ }
+ }
+ ],
+ header:[
+ {
+ partial: 'index_header',
+ context:{
+ }
+ }
+ ],
+ sub_header:[
+ {
+ partial:'index_sub_header',
+ context:{
+ breadcrumbPathLevelOne:data.breadcrumbPathLevelOne,
+ breadcrumbPathLevelTwo:data.breadcrumbPathLevelTwo
+ }
+ }
+ ],
+ left_menu:[
+ {
+ partial:'index_left_menu',
+ context:{
+ left_menu:data.left_menu
+ }
+ }
+ ],
+ right_menu_help:[
+ {
+ partial:'index_right_menu_help',
+ context:{
+
+ }
+ }
+ ],
+ content: [
+ {
+ partial:'applications_form',
+ context:{
+ formContext: data.breadcrumbPathLevelTwo,
+ form_action: data.form_action,
+ formHtml: data.formHtml,
+ formData: data.formData,
+ formDataRaw: data.formDataRaw,
+ formDataEdit: data.formDataEdit,
+ isForm: data.isForm,
+ isEdit:data.isEdit,
+ formTitle: data.formTitle,
+ content_body: {sections:
+ data.list_data
+ }
+ }
+ }
+
+ ]
+ });
+ }
}else{