2016-07-07 18:03:32 +02:00
|
|
|
<!--
|
|
|
|
Copyright (c) 2016 VMware, Inc. All Rights Reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
2016-06-25 21:12:17 +02:00
|
|
|
<div class="container-fluid container-fluid-custom" element-height ng-controller="ProjectController as vm">
|
2016-07-01 12:37:17 +02:00
|
|
|
<modal-dialog modal-title="// vm.modalTitle //" modal-message="// vm.modalMessage //" confirm-only="vm.confirmOnly" action="vm.action()"></modal-dialog>
|
2016-04-11 10:07:16 +02:00
|
|
|
<div class="container container-custom">
|
|
|
|
<div class="row extend-height">
|
2016-06-16 12:35:11 +02:00
|
|
|
<div class="col-xs-12 col-md-12 extend-height">
|
|
|
|
<div class="section">
|
|
|
|
<h4 class="page-header">
|
2016-09-13 18:40:42 +02:00
|
|
|
<span ng-if="vm.isPublic === 0">// 'my_projects' | tr //</span>
|
|
|
|
<a ng-if="vm.isPublic === 1" href="javascript:void(0);" ng-click="vm.togglePublicity({isPublic: 0})">// 'my_projects' | tr //</a>
|
|
|
|
<span class="gutter">|</span>
|
|
|
|
<span ng-if="vm.isPublic === 1">// 'public_projects' | tr //</span>
|
|
|
|
<a ng-if="vm.isPublic === 0" href="javascript:void(0);" class="title-color" ng-click="vm.togglePublicity({isPublic: 1})">// 'public_projects' | tr //</a>
|
|
|
|
</h4>
|
|
|
|
<div class="search-pane">
|
2016-06-16 12:35:11 +02:00
|
|
|
<div class="form-inline">
|
|
|
|
<div class="input-group">
|
2016-07-11 10:11:54 +02:00
|
|
|
<input type="text" class="form-control" placeholder="" ng-model="vm.projectName" size="30" ng-keydown="vm.searchProjectByKeyPress($event)">
|
2016-06-16 12:35:11 +02:00
|
|
|
<span class="input-group-btn">
|
|
|
|
<button class="btn btn-primary" type="button" ng-click="vm.searchProject()"><span class="glyphicon glyphicon-search"></span></button>
|
|
|
|
</span>
|
|
|
|
</div>
|
2016-09-13 18:40:42 +02:00
|
|
|
<button ng-if="vm.isOpen" class="btn btn-default" disabled="disabled" type="button"><span class="glyphicon glyphicon-plus"></span> // 'new_project' | tr //</button>
|
|
|
|
<button ng-if="!vm.isOpen" class="btn btn-success" type="button" ng-show="vm.showAddButton()" ng-click="vm.showAddProject()"><span class="glyphicon glyphicon-plus"></span> // 'new_project' | tr //</button>
|
2016-06-16 12:35:11 +02:00
|
|
|
</div>
|
2016-09-13 18:40:42 +02:00
|
|
|
</div>
|
|
|
|
<add-project ng-show="vm.isOpen" is-open="vm.isOpen"></add-project>
|
|
|
|
<div class="each-tab-pane">
|
|
|
|
<div class="sub-pane">
|
|
|
|
<div class="table-head-container">
|
|
|
|
<table class="table table-pane table-header">
|
|
|
|
<thead>
|
|
|
|
<th width="20%">// 'project_name' | tr //</th>
|
|
|
|
<th width="15%">// 'repositories' | tr //</th>
|
|
|
|
<th width="15%" ng-if="!vm.publicity">// 'role' | tr //</th>
|
|
|
|
<th width="20%">// 'creation_time' | tr //</th>
|
|
|
|
<th width="15%">// 'publicity' | tr //</th>
|
|
|
|
<th width="10%">// 'operation' | tr //</th>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="table-body-container">
|
|
|
|
<table class="table table-pane">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td colspan="5" height="320px" class="empty-hint" ng-if="vm.projects.length === 0"><h4 class="text-muted">// 'no_projects_add_new_project' | tr //</h4></td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-if="vm.projects.length > 0" ng-repeat="p in vm.projects">
|
|
|
|
<td width="20%"><a href="/repository#/repositories?project_id=//p.project_id//&is_public=//p.public//">//p.name//</a></td>
|
|
|
|
<td width="15%">//p.repo_count//</td>
|
|
|
|
<td width="15%" ng-if="vm.isPublic === 0">//vm.getProjectRole(p.current_user_role_id) | tr//</td>
|
|
|
|
<td width="20%">//p.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
|
|
|
<td width="15%"><publicity-button is-public="p.public" project-id="p.project_id"></publicity-button></td>
|
|
|
|
<td width="10%">
|
|
|
|
<a href="javascript:void(0)" ng-click="vm.confirmToDelete(p.project_id, p.name)"><span class="glyphicon glyphicon-trash"></span></a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-04-11 10:07:16 +02:00
|
|
|
</div>
|
2016-08-31 09:24:17 +02:00
|
|
|
</div>
|
2016-09-13 18:40:42 +02:00
|
|
|
</div>
|
|
|
|
<paginator ng-if="vm.totalCount > 0" total-count="//vm.totalCount//" page-size="//vm.pageSize//" page="vm.page" display-count="5"></paginator>
|
2016-06-16 12:35:11 +02:00
|
|
|
</div>
|
2016-04-11 10:07:16 +02:00
|
|
|
</div>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
2016-06-29 07:38:05 +02:00
|
|
|
</div>
|