This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into bugfix/#733-notification-created-when-uni…
…t-hidden
- Loading branch information
Showing
62 changed files
with
860 additions
and
357 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<h1>About</h1> | ||
<h1>{{ 'common.about' | translate }}</h1> | ||
|
||
<app-general-info></app-general-info> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
app/webFrontend/src/app/auth/activation/activation.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<p class="center">{{status}}</p> | ||
<p class="center" [hidden]="!success">You can now follow <a routerLink="/login">this link</a> and use your account.</p> | ||
<p class="center" [hidden]="!success">{{ 'activation.text.pleaseClick' | translate }} | ||
<a routerLink="/login">{{ 'common.here' | translate}}</a> {{ 'activation.text.toUseYourAccount' | translate}}.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app/webFrontend/src/app/course/course-detail/course-detail.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app/webFrontend/src/app/course/course-edit/course-edit.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 15 additions & 10 deletions
25
app/webFrontend/src/app/course/course-edit/course-edit.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,37 @@ | ||
import {Component, OnInit} from '@angular/core'; | ||
import {ActivatedRoute} from '@angular/router'; | ||
import {TitleService} from '../../shared/services/title.service'; | ||
import {TranslateService} from '@ngx-translate/core'; | ||
|
||
@Component({ | ||
selector: 'app-course-edit', | ||
templateUrl: './course-edit.component.html', | ||
styleUrls: ['./course-edit.component.scss'] | ||
}) | ||
export class CourseEditComponent implements OnInit { | ||
export class CourseEditComponent { | ||
|
||
id: string; | ||
tabs = [ | ||
{ path: '.', label: 'General' }, | ||
{ path: 'content', label: 'Content' }, | ||
{ path: 'media', label: 'Media' }, | ||
{ path: 'members', label: 'Members' }, | ||
{ path: 'teachers', label: 'Teachers' }, | ||
]; | ||
tabs = []; | ||
|
||
constructor(private route: ActivatedRoute, | ||
private titleService: TitleService) { | ||
private titleService: TitleService, | ||
private translate: TranslateService) { | ||
this.route.params.subscribe(params => { | ||
this.id = params['id']; | ||
}); | ||
} | ||
|
||
ngOnInit() { | ||
this.titleService.setTitle('Edit Course'); | ||
} | ||
const lang = localStorage.getItem('lang') || this.translate.getBrowserLang() || this.translate.getDefaultLang(); | ||
this.translate.use(lang); | ||
|
||
this.translate.get(['common.content', 'common.general', 'common.media', 'common.members', 'common.teachers']).subscribe((t: string) => { | ||
this.tabs.push({ path: '.', label: t['common.general'] }); | ||
this.tabs.push({ path: 'content', label: t['common.content'] }); | ||
this.tabs.push({ path: 'media', label: t['common.media'] }); | ||
this.tabs.push({ path: 'members', label: t['common.members'] }); | ||
this.tabs.push({ path: 'teachers', label: t['common.teachers'] }); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.