-
Notifications
You must be signed in to change notification settings - Fork 39
/
community.component.html
59 lines (59 loc) · 2.96 KB
/
community.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<div class="space-container">
<div class="view-container view-full-height community-view">
<mat-toolbar class="action-buttons">
<span>{{configuration?.name}}</span>
</mat-toolbar>
<div class="community-news">
<mat-tab-group>
<mat-tab i18n-label label="News">
<h3>
<span>{{configuration?.name}} <ng-container i18n>News</ng-container></span>
<ng-container *planetAuthorizedRoles="'learner'">
<button mat-stroked-button (click)="openAddMessageDialog()" *ngIf="showNewsButton" i18n>New Story</button>
</ng-container>
</h3>
<planet-news-list [items]="news" (viewChange)="toggleShowButton($event)"></planet-news-list>
</mat-tab>
<mat-tab i18n-label label="Community Leaders">
<div class="card-grid">
<mat-card *ngFor="let councillor of councillors">
<planet-teams-member
[member]="councillor"
[actionMenu]="!planetCode && (user.roles.indexOf('_admin') > -1 || user.roles.indexOf('manager') > -1) ? [ 'title' ] : []"
(actionClick)="openChangeTitleDialog($event)">
</planet-teams-member>
</mat-card>
</div>
</mat-tab>
<mat-tab i18n-label label="Services">
<planet-markdown [content]="team.description || ''"></planet-markdown>
<button *planetAuthorizedRoles (click)="openDescriptionDialog()" mat-stroked-button i18n>Edit {
configuration.planetType, select, community {Community} nation {Nation} center {Earth}
} Description</button>
<mat-nav-list>
<mat-list-item *ngFor="let link of links">
<a matLine [routerLink]="link.route" i18n>
{{link.title}}
</a>
<button *ngIf="deleteMode" mat-icon-button color="warn" (click)="openDeleteLinkDialog(link)"><mat-icon>delete</mat-icon></button>
</mat-list-item>
</mat-nav-list>
<div *planetAuthorizedRoles class="action-buttons">
<button (click)="openAddLinkDialog()" mat-stroked-button i18n>Add Link</button>
<button (click)="toggleDeleteMode()" mat-stroked-button>
<span *ngIf="!deleteMode" i18n>Remove Links</span>
<span *ngIf="deleteMode" i18n>Done Removing Links</span>
</button>
</div>
</mat-tab>
<mat-tab *ngIf="configuration.planetType==='nation'" i18n-label label="Communities">
<planet-community-list></planet-community-list>
</mat-tab>
<mat-tab i18n-label label="Finances">
<planet-teams-view-finances [finances]="finances" [team]="team" (financesChanged)="getLinks()" [editable]="isCommunityLeader"></planet-teams-view-finances>
</mat-tab>
</mat-tab-group>
</div>
<planet-calendar [link]="{ teams: teamId }" [sync]="{ type: 'sync', planetCode: planetCode || configuration.code }"></planet-calendar>
</div>
</div>