mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-10 13:44:30 +00:00
More work on project permissions
This commit is contained in:
@@ -8,4 +8,5 @@ export interface Project {
|
||||
version: string;
|
||||
public: boolean;
|
||||
chain: number;
|
||||
hidden: boolean;
|
||||
}
|
||||
|
||||
@@ -13,8 +13,11 @@
|
||||
<mat-expansion-panel *ngFor="let project of projects" style="margin-top: 1em">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>
|
||||
<mat-icon *ngIf="project.public">public</mat-icon>
|
||||
<mat-icon *ngIf="!project.public">lock</mat-icon>
|
||||
<mat-icon *ngIf="project.public" [title]="'project.public' | translate">public</mat-icon>
|
||||
<mat-icon *ngIf="!project.public && !project.hidden" [title]="'project.private'|translate">
|
||||
lock
|
||||
</mat-icon>
|
||||
<mat-icon *ngIf="project.hidden" [title]="'project.hidden'|translate">block</mat-icon>
|
||||
<span style="width: 3em">{{project.id}}</span>{{project.name}}
|
||||
</mat-panel-title>
|
||||
<mat-panel-description>{{project.motd}}</mat-panel-description>
|
||||
|
||||
@@ -58,6 +58,8 @@
|
||||
"create_title": "Create new project",
|
||||
"create_subtitle": "Todo: subtitle",
|
||||
"public": "Public",
|
||||
"private": "Private",
|
||||
"hidden": "Hidden",
|
||||
"create": "Create",
|
||||
"git_repo": "Git repository name",
|
||||
"motd": "Message of the day",
|
||||
|
||||
@@ -60,6 +60,8 @@
|
||||
"create_title": "Créer un nouveau projet",
|
||||
"create_subtitle": "todo: sous-titre",
|
||||
"public": "Publique",
|
||||
"private": "Privé",
|
||||
"hidden": "Caché",
|
||||
"create": "Créer",
|
||||
"motd": "Message du jour",
|
||||
"update": "Mettre à jour",
|
||||
|
||||
Reference in New Issue
Block a user