Skip to content

Commit

Permalink
Display backup job stored files
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Apr 29, 2016
1 parent 95b9c8e commit 0b2e9c7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion module/Client/view/client/client/details.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ $(document).ready(function() {
{ "data": "fileset" },
{ "data": "level" },
{ "data": "jobfiles" },
{ "data": "jobbytes", "type": "file-size" }
{ "data": "jobbytes", "type": "file-size" },
{ "data": null }
],
"paging": true,
"ordering": true,
Expand All @@ -184,6 +185,12 @@ $(document).ready(function() {
"render": function(data, type, full, meta) {
return formatBytes(data);
}
},
{
"targets": 6,
"render": function(data, type, full, meta) {
return '<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="<?php echo $this->basePath(); ?>/restore/?type=client&mergefilesets=1&mergejobs=1&client='+data.client+'&jobid='+data.jobid+'" title="Show Files" id="btn-1"><span class="glyphicon glyphicon-folder-open"></span></a>';
}
}
]
} );
Expand All @@ -192,6 +199,10 @@ $(document).ready(function() {
$('[data-toggle="tooltip"]').tooltip();
} );

$('#tab-backups tbody').on('mouseover', '#btn-1', function () {
$('[data-toggle="tooltip"]').tooltip();
} );

} );

</script>
3 changes: 1 addition & 2 deletions module/Client/view/client/client/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $this->headTitle($title);

<div class="row">

<div class="col-md-6">
<div class="col-md-8">
<div class="panel panel-default">

<div class="panel-heading">
Expand All @@ -44,7 +44,6 @@ $this->headTitle($title);
<thead class="bg-primary">
<th><?php echo $this->translate("Name"); ?></th>
<th><?php echo $this->translate("Filedaemon"); ?></th>
<th><?php echo $this->translate("Version"); ?></th>
<th><?php echo $this->translate("Actions"); ?></th>
</thead>

Expand Down
1 change: 1 addition & 0 deletions module/Job/view/job/job/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ $(document).ready(function() {
switch(data.jobstatus) {
case 'T':
case 'W':
return '<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="<?php echo $this->basePath() . '/job/rerun/'; ?>'+data.jobid+'" title="Rerun" id="btn-1"><span class="glyphicon glyphicon-repeat"></span></a>&nbsp;<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="<?php echo $this->basePath(); ?>/restore/?type=client&mergefilesets=1&mergejobs=1&client='+data.client+'&jobid='+data.jobid+'" title="Show Files" id="btn-1"><span class="glyphicon glyphicon-folder-open"></span></a>';
case 'E':
case 'e':
case 'f':
Expand Down

0 comments on commit 0b2e9c7

Please sign in to comment.