diff --git a/src/sunstone/public/Gruntfile.js b/src/sunstone/public/Gruntfile.js
index a80b4db7be..8f201d5d91 100644
--- a/src/sunstone/public/Gruntfile.js
+++ b/src/sunstone/public/Gruntfile.js
@@ -72,6 +72,7 @@ module.exports = function(grunt) {
modules: [
{
name: 'main',
+ excludeShallow: ['addons'],
include: ['almond']
},
{
diff --git a/src/sunstone/public/addons/README b/src/sunstone/public/addons/README
new file mode 100644
index 0000000000..50a77182e6
--- /dev/null
+++ b/src/sunstone/public/addons/README
@@ -0,0 +1,3 @@
+This directory emulates "app" to maintain consistency with Sunstone.
+
+In the process of minimizing, this directory is not compiled to add addons dynamically to production environments.
diff --git a/src/sunstone/public/addons/opennebula/README b/src/sunstone/public/addons/opennebula/README
new file mode 100644
index 0000000000..1d025ad371
--- /dev/null
+++ b/src/sunstone/public/addons/opennebula/README
@@ -0,0 +1,3 @@
+This dir emulates 'app/opennebula'.
+
+From here the ajax requests will be made to the OpenNebula driver.
\ No newline at end of file
diff --git a/src/sunstone/public/addons/tabs/README b/src/sunstone/public/addons/tabs/README
new file mode 100644
index 0000000000..444abebc4b
--- /dev/null
+++ b/src/sunstone/public/addons/tabs/README
@@ -0,0 +1,3 @@
+This dir emulates 'app/tabs'.
+
+The whole hierarchy is the same as in the Sunstone tabs.
\ No newline at end of file
diff --git a/src/sunstone/public/app/addons.js b/src/sunstone/public/app/addons.js
new file mode 100644
index 0000000000..e1ee9243ca
--- /dev/null
+++ b/src/sunstone/public/app/addons.js
@@ -0,0 +1,13 @@
+siteMap = {
+ addons: [
+
+ ]
+};
+
+var path = "../addons/tabs/";
+var deps = [];
+siteMap.addons.forEach(function (addon) {
+ deps.push(path + addon);
+});
+
+require(deps, function (e){});
diff --git a/src/sunstone/public/app/main.js b/src/sunstone/public/app/main.js
index 8cda989856..23e97821e3 100644
--- a/src/sunstone/public/app/main.js
+++ b/src/sunstone/public/app/main.js
@@ -19,6 +19,9 @@ require.config({
/* Almond */
'almond': '../bower_components/almond/almond',
+ /* Addons */
+ 'addons': './addons',
+
/* jQuery */
'jquery': '../bower_components/jquery/dist/jquery',
'jquery-ui': '../bower_components/jquery-ui/jquery-ui',
@@ -357,7 +360,9 @@ require.config({
deps: [
'spice-spiceconn'
]
- }
+ },
+
+ 'addons': {}
}
});
diff --git a/src/sunstone/views/index.erb b/src/sunstone/views/index.erb
index 5e4fdba53f..ec606857d2 100644
--- a/src/sunstone/views/index.erb
+++ b/src/sunstone/views/index.erb
@@ -106,7 +106,10 @@
<% if $conf[:env] == 'dev' %>
<% else %>
-
+
+
<% end %>