-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add source header and scroll to new section source fiche detail (…
- Loading branch information
Showing
13 changed files
with
152 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 56 additions & 23 deletions
79
...-mediation-numerique-details/informations-generales/informations-generales.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,67 @@ | ||
<div class="d-flex flex-row-reverse"> | ||
<div class="d-flex flex-column"> | ||
<div class="flex-grow-1 text-end"> | ||
<div class="flex-grow-1 align-self-center"> | ||
<div class="d-flex"> | ||
<small class="flex-grow-1" *ngIf="typologie">{{ typologie }}</small> | ||
<button | ||
type="button" | ||
class="btn btn-close btn-close-white opacity-100" | ||
tabindex="0" | ||
aria-label="Revenir à la liste" | ||
(click)="closeDetails.emit()"></button> | ||
</div> | ||
</div> | ||
<div class="flex-grow-1 align-self-center"> | ||
<small *ngIf="typologie">{{ typologie }}</small> | ||
<h1 class="h2 fw-bold mb-0 text-first-letter-uppercase"> | ||
{{ nom }} | ||
</h1> | ||
<ng-container *ngIf="date"> | ||
<span *ngIf="isTooOld(date); else updateDate" class="badge rounded-pill bg-tertiary text-primary fw-normal me-1"> | ||
<i class="ri-alert-line" aria-hidden="true"></i> | ||
Dernière mise à jour il y a plus d'un an | ||
</span> | ||
<ng-template #updateDate> | ||
<span class="mt-1 fst-italic me-2">Mise à jour le {{ date | date : 'dd/MM/y' }}</span> | ||
</ng-template> | ||
</ng-container> | ||
<small *ngIf="source" class="opacity-75 fst-italic"> | ||
source : | ||
<a href="{{ source.link }}" target="_blank" rel="noopener noreferrer" class="text-secondary"> | ||
{{ source.label }} | ||
</a> | ||
</small> | ||
<div class="d-flex"> | ||
<div class="w-50 flex-grow-1"> | ||
<h1 class="h2 fw-bold mb-0 text-first-letter-uppercase"> | ||
{{ nom }} | ||
</h1> | ||
<ng-container *ngIf="date"> | ||
<span *ngIf="isTooOld(date); else updateDate" class="badge rounded-pill bg-tertiary text-primary fw-normal me-1"> | ||
<i class="ri-alert-line" aria-hidden="true"></i> | ||
Dernière mise à jour il y a plus d'un an | ||
</span> | ||
<ng-template #updateDate> | ||
<span class="mt-1 fst-italic me-2">Mise à jour le {{ date | date : 'dd/MM/y' }}</span> | ||
</ng-template> | ||
</ng-container> | ||
<div class="d-flex"> | ||
<div class="text-end ms-1" *ngFor="let source of sources"> | ||
<a | ||
role="button" | ||
(click)="scrollToSource.emit()" | ||
*ngIf="source.logo as logo" | ||
class="d-block d-sm-none text-secondary mt-1"> | ||
<span class="circle-wrapper"> | ||
<img | ||
class="img-fluid p-1" | ||
[src]="assetsConfiguration.path + '/img/logo/source-update/' + logo + '.svg'" | ||
alt="{{ source.label }}" /> | ||
</span> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="mt-2" *ngIf="sources"> | ||
<small role="button" (click)="scrollToSource.emit()" class="d-none d-sm-block opacity-75 fst-italic d-flex"> | ||
<span class="text-decoration-underline">Sources des données</span> | ||
</small> | ||
<div class="d-flex justify-content-end"> | ||
<div class="text-end ms-1" *ngFor="let source of sources"> | ||
<a | ||
role="button" | ||
(click)="scrollToSource.emit()" | ||
*ngIf="source.logo as logo" | ||
class="d-none d-sm-block text-secondary mt-1 circle-wrapper"> | ||
<span class="circle-wrapper"> | ||
<img | ||
class="img-fluid p-1" | ||
[src]="assetsConfiguration.path + '/img/logo/source-update/' + logo + '.svg'" | ||
alt="{{ source.label }}" /> | ||
</span> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<i class="ri-4x ri-map-pin-2-line my-auto me-2 d-md-inline d-none" aria-hidden="true"></i> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
...aphie/components/lieux-mediation-numerique-details/mise-a-jour/mise-a-jour.component.html
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
...graphie/components/lieux-mediation-numerique-details/mise-a-jour/mise-a-jour.component.ts
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...components/lieux-mediation-numerique-details/source-donnees/source-donnees.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="py-3"> | ||
<h2 class="h5 text-muted text-uppercase">Sources des données</h2> | ||
<p class="my-2"> | ||
Les informations de cette structure sont récupérées automatiquement sur différentes plateformes de collectes d'information. | ||
Il se peut que certaines erreurs s'y soient glissées, dans ce cas n'hésitez pas à remonter l'information aux plateformes | ||
concernées. | ||
</p> | ||
</div> |
8 changes: 8 additions & 0 deletions
8
...e/components/lieux-mediation-numerique-details/source-donnees/source-donnees.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
@Component({ | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
selector: 'app-source-donnees', | ||
templateUrl: './source-donnees.component.html' | ||
}) | ||
export class SourceDonneesComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters