<div *ngIf="data">
    <div class="slidetitle">
        <h1>{{ data.data.title }}</h1>
        <h2 translate>Election</h2>
    </div>

    <div *ngIf="data.data && data.data.description" [innerHTML]="data.data.description | trust: 'html'"></div>

    <h3 translate>Candidates</h3>
    <ul *ngIf="data.data.assignment_related_users && data.data.assignment_related_users.length">
        <li *ngFor="let candidate of data.data.assignment_related_users">
            {{ candidate.user }}
            <mat-icon *ngIf="candidate.elected">star</mat-icon>
        </li>
    </ul>
</div>
