2015-06-29 16:22:52 +00:00
|
|
|
<div class = "class">
|
|
|
|
<h1 style="margin-left:15px"><i class="fa fa-graduation-cap"></i> Class {{project.courseName}}</h1>
|
|
|
|
<div layout-paddig layout-margin class="loader" ng-if="loadingData">
|
|
|
|
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
|
|
|
|
</div>
|
|
|
|
<div ng-if = "projectsEmpty && !loadingData" layout-padding layout-margin>
|
|
|
|
You Are Not Related To Any Project.
|
|
|
|
</div>
|
|
|
|
<div ng-if = "!projectsEmpty">
|
|
|
|
<md-card class="cardAllProjects">
|
2015-06-29 17:21:05 +00:00
|
|
|
<div flex ="99" class = "allProjectsShow" layout = "row" ng-repeat = "t in arrayHolder" value = "{{t}}" layout-padding>
|
2015-06-29 16:22:52 +00:00
|
|
|
<div flex = "32" layout = "column" ng-repeat = "project in t" value = "{{project}}" layout-padding>
|
2015-06-29 17:04:33 +00:00
|
|
|
<div ng-if="t.length != 1">
|
|
|
|
<md-button ng-click = "goToProject(project.id)" style="width:100%; height:32%;" layout-padding class = "md-raised">
|
|
|
|
{{project.projectName}}
|
|
|
|
<div layout-align="center center" style=" width:70%;">
|
|
|
|
<canvas layout-padding layout-margin id="project.projectName" class="chart chart-bar" data="project.info.stats.macro.data" labels="project.info.stats.macro.labels"></canvas>
|
|
|
|
</div>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
<div ng-if="t.length == 1">
|
|
|
|
<md-button ng-click = "goToProject(project.id)" style="width:32%; height:32%;" layout-padding class = "md-raised">
|
|
|
|
{{project.projectName}}
|
|
|
|
<!-- <div style="height:100%; width:32%;"> -->
|
|
|
|
<canvas layout-padding layout-margin id="project.projectName" class="chart chart-bar" data="project.info.stats.macro.data" labels="project.info.stats.macro.labels"></canvas>
|
|
|
|
<!-- </div> -->
|
|
|
|
</md-card>
|
|
|
|
</div>
|
2015-06-29 16:22:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div ng-if="!isInCourse" layout-padding layout-margin>
|
|
|
|
<md-button ng-click = "joinCourse()" ng class = "md-raised md-primary"> Join Class</md-button>
|
|
|
|
</div>
|
2015-07-02 10:14:23 +00:00
|
|
|
<!-- <div ng-if = "user.isLecturer"> -->
|
2015-06-29 17:21:05 +00:00
|
|
|
<md-content layout-padding layout-margin>
|
|
|
|
<md-button ng-click="createProjectClicked()" ng class="md-raised md-primary">Create Project</md-button>
|
|
|
|
</md-content>
|
|
|
|
<div ng-if = "isCreateProjectClicked">
|
|
|
|
<md-card layout-padding style="width:60%">
|
|
|
|
<div layout="column">
|
2015-06-29 16:22:52 +00:00
|
|
|
<div>
|
2015-06-29 17:21:05 +00:00
|
|
|
<md-input-container>
|
|
|
|
<label flex>Project Name</label>
|
|
|
|
<input type = "text" ng-model="project.projectName" required>
|
2015-06-29 16:22:52 +00:00
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2015-06-29 17:21:05 +00:00
|
|
|
<div layout = "row">
|
|
|
|
<div>
|
|
|
|
<md-input-container flex>
|
|
|
|
<label>GitHub Repository Owner</label>
|
|
|
|
<input type="text" ng-model="project.repoOwner" required>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<!-- <div>
|
2015-07-01 04:05:13 +00:00
|
|
|
<br>/</br>
|
2015-06-29 17:21:05 +00:00
|
|
|
</div> -->
|
|
|
|
<div>
|
|
|
|
<md-input-container flex>
|
|
|
|
<label>GitHub Repository Name</label>
|
|
|
|
<input type="text" ng-model="project.gitRepoName" required>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<b>Example</b>: http://www.github.com/userName/repoName
|
|
|
|
<br/>userName will be GitHub Repository Owner
|
|
|
|
<br/>repoName wil be GitHub Repository Name
|
|
|
|
</div>
|
2015-06-29 16:22:52 +00:00
|
|
|
<div>
|
|
|
|
<md-input-container flex>
|
2015-06-29 17:21:05 +00:00
|
|
|
<label>Logo Url (optional)</label>
|
|
|
|
<input type="text" ng-model="project.logoUrl">
|
2015-06-29 16:22:52 +00:00
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2015-06-29 17:21:05 +00:00
|
|
|
<div layout-padding layout-margin>
|
|
|
|
<md-button ng-click="submitNewProject()" ng class="md-raised md-primary">Submit Project</md-button>
|
|
|
|
<div layout-paddig layout-margin class="loader" ng-if="loadingData">
|
|
|
|
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
|
|
|
|
</div>
|
2015-06-29 16:22:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-29 17:21:05 +00:00
|
|
|
</md-card>
|
|
|
|
</div>
|
2015-07-02 10:14:23 +00:00
|
|
|
<!-- </div> -->
|
2015-07-01 04:05:13 +00:00
|
|
|
<div layout-margin>
|
|
|
|
|
|
|
|
</div>
|
2015-06-29 16:22:52 +00:00
|
|
|
</div>
|