appenv: Improve appenv-dashboard

This commit is contained in:
Daniel Molina committed 2012-09-21 16:39:36 +02:00
1 parent 11d8c06f0a
commit 2aa0ac9057
2 files changed
+55 -9

No files matched your search

@@ -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 = '\
<table class="dashboard_table" id="appenv_dashboard">\
<tr>\
<td style="width:100%">\
<td style="width:50%">\
<table id="system_information_table" style="width:100%">\
<tr>\
<td>\
<div class="panel">\
<h3>' + tr("Summary of AppEnv resources") + '</h3>\
<div class="panel_info">\
\
<table class="info_table">\
<tr>\
<td class="key_td">Environments</td>\
<td class="value_td"><span id="appenv_total_environments"></span></td>\
</tr>\
</table>\
\
</div>\
</div>\
</td>\
</tr>\
<tr>\
<td>\
<div class="panel">\
<h3>' + tr("Quickstart") + '</h3>\
<div class="panel_info dashboard_p">\
<ul>\
<li><a class="action_button" href="#appenvs_tab" value="AppEnv.create_dialog">Create a new Environment</a></li>\
</ul>\
</div>\
</div>\
</td>\
</tr>\
</table>\
</td>\
<td style="width:50%">\
<table id="table_right" style="width:100%">\
<tr>\
<td>\
<div class="panel">\
<h3>' + tr("AppEnv - A tool to manage environments") + '</h3>\
<h3>' + tr("AppEnv") + '</h3>\
<div class="panel_info">\
\
<p class="dashboard_p" style="margin-top: 10px"><img src="images/appenv_icon.png" height="80px" style="float:right;margin:15px 63px 15px 15px;" alt="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.</p>\
<p class="dashboard_p">&nbsp;</p>\
<p class="dashboard_p">&nbsp;</p>\
<p class="dashboard_p">&nbsp;</p>\
<p class="dashboard_p">&nbsp;</p>\
<p>\
<img src="images/appenv_icon.png" height="80px" style="float:right;margin:0px 15px 15px 15px;" alt="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.\
</p>\
<p>'+tr("You can find further information on the following links:")+'</p>\
<ul>\
<li><a href="http://doc.opennebula.pro/doku.php?id=appenv" target="_blank">AppEnv Documentation</a></li>\
</ul>\
</div>\
</div>\
</td>\
+2 -1
View File
@@ -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