mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
fixed alignment of download standard out button in modals
This commit is contained in:
parent
f7b0da7be5
commit
9105612c6a
@ -366,8 +366,10 @@ export default
|
||||
html = "";
|
||||
if (params.standardOut) {
|
||||
html += '<a href="' + params.jobUrl + 'stdout?format=txt_download" class="btn btn-primary btn-xs DownloadStandardOut DownloadStandardOut--onModal" id="download-stdout-button" type="button" aw-tool-tip="Download standard out as a .txt file" data-placement="top" ng-show="status === \'cancelled\' || status === \'failed\' || status === \'error\' || status === \'successful\'"><i class="fa fa-download DownloadStandardOut-icon DownloadStandardOut-icon--withText"></i>Download</a>';
|
||||
html += "<pre class='DownloadStandardOut-pre' ng-non-bindable>" + val + "</pre>\n";
|
||||
} else {
|
||||
html += "<pre ng-non-bindable>" + val + "</pre>\n";
|
||||
}
|
||||
html += "<pre ng-non-bindable>" + val + "</pre>\n";
|
||||
$('#' + id).empty().html(html);
|
||||
};
|
||||
}])
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
.DownloadStandardOut--onModal {
|
||||
margin-bottom: 10px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.DownloadStandardOut-icon {
|
||||
@ -21,3 +22,7 @@
|
||||
.DownloadStandardOut-icon--withText {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.DownloadStandardOut-pre {
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div id="eventviewer-modal-dialog" title="Log View" style="display: none;">
|
||||
<div id="eventviewer-modal-dialog" style="display: none;">
|
||||
<ul id="eventview-tabs" class="nav nav-tabs">
|
||||
<li class="active"><a href="#status" id="status-link" data-toggle="tab" ng-click="toggleTab($event, 'status-link', 'eventview-tabs')">Event</a></li>
|
||||
<li><a href="#results" id="results-link" data-toggle="tab" ng-click="toggleTab($event, 'results-link', 'eventview-tabs')">Results</a></li>
|
||||
@ -31,4 +31,4 @@
|
||||
<div id="json-form-container"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,5 +1,4 @@
|
||||
|
||||
<div id="logviewer-modal-dialog" title="Log View" style="display: none;">
|
||||
<div id="eventviewer-modal-dialog" style="display: none;">
|
||||
<ul id="logview-tabs" class="nav nav-tabs">
|
||||
<li class="active"><a href="#status" id="status-link" data-toggle="tab" ng-click="toggleTab($event, 'status-link', 'logview-tabs')">Status</a></li>
|
||||
<li><a href="#stdout" id="stdout-link" data-toggle="tab" ng-click="toggleTab($event, 'stdout-link', 'logview-tabs')">Standard Out</a></li>
|
||||
@ -28,4 +27,4 @@
|
||||
<div id="source-container"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user