Commit 97a49ff2 authored by Efthymia Bika's avatar Efthymia Bika
Browse files

Change msg div to pre tag

parent 8fb9d081
...@@ -336,9 +336,12 @@ ...@@ -336,9 +336,12 @@
<div id="loader" class="hide text-center"> <div id="loader" class="hide text-center">
<i class="fa fa-spinner fa-pulse fa-2x gray-spin"></i> <i class="fa fa-spinner fa-pulse fa-2x gray-spin"></i>
</div> </div>
<div id="msg" class="small-10 columns"></div>
</div> </div>
</div> </div>
<div class="row">
<div class="small-1 columns"></div>
<pre id="msg" class="small-11 columns"></pre>
</div>
<script type="text/javascript"> <script type="text/javascript">
$(document).foundation(); $(document).foundation();
</script> </script>
......
...@@ -241,7 +241,7 @@ function run_duplicity(restore, force) { ...@@ -241,7 +241,7 @@ function run_duplicity(restore, force) {
function load_status() { function load_status() {
$('#backup_details').hide(); $('#backup_details').hide();
$("#loader").show(); $("#loader").show();
$("#status").html(""); $("#status_contents").html("");
function puts(error, stdout, stderr) { function puts(error, stdout, stderr) {
if(error) { if(error) {
...@@ -250,7 +250,7 @@ function load_status() { ...@@ -250,7 +250,7 @@ function load_status() {
} else { } else {
$("#msg").html(""); $("#msg").html("");
$("#msg").removeClass("panel"); $("#msg").removeClass("panel");
$("#status").html(stdout.replace(/(?:\r\n|\r|\n)/g, '<br />')); $("#status_contents").html(stdout);
} }
$("#loader").hide(); $("#loader").hide();
} }
......
...@@ -195,7 +195,6 @@ ...@@ -195,7 +195,6 @@
<div id="loader" class="hide text-center"> <div id="loader" class="hide text-center">
<i class="fa fa-spinner fa-pulse fa-2x gray-spin"></i> <i class="fa fa-spinner fa-pulse fa-2x gray-spin"></i>
</div> </div>
<div id="msg" class="small-10 columns"></div>
<div id="modal-confirm" class="reveal-modal medium" <div id="modal-confirm" class="reveal-modal medium"
data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog"> data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog">
<p id="modal-p">Destination already exists. Do you wish to overwrite?</p> <p id="modal-p">Destination already exists. Do you wish to overwrite?</p>
...@@ -210,6 +209,10 @@ ...@@ -210,6 +209,10 @@
<a class="close-reveal-modal" aria-label="Close">&#215;</a> <a class="close-reveal-modal" aria-label="Close">&#215;</a>
</div> </div>
</div> </div>
<div class="row">
<div class="small-1 columns"></div>
<pre id="msg" class="small-11 columns"></pre>
</div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$(document).foundation(); $(document).foundation();
......
...@@ -67,3 +67,7 @@ body .tabs { ...@@ -67,3 +67,7 @@ body .tabs {
body legend { body legend {
color: gray; color: gray;
} }
#msg {
word-break: break-word;
margin-right: 15px;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment