More work on project permissions

This commit is contained in:
simon987
2019-02-16 11:47:54 -05:00
parent 03153c4d39
commit e079fc8497
18 changed files with 470 additions and 125 deletions

View File

@@ -8,4 +8,5 @@ export interface Project {
version: string;
public: boolean;
chain: number;
hidden: boolean;
}

View File

@@ -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>

View File

@@ -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",

View File

@@ -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",