\n";
for (action in list.actions) {
if (list.actions[action].mode == 'all' || list.actions[action].mode == options.mode) {
- html += "
";
+ if (list.basePaths && list.basePaths.indexOf(base) > -1) {
+ html += "
";
+ }
}
}
if (options.mode == 'select') {
@@ -227,7 +226,7 @@ angular.module('ListGenerator', ['GeneratorHelpers'])
else {
html += PaginateWidget({ set: list.name, iterator: list.iterator, mini: true });
}
-
+
return html;
}
diff --git a/lib/ui/static/lib/ansible/prompt-dialog.js b/lib/ui/static/lib/ansible/prompt-dialog.js
index d33f97bc31..bc90c1726d 100644
--- a/lib/ui/static/lib/ansible/prompt-dialog.js
+++ b/lib/ui/static/lib/ansible/prompt-dialog.js
@@ -23,7 +23,9 @@ angular.module('PromptDialog', [])
var scope = dialog.scope();
scope.promptHeader = params.hdr;
scope.promptBody = params.body;
- scope.promptBtnClass = (params.class == null || params.class == undefined) ? 'btn-danger' : params.class;
+ var cls = (params.class == null || params.class == undefined) ? 'btn-danger' : params.class;
+ $('#prompt-action-btn').addClass(cls); //Use jquery because django template engine conflicts with Angular's
+ // use of {{...}}
scope.id = params.id;
scope.url = params.url;
scope.promptAction = params.action;
diff --git a/lib/ui/static/lib/ansible/rest-services.js b/lib/ui/static/lib/ansible/rest-services.js
index d88686dd9c..2f03e6ca9b 100644
--- a/lib/ui/static/lib/ansible/rest-services.js
+++ b/lib/ui/static/lib/ansible/rest-services.js
@@ -25,7 +25,7 @@ angular.module('RestServices',['ngCookies','AuthService'])
this.url = this.url.replace(rgx,this.params[key]);
delete this.params[key];
}
- }
+ }
},
get: function(args) {
diff --git a/lib/ui/static/partials/credentials.html b/lib/ui/static/partials/credentials.html
new file mode 100644
index 0000000000..6c128b1372
--- /dev/null
+++ b/lib/ui/static/partials/credentials.html
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/lib/ui/static/partials/inventory.html b/lib/ui/static/partials/inventory.html
deleted file mode 100644
index 5d7c94f275..0000000000
--- a/lib/ui/static/partials/inventory.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
\ No newline at end of file
diff --git a/lib/ui/templates/ui/index.html b/lib/ui/templates/ui/index.html
index 766fa70a8f..abc513dbba 100644
--- a/lib/ui/templates/ui/index.html
+++ b/lib/ui/templates/ui/index.html
@@ -30,6 +30,7 @@
+
@@ -38,6 +39,7 @@
+
@@ -45,7 +47,7 @@
-
+
@@ -55,9 +57,12 @@
+
+
+
{% endif %}
@@ -114,7 +119,7 @@