Commit 6d694485 authored by Efthymia Bika's avatar Efthymia Bika

Show local dir in activity page

Also fix indentation
parent cf9e9400
......@@ -14,8 +14,8 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<script src="backup.js"></script>
<script type="text/javascript">
<script src="backup.js"></script>
<script type="text/javascript">
function check_gpg() {
exec("which gpg", function(error, stdout, stderr) {
......@@ -100,7 +100,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
.attr("href", "#")
.attr("id", "box_a_" + backup.name)
.attr("class", "left")
.attr("onclick", "go_to_backup('" + backup.cloud + "/" + backup.name + "')");
.attr("onclick", "go_to_backup('" +
backup.cloud + "/" + backup.name + "')");
li.append(a);
var a_del = $("<a><i class='fa fa-trash-o delete_icon'></i></a>")
......@@ -111,6 +112,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
});
li.append(a_del);
li.append("<br>");
var local_dir = $("<span>" + backup.local_dir + "</span>");
li.append(local_dir);
if(typeof backup.first_backup != 'undefined') {
li.append("<br>");
var first = new Date(backup.first_backup).toLocaleString();
......@@ -124,7 +129,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
if(typeof backup.last_status != 'undefined') {
li.append("<br>");
li.append("<br>");
var status_p = $("<span>Status : " + backup.last_status + "&nbsp;&nbsp;</span>");
var status_p = $("<span>Status : " +
backup.last_status + "&nbsp;&nbsp;</span>");
li.append(status_p);
var loader = $("<i></i>")
.attr("class", "fa fa-spinner fa-pulse");
......@@ -142,9 +148,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
render_backup_sets("");
}, 3000);
</script>
</script>
<div class="row">
<div class="row">
<div class="small-12 columns panel alert hide" id="gpg-alert">
<span>
<i class="fa fa-exclamation-circle"></i>
......@@ -156,8 +162,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
You must install gpg separately.
</span>
</div>
</div>
<div class="row">
</div>
<div class="row">
<div class="small-12 columns panel hide" id="cloud-alert">
<span>
<i class="fa fa-exclamation-circle"></i>
......@@ -166,8 +172,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
cloud configuration.</a>
</span>
</div>
</div>
<div class="row">
</div>
<div class="row">
<div class="small-12 columns panel hide" id="backup-alert">
<span>
<i class="fa fa-exclamation-circle"></i>
......@@ -176,12 +182,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
Create a new one.</a>
</span>
</div>
</div>
<div class="row">
</div>
<div class="row">
<div class="small-12 columns" id="backup-table">
</div>
</div>
<div id="delete-modal" class="reveal-modal medium"
</div>
<div id="delete-modal" class="reveal-modal medium"
data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog">
<p id="del-modal-p"></p>
<a id="del-modal-cancel" class="button radius small"
......@@ -193,8 +199,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
Delete
</a>
<a class="close-reveal-modal" aria-label="Close">&#215;</a>
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">
$(document).foundation();
</script>
</script>
......@@ -65,6 +65,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
min-height: 170px;
margin: 5px;
font-size: 14px;
word-break: break-all;
}
.selected-bar {
background: #2BA6CB;
......
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