You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mt...@apache.org on 2015/07/28 22:14:50 UTC
[04/50] git commit: updated refs/heads/sf-plugins to bcf1c72
Initial 'Shared Volume' GUI plug-in
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/192e035e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/192e035e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/192e035e
Branch: refs/heads/sf-plugins
Commit: 192e035ebc3e2cfce209758d3905e00b9ed9c126
Parents: 2b4c2b0
Author: Mike Tutkowski <mi...@solidfire.com>
Authored: Mon Jul 6 13:55:08 2015 -0600
Committer: CloudStack <cloudstack@cloudstack-virtual-machine.(none)>
Committed: Tue Jul 28 13:42:40 2015 -0600
----------------------------------------------------------------------
ui/plugins/plugins.js | 3 ++-
ui/plugins/sfSharedVolume/config.js | 9 +++++++++
ui/plugins/sfSharedVolume/sfSharedVolume.js | 14 ++++++++++++++
3 files changed, 25 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/192e035e/ui/plugins/plugins.js
----------------------------------------------------------------------
diff --git a/ui/plugins/plugins.js b/ui/plugins/plugins.js
index 386ec06..6e5557f 100644
--- a/ui/plugins/plugins.js
+++ b/ui/plugins/plugins.js
@@ -16,6 +16,7 @@
// under the License.
(function($, cloudStack) {
cloudStack.plugins = [
- // 'testPlugin'
+ // 'testPlugin',
+ // 'sfSharedVolume'
];
}(jQuery, cloudStack));
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/192e035e/ui/plugins/sfSharedVolume/config.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/config.js b/ui/plugins/sfSharedVolume/config.js
new file mode 100644
index 0000000..3784be6
--- /dev/null
+++ b/ui/plugins/sfSharedVolume/config.js
@@ -0,0 +1,9 @@
+(function (cloudStack) {
+ cloudStack.plugins.sfSharedVolume.config = {
+ title: 'Shared Volume',
+ desc: 'Shared Volume',
+ externalLink: 'http://www.solidfire.com/',
+ authorName: 'Mike Tutkowski',
+ authorEmail: 'mike.tutkowski@solidfire.com'
+ };
+}(cloudStack));
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/192e035e/ui/plugins/sfSharedVolume/sfSharedVolume.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js b/ui/plugins/sfSharedVolume/sfSharedVolume.js
new file mode 100644
index 0000000..4c8e317
--- /dev/null
+++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js
@@ -0,0 +1,14 @@
+(function (cloudStack) {
+ cloudStack.plugins.sfSharedVolume = function(plugin) {
+ plugin.ui.addSection({
+ id: 'sfSharedVolume',
+ title: 'Shared Volume',
+ preFilter: function(args) {
+ return isAdmin();
+ },
+ show: function() {
+ return $('<div>').html('Content will go here');
+ }
+ });
+ };
+}(cloudStack));