Commit fdb85b9d by Thomas Bosch

logfile download

parent e6cdbe69
......@@ -19,6 +19,10 @@ angular.module('springBootAdmin')
ApplicationOverview.refresh(application);
});
};
// url for ng-href 'logfile':
$scope.logfile = function(url) {
return url + '/logfile';
};
})
.controller('navCtrl', function ($scope, $location) {
$scope.navClass = function(page) {
......
......@@ -26,8 +26,9 @@
</td>
<td>
<span ng-show="application.online" style="float:right">
<button type="button" ng-click="showDetails(application.id)" class="btn btn-success">Details</button>
<!-- <button type="button" ng-click="refresh(application.id)" class="btn btn-success">Refresh</button> -->
<button ng-click="showDetails(application.id)" class="btn btn-success">Details</button>
<a target="_self" ng-href="{{logfile(application.url)}}"><button class="btn btn-success">Logfile</button></a>
<!-- <button ng-click="refresh(application.id)" class="btn btn-success">Refresh</button> -->
</span>
</td>
</tr>
......
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