Revision 40df7dfb
Added by Daniel Lobato Garcia about 11 years ago
- ID 40df7dfbfcde38f06d133fea97f0d30904155916
app/assets/javascripts/application.js | ||
---|---|---|
$(div).load(url + "?operatingsystem_id=" + os_id + "&hostgroup_id=" + hostgroup_id + "&environment_id=" + env_id+"&provisioning="+build,
|
||
function(response, status, xhr) {
|
||
if (status == "error") {
|
||
$(div).html("<div class='alert alert-warning'><a class='close' data-di smiss='alert'>×</a><p>Sorry but no templates were configured.</p></div>");
|
||
$(div).html("<div class='alert alert-warning'><a class='close' data-dismiss='alert'>×</a><p>_('Sorry but no templates were configured.')</p></div>");
|
||
}
|
||
});
|
||
}
|
||
... | ... | |
function foreman_url(path) {
|
||
return URL_PREFIX + path;
|
||
}
|
||
|
||
$(function() {
|
||
$('*[data-ajax-url]').each(function() {
|
||
var url = $(this).attr('data-ajax-url');
|
||
$(this).load(url, function(response, status, xhr) {
|
||
if (status == "error") {
|
||
$(this).closest(".tab-content").find("#spinner").html(_('Failed to fetch: ') + xhr.status + " " + xhr.statusText);
|
||
}
|
||
});
|
||
});
|
||
});
|
Also available in: Unified diff
fixes #426 expose BMC information in foreman UI
Signed-off-by: Ohad Levy <ohadlevy@gmail.com>
This patch also adds an abstracted power management class for both VM
and BM