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">
|
|
|
|
<div class="col-xs-12 col-md-12 extend-height">
|
|
|
|
<div class="section">
|
2016-05-02 12:24:58 +02:00
|
|
|
<h4 class="page-header"><a href="#" ng-click="vm.togglePublicity({publicity: 0})">My Projects</a><span class="gutter">|</span><a href="#" class="title-color" ng-click="vm.togglePublicity({publicity: 1})">Public Projects</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-02 12:24:58 +02:00
|
|
|
<button class="btn btn-success" type="button" ng-show="vm.showAddButton()" ng-click="vm.showAddProject()"><span class="glyphicon glyphicon-plus"></span>New Project</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>
|
|
|
|
<th>Project Name</th><th>Repositories</th><th>Role</th><th>Creation Time</th><th>Publicity</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="p in vm.projects">
|
|
|
|
<td><a href="/ng/repository#/repositories?project_id=//p.ProjectId//">//p.Name//</a></td>
|
|
|
|
<td>N/A</td>
|
|
|
|
<td>N/A</td>
|
|
|
|
<td>//p.CreationTime | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
|
|
|
<td><publicity-button is-public="p.Public" owned="p.OwnerId == vm.currentUser.UserId" project-id="p.ProjectId"></publicity-button></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-04-11 10:07:16 +02:00
|
|
|
</div>
|
2016-05-03 12:29:58 +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</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>
|