An error occurred while loading the file. Please try again.
-
Paul Legoût authoredd7ec02d3
<body>
<!-- Search bar -->
<form class="form">
<mat-form-field >
<mat-label >Rechercher</mat-label>
<input matInput (keyup)="applyFilter($event)" name="input-article" id="input-article" #input>
</mat-form-field>
<!-- Select table to display (default: both) -->
<mat-form-field title="Selectionner la table à afficher" class="filter-tables">
<mat-label>Tables</mat-label>
<mat-select [(value)]="displayTable">
<mat-option value="">Toutes</mat-option>
<mat-option value="articles">Communiqués</mat-option>
<mat-option value="implications">Retombées</mat-option>
</mat-select>
</mat-form-field>
</form>
<button mat-button *ngIf="!allTables" class="button-return" (click)="backAllArticles()"><strong>Retour</strong></button>
<!-- Display articles -->
<h1 *ngIf="displayTable == 'articles' || displayTable == ''" ><i><strong>{{ titleArticles }}</strong></i></h1>
<div class="div-table" *ngIf="displayTable == 'articles' || displayTable == ''">
<table mat-table [dataSource]="dataSourceArticles" class="table-articles">
<!-- Date -->
<ng-container matColumnDef="date" >
<th mat-header-cell *matHeaderCellDef>Date de parution</th>
<td mat-cell *matCellDef="let article" style="width:250px;">{{ article.date }}</td>
</ng-container>
<!-- Title -->
<ng-container matColumnDef="title">
<th mat-header-cell *matHeaderCellDef>Titre</th>
<td mat-cell *matCellDef="let article" class="cell-title" title="Cliquez pour voir les retombées associées" (click)="clickedOnArticle(article)"><strong>{{ article.title }}</strong></td>
</ng-container>
<!-- Type -->
<ng-container matColumnDef="type">
<th mat-header-cell *matHeaderCellDef>Type</th>
<td mat-cell *matCellDef="let article">{{ article.type }}</td>
</ng-container>
<!-- Department -->
<ng-container matColumnDef="department">
<th mat-header-cell *matHeaderCellDef>Département</th>
<td mat-cell *matCellDef="let article">{{ article.department }}</td>
</ng-container>
<!-- Theme -->
<ng-container matColumnDef="theme">
<th mat-header-cell *matHeaderCellDef>Thème</th>
<td mat-cell *matCellDef="let article">{{ article.theme }}</td>
</ng-container>
<!-- Link -->
<ng-container matColumnDef="link">
<th mat-header-cell *matHeaderCellDef>Lien</th>
<td mat-cell *matCellDef="let article"><a href="{{ article.link }}">{{ article.link }}</a></td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColArticles"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColArticles;"></tr>
<!-- Row shown when there is no matching data. -->
<tr class="mat-row" *matNoDataRow>
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
<td class="mat-cell" colspan="6">Pas de résultat pour "{{input.value}}"</td>
</tr>
</table>
</div>
<!-- Display implications-->
<h1 *ngIf="displayTable == 'implications' || displayTable == ''"><i><strong>{{ titleImplications }}</strong></i></h1>
<div class="div-table" style="margin-bottom: 80px;" *ngIf="displayTable == 'implications' || displayTable == ''">
<table mat-table [dataSource]="dataSourceImplications" class="table-implications">
<!-- Date -->
<ng-container matColumnDef="date">
<th mat-header-cell *matHeaderCellDef>Date de parution</th>
<td mat-cell *matCellDef="let article" style="width:250px;">{{ article.date }}</td>
</ng-container>
<!-- Title -->
<ng-container matColumnDef="title">
<th mat-header-cell *matHeaderCellDef>Titre</th>
<td mat-cell *matCellDef="let article">{{ article.title }}</td>
</ng-container>
<!-- Type -->
<ng-container matColumnDef="type">
<th mat-header-cell *matHeaderCellDef>Type</th>
<td mat-cell *matCellDef="let article">{{ article.type }}</td>
</ng-container>
<!-- Department -->
<ng-container matColumnDef="department">
<th mat-header-cell *matHeaderCellDef>Département</th>
<td mat-cell *matCellDef="let article">{{ article.department }}</td>
</ng-container>
<!-- Paper -->
<ng-container matColumnDef="paper">
<th mat-header-cell *matHeaderCellDef>Journal</th>
<td mat-cell *matCellDef="let article">{{ article.paper }}</td>
</ng-container>
<!-- Theme -->
<ng-container matColumnDef="theme">
<th mat-header-cell *matHeaderCellDef>Thème</th>
<td mat-cell *matCellDef="let article">{{ article.theme }}</td>
</ng-container>
<!-- Tonality -->
<ng-container matColumnDef="tonality">
<th mat-header-cell *matHeaderCellDef>Tonalité</th>
<td mat-cell *matCellDef="let article" [style.background]="article.color">{{ article.tonality }}</td>
</ng-container>
<!-- Link -->
<ng-container matColumnDef="link">
<th mat-header-cell *matHeaderCellDef>Lien</th>
<td mat-cell *matCellDef="let article" style="padding-left: 5px;"><a href="{{ article.link }}">{{ article.link }}</a> </td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColImplications"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColImplications;"></tr>
<!-- Row shown when there is no matching data. -->
<tr class="mat-row" *matNoDataRow>
<td class="mat-cell" colspan="8">Pas de résultat pour "{{input.value}}"</td>
</tr>
141142143144145146
</table>
</div>
</body>