2015-06-29 19:31:32 +00:00
|
|
|
<div class = "project">
|
2015-06-29 16:23:14 +00:00
|
|
|
<md-content layout-padding layout-margin>
|
2015-06-30 12:56:53 +00:00
|
|
|
<div layout = "row">
|
2015-08-01 14:49:01 +00:00
|
|
|
<div ng-if="!project.logo_url || project.logo_url == ''">
|
2015-08-01 12:38:45 +00:00
|
|
|
<h1 layout-margin style="margin-left:15px"><i class="fa fa-cube"></i> {{project.projectName}}</h1>
|
2015-08-01 14:49:01 +00:00
|
|
|
</div>
|
|
|
|
<div ng-if="project.logo_url && project.logo_url != ''"> <!-- ng-if = "{{project.logo_url}}"> -->
|
2015-08-01 12:38:45 +00:00
|
|
|
<div flex = "10" layout='row'>
|
|
|
|
<div>
|
|
|
|
<img ng-src="{{project.logo_url}}" class = "md-avatar">
|
|
|
|
</div>
|
|
|
|
<div class='port_spacer'>
|
|
|
|
<h1>{{project.projectName}}</h1>
|
|
|
|
</div>
|
2015-06-30 12:56:53 +00:00
|
|
|
</div>
|
2015-06-29 19:31:32 +00:00
|
|
|
</div>
|
2015-06-30 16:47:22 +00:00
|
|
|
<div>
|
|
|
|
<div layout = "row" flex = "45">
|
|
|
|
<!-- <div ng-if = "isMasterOrLecturer"> -->
|
|
|
|
<md-card layout = "row">
|
2015-08-01 14:51:13 +00:00
|
|
|
<div ng-if="isMember" layout-padding>
|
|
|
|
<md-button ng-click="joinProject()" ng class = "md-raised md-primary">
|
|
|
|
<i class="fa fa-user-plus"></i>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
2015-06-30 16:47:22 +00:00
|
|
|
<div layout-padding>
|
|
|
|
<md-button ng-click="editProject($event)" ng class="md-raised md-primary">
|
|
|
|
<i class="fa fa-pencil-square-o"></i>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
<div layout-padding>
|
|
|
|
<md-button ng-click="removeProject($event)" ng class="md-raised md-primary">
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-card>
|
|
|
|
<!-- </div> -->
|
|
|
|
</div>
|
2015-06-29 19:31:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-30 12:56:53 +00:00
|
|
|
<md-card>
|
2015-06-30 16:47:22 +00:00
|
|
|
<div flex = "80" layout = "row" style="height:40%;" layout-margin>
|
2015-06-30 12:56:53 +00:00
|
|
|
<div flex = "10" layout-padding layout-margin border = "1">
|
|
|
|
Team Members:
|
|
|
|
<ul layout-padding>
|
|
|
|
<li ng-repeat = "member in project.members">
|
|
|
|
<a ng-href="#/profile/{{member.id}}" style="text-decoration:none; color:black;"> {{member.name}}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-06-30 16:47:22 +00:00
|
|
|
<div flex = "40">
|
2015-06-30 12:56:53 +00:00
|
|
|
<!-- Graph -->
|
|
|
|
<div ng-if="loadingData" layout-paddig layout-margin class="loader">
|
|
|
|
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
|
|
|
|
</div>
|
|
|
|
<md-card>
|
2015-06-30 16:47:22 +00:00
|
|
|
<canvas layout-padding layout-margin ng-if = "!loadingData" id="line" class="chart chart-line" data="project.info.stats.weekly_commits.data" labels="project.info.stats.weekly_commits.labels" legend="true" ></canvas>
|
2015-06-30 12:56:53 +00:00
|
|
|
</md-card>
|
|
|
|
</div>
|
2015-06-30 16:47:22 +00:00
|
|
|
<div flex = "35">
|
2015-06-30 12:56:53 +00:00
|
|
|
<md-card>
|
|
|
|
<canvas layout-padding layout-margin ng-if = "!loadingData" id="project.projectName" class="chart chart-bar" data="project.info.stats.micro.data" labels="project.info.stats.micro.labels" series="project.info.stats.micro.series"></canvas>
|
|
|
|
</md-card>
|
2015-06-29 19:31:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-30 12:56:53 +00:00
|
|
|
</md-card>
|
2015-06-29 19:45:36 +00:00
|
|
|
<div>
|
2015-06-30 12:56:53 +00:00
|
|
|
<div flex = "96" style="height:70%;">
|
2015-06-29 19:45:36 +00:00
|
|
|
<div flex>
|
|
|
|
<md-card>
|
|
|
|
<md-content class="md-padding">
|
|
|
|
<md-tabs md-dynamic-height md-border-bottom>
|
|
|
|
<md-tab label="Messages">
|
|
|
|
<md-content class="md-padding">
|
|
|
|
<h1 class="md-display-2">Messages</h1>
|
|
|
|
<p>Messages...</p>
|
|
|
|
</md-content>
|
|
|
|
</md-tab>
|
|
|
|
<md-tab label="Commits">
|
2015-07-02 10:14:23 +00:00
|
|
|
<md-content class="tabDesign">
|
|
|
|
<table style="width:100%;" border = "1">
|
2015-06-30 12:56:53 +00:00
|
|
|
<tr>
|
2015-06-30 23:35:23 +00:00
|
|
|
<th>Message</th>
|
|
|
|
<th style = "width:20%;">Date</th>
|
|
|
|
<th style = "width:10%;">Committer</th>
|
2015-06-30 12:56:53 +00:00
|
|
|
</tr>
|
2015-06-30 23:35:23 +00:00
|
|
|
<tr ng-repeat = "commit in project.info.commits" layout-margin align = "center">
|
|
|
|
<td>
|
|
|
|
<span ng-repeat = "msg in commit">
|
|
|
|
<a target = "_blank"ng-href="{{commit.html_url}}"
|
|
|
|
style="text-decoration:none; color:black;">
|
|
|
|
{{msg.message}}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</td>
|
2015-06-30 12:56:53 +00:00
|
|
|
<td>
|
2015-06-30 23:35:23 +00:00
|
|
|
<span ng-repeat = "date in commit.author">
|
|
|
|
{{date.date}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td ng-repeat = "member in project.members">
|
2015-06-30 12:56:53 +00:00
|
|
|
<a ng-href="#/profile/{{member.id}}" style="text-decoration:none; color:black;">
|
|
|
|
{{member.name}}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</md-content>
|
|
|
|
</md-tab>
|
|
|
|
<md-tab label="Issues">
|
2015-07-02 10:14:23 +00:00
|
|
|
<md-content class="tabDesign">
|
2015-06-30 12:56:53 +00:00
|
|
|
<table style="width:100%;" border = "1">
|
|
|
|
<tr>
|
|
|
|
<th>Title</th>
|
2015-06-30 14:52:32 +00:00
|
|
|
<th style = "width:15%;">Labels</th>
|
|
|
|
<th style = "width:10%;">Milestone</th>
|
|
|
|
<th style = "width:10%;">User</th>
|
2015-06-30 12:56:53 +00:00
|
|
|
</tr>
|
2015-06-30 14:04:41 +00:00
|
|
|
<tr ng-repeat = "issue in project.info.issues" layout-margin align="center">
|
2015-06-30 12:56:53 +00:00
|
|
|
<td align="top">
|
2015-06-30 14:52:32 +00:00
|
|
|
<a target="_blank" ng-href="{{issue.html_url}}" style="text-decoration:none; color:black;">
|
2015-06-30 12:56:53 +00:00
|
|
|
{{issue.title}}
|
2015-06-30 14:52:32 +00:00
|
|
|
</a>
|
2015-06-30 12:56:53 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2015-06-30 14:52:32 +00:00
|
|
|
<span ng-repeat = "label in issue.labels">
|
|
|
|
<md-card style="background-color:{{label.color}}">
|
|
|
|
{{label.name}}
|
|
|
|
</md-card>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{issue.milestone.title}}
|
2015-06-30 14:04:41 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2015-06-30 16:47:22 +00:00
|
|
|
<span ng-repeat = "member in project.members">
|
|
|
|
<a ng-href = "{{getProfileRoute(issue.assignee.login)}}" style="text-decoration:none; color:black;">
|
|
|
|
{{issue.assignee.login}}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
|
2015-06-30 12:56:53 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2015-06-29 19:45:36 +00:00
|
|
|
</md-content>
|
|
|
|
</md-tab>
|
|
|
|
<md-tab label="tasks">
|
|
|
|
<md-content class="md-padding">
|
|
|
|
<h1 class="md-display-2">tasks</h1>
|
|
|
|
<p>tasks..</p>
|
|
|
|
</md-content>
|
|
|
|
</md-tab>
|
|
|
|
</md-tabs>
|
|
|
|
</md-content>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-29 16:23:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</md-content>
|
|
|
|
</div>
|