2016-05-02 12:24:58 +02:00
|
|
|
<div class="container-fluid container-fluid-custom" ng-controller="ProjectController as vm">
|
2016-04-11 10:07:16 +02:00
|
|
|
<div class="container container-custom">
|
|
|
|
<div class="row extend-height">
|
2016-05-17 19:52:28 +02:00
|
|
|
<div class="col-xs-12 col-md-12">
|
2016-04-11 10:07:16 +02:00
|
|
|
<div class="section">
|
2016-05-05 12:35:52 +02:00
|
|
|
<h4 class="page-header">
|
2016-05-13 12:48:06 +02:00
|
|
|
<span ng-show="!vm.publicity">// 'my_projects' | tr //</span>
|
|
|
|
<a ng-show="vm.publicity" href="#" ng-click="vm.togglePublicity({publicity: 0})">// 'my_projects' | tr //</a>
|
2016-05-05 12:35:52 +02:00
|
|
|
<span class="gutter">|</span>
|
2016-05-13 12:48:06 +02:00
|
|
|
<span ng-show="vm.publicity">// 'public_projects' | tr //</span>
|
2016-05-18 09:30:14 +02:00
|
|
|
<a ng-show="!vm.publicity" href="#" class="title-color" ng-click="vm.togglePublicity({publicity: 1})">// 'public_projects' | tr //</a>
|
|
|
|
</h4>
|
2016-04-11 10:07:16 +02:00
|
|
|
<div class="search-pane">
|
|
|
|
<div class="form-inline">
|
|
|
|
<div class="input-group">
|
2016-05-03 12:29:58 +02:00
|
|
|
<input type="text" class="form-control" placeholder="" ng-model="vm.projectName" size="30">
|
2016-04-11 10:07:16 +02:00
|
|
|
<span class="input-group-btn">
|
2016-05-02 12:24:58 +02:00
|
|
|
<button class="btn btn-primary" type="button" ng-click="vm.searchProject()"><span class="glyphicon glyphicon-search"></span></button>
|
2016-04-11 10:07:16 +02:00
|
|
|
</span>
|
|
|
|
</div>
|
2016-05-13 12:48:06 +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-04-11 10:07:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pane project-pane">
|
2016-05-02 12:24:58 +02:00
|
|
|
<add-project ng-show="vm.isOpen" is-open="vm.isOpen"></add-project>
|
2016-04-11 10:07:16 +02:00
|
|
|
<div class="sub-pane">
|
2016-05-03 12:29:58 +02:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
2016-05-13 12:48:06 +02:00
|
|
|
<th>// 'project_name' | tr //</th><th>// 'repositories' | tr //</th><th>// 'role' | tr //</th><th>// 'creation_time' | tr //</th><th>// 'publicity' | tr //</th>
|
2016-05-03 12:29:58 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-05-24 12:22:06 +02:00
|
|
|
<tr>
|
|
|
|
<td colspan="5" height="320px" class="empty-hint" ng-if="vm.projects.length === 0"><h3 class="text-muted">// 'no_projects_add_new_project' | tr //</h3></td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-if="vm.projects.length > 0" ng-repeat="p in vm.projects">
|
2016-06-14 08:54:00 +02:00
|
|
|
<td><a href="/ng/repository#/repositories?project_id=//p.ProjectId//&is_public=//p.Public//">//p.name//</a></td>
|
2016-06-02 09:44:53 +02:00
|
|
|
<td>//p.repo_count//</td>
|
2016-06-14 08:54:00 +02:00
|
|
|
<td>//vm.getProjectRole(p.current_user_role_id)//</td>
|
|
|
|
<td>//p.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
2016-05-20 11:43:47 +02:00
|
|
|
<td><publicity-button is-public="p.Public" owned="p.OwnerId == vm.user.UserId" project-id="p.ProjectId"></publicity-button></td>
|
2016-05-24 12:22:06 +02:00
|
|
|
</tr>
|
2016-05-03 12:29:58 +02:00
|
|
|
</tbody>
|
2016-05-18 09:30:14 +02:00
|
|
|
</table>
|
2016-04-11 10:07:16 +02:00
|
|
|
</div>
|
2016-05-18 09:30:14 +02:00
|
|
|
<div class="col-xs-4 col-md-12 well well-sm well-custom"><div class="col-md-offset-10">//vm.projects ? vm.projects.length : 0// // 'items' | tr //</div></div>
|
2016-04-11 10:07:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
2016-04-11 10:07:16 +02:00
|
|
|
</div>
|