Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' into feature/#582-unit-visibility-toggle-2
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickSkowronek authored May 4, 2018
2 parents b297202 + 78d19c8 commit 03e7305
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Added new course & user API unit tests. [#654](https://github.com/h-da/geli/issues/654) [#691](https://github.com/h-da/geli/issues/691)
- Added details of courseAdmin and teacher to course detail view. on click profiles are shown.[#598] (https://github.com/h-da/geli/issues/598)
- Added small auto linting scripts to package.json [#688](https://github.com/h-da/geli/issues/688)
- Added changed size of drop down arrows for better usability. [#686] (https://github.com/h-da/geli/issues/686)
- Added changed size of drop down arrows for better usability. [#686](https://github.com/h-da/geli/issues/686)
- Added icon for access key [#547](https://github.com/h-da/geli/issues/574)

### Changed
- Refactored or slightly altered various course & user related APIs. [#654](https://github.com/h-da/geli/issues/654) [#691](https://github.com/h-da/geli/issues/691)
Expand Down
25 changes: 22 additions & 3 deletions app/webFrontend/src/app/course/course.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@
{{course.description}}
</p>
</mat-card-content>
<mat-card-actions >
<mat-card-actions>
<span class="course-admin-actions" *ngIf="this.course.userCanEditCourse">
<button mat-icon-button (click)="editCourse(course._id)">
<mat-icon>mode_edit</mat-icon>
</button>

<button mat-icon-button (click)="showReport(course._id)">
<mat-icon>show_chart</mat-icon>
</button>

<button mat-icon-button *ngIf="!course.active" disabled>
<mat-icon color="warn">visibility_off</mat-icon>
</button>
</span>
<span class="course-admin-actions" *ngIf="course.userCanEditCourse">
<button mat-icon-button (click)="editCourse(course._id)">
<mat-icon>mode_edit</mat-icon>
Expand All @@ -23,17 +36,23 @@
</button>
</span>
<span class="course-student-actions" *ngIf="this.userService.isStudent()">
<div style="float:left">
<i class="material-icons" style="margin-top: 8px;"
matTooltip="Key Required"
*ngIf="course.enrollType === 'accesskey'">lock</i>
<i class="material-icons" style="margin-top: 8px;"
matTooltip="No Key Required"
*ngIf="course.enrollType !== 'accesskey'">lock_open</i>
</div>
<button mat-icon-button *ngIf="!course.userIsCourseMember"
(click)="enroll()" matTooltip="Enroll">
<mat-icon>add_circle_outline</mat-icon>
</button>

<button mat-icon-button *ngIf="course.userIsCourseMember"
(click)="leave()" matTooltip="Leave">
<mat-icon>remove_circle_outline</mat-icon>
</button>
</span>

<button mat-mini-fab *ngIf="course.userCanViewCourse"
color="primary" class="details-button" [routerLink]="['course', course._id]">
<mat-icon>arrow_forward</mat-icon>
Expand Down

0 comments on commit 03e7305

Please sign in to comment.