diff --git a/env/sunstone/public/js/user-plugins/apptools.appenv-dashboard.js b/env/sunstone/public/js/user-plugins/apptools.appenv-dashboard.js index b8fa374a71..9d809b4f3a 100644 --- a/env/sunstone/public/js/user-plugins/apptools.appenv-dashboard.js +++ b/env/sunstone/public/js/user-plugins/apptools.appenv-dashboard.js @@ -13,22 +13,67 @@ // limitations under the License. // //--------------------------------------------------------------------------// +function updateSystemDashboard(what, json_info){ + var db = $('#appenv_dashboard_tab',main_tabs_context); + switch (what){ + case "environments": + var total_envs=json_info.length; + $('#appenv_total_environments',db).html(total_envs); + break; + }; +} + var appenv_dashboard_tmpl = '\ \ \ -\ +
\ +\ +\ + \ + \ + \ + \ + \ + \ +
\ +
\ +

' + tr("Summary of AppEnv resources") + '

\ +
\ +\ + \ + \ + \ + \ + \ +
Environments
\ +\ +
\ +
\ +
\ +
\ +

' + tr("Quickstart") + '

\ +
\ + \ +
\ +
\ +
\ +
\ \ \ \ diff --git a/env/sunstone/public/js/user-plugins/apptools.appenv.js b/env/sunstone/public/js/user-plugins/apptools.appenv.js index d8b03de205..509ac18b67 100644 --- a/env/sunstone/public/js/user-plugins/apptools.appenv.js +++ b/env/sunstone/public/js/user-plugins/apptools.appenv.js @@ -417,7 +417,7 @@ var appenv_info_panel = { } var appenvs_tab = { - title: "AppEnv", + title: "Environments", content: appenv_tab_content, buttons: appenv_buttons, tabClass: 'subTab', @@ -479,6 +479,7 @@ function updateAppEnvsView(request, appenvs_list){ updateView(appenv_list_array,dataTable_appenvs); //updateVResDashboard("images",images_list); + updateSystemDashboard('environments', appenv_list_array); } // Callback to update the information panel tabs and pop it up
\
\ -

' + tr("AppEnv - A tool to manage environments") + '

\ +

' + tr("AppEnv") + '

\
\ -\ -

appenv logoAppEnv performs the automatic installation and configuration of the software stack that constitutes an application environment. With AppEnv you can easily define software configurations for your VMs and share them with other users.

\ -

 

\ -

 

\ -

 

\ -

 

\ +

\ + appenv logo\ + AppEnv performs the automatic installation and configuration of the software stack that constitutes an application environment. With AppEnv you can easily define software configurations for your VMs and share them with other users.\ +

\ +

'+tr("You can find further information on the following links:")+'

\ + \
\
\