hermes-web-angular/src/app/groups/group-item/group-item.component.html

29 lines
774 B
HTML

<article>
<section class="title">{{item().group.name}}
@if (special) {
<small class="tag">auto-generated</small>
}
</section>
<section class="">
{{item().group.priority}}
<small class="muted block">priority</small>
</section>
<section>
@if (special) {
<p class="muted">Unknown</p>
} @else {
{{item().chatters.length}}
<small class="muted block">user{{item().chatters.length == 1 ? '' : 's'}}</small>
}
</section>
<section>
{{item().policies.length}}
<small class="muted block">polic{{item().chatters.length == 1 ? 'y' : 'ies'}}</small>
</section>
<section>
<button mat-button
(click)="router.navigate([link])">
<mat-icon>pageview</mat-icon>View
</button>
</section>
</article>