update for auto-resizing height of repository list.

This commit is contained in:
kunw 2016-06-27 14:16:28 +08:00
parent d5dc67a166
commit d73fbda8c8
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<div class="tab-pane active" id="repositories" > <div class="tab-pane active" id="repositories" element-height>
<div class="col-xs-12 col-md-12 each-tab-pane"> <div class="col-xs-12 col-md-12 each-tab-pane">
<div class="form-inline"> <div class="form-inline">
<div class="input-group"> <div class="input-group">
@ -11,6 +11,7 @@
<div ng-if="vm.repositories.length === 0" class="empty-hint"> <div ng-if="vm.repositories.length === 0" class="empty-hint">
<h3 style="margin-top: 200px;" class="text-muted">// 'no_repositories' | tr //</h3> <h3 style="margin-top: 200px;" class="text-muted">// 'no_repositories' | tr //</h3>
</div> </div>
<div class="sub-pane">
<div ng-if="vm.repositories.length > 0" class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> <div ng-if="vm.repositories.length > 0" class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<modal-dialog action="vm.deleteImage()" content-type="text/html" modal-title="//vm.modalTitle//" modal-message="//vm.modalMessage//"></modal-dialog> <modal-dialog action="vm.deleteImage()" content-type="text/html" modal-title="//vm.modalTitle//" modal-message="//vm.modalMessage//"></modal-dialog>
<div class="panel panel-default" ng-repeat="repo in vm.repositories"> <div class="panel panel-default" ng-repeat="repo in vm.repositories">
@ -27,3 +28,4 @@
</div> </div>
</div> </div>
</div> </div>
</div>

View File

@ -8,6 +8,9 @@
ListRepositoryController.$inject = ['$scope', 'ListRepositoryService', 'DeleteRepositoryService', '$filter', 'trFilter', '$location', 'getParameterByName']; ListRepositoryController.$inject = ['$scope', 'ListRepositoryService', 'DeleteRepositoryService', '$filter', 'trFilter', '$location', 'getParameterByName'];
function ListRepositoryController($scope, ListRepositoryService, DeleteRepositoryService, $filter, trFilter, $location, getParameterByName) { function ListRepositoryController($scope, ListRepositoryService, DeleteRepositoryService, $filter, trFilter, $location, getParameterByName) {
$scope.subsTabPane = 30;
var vm = this; var vm = this;
vm.filterInput = ''; vm.filterInput = '';