Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide users email & update footer logo #4

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/assets/img/logos/logo_ministere.png.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/logos/logo_ministere.webp
Binary file not shown.
Binary file added public/assets/img/logos/logo_ministere_hover.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/app/components/detail/detail.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h5 class="uppercase mb-2">Détails de l'observation</h5>
} @else {
{{obs["auteur.nom"]}}
}
@if(obs['auteur.courriel']){
@if(isAdmin && obs['auteur.courriel']){
<a href="mailto:{{obs['auteur.courriel']}}" target="_blank"> ({{obs['auteur.courriel']}})</a>
}
</span></p>
Expand Down
8 changes: 4 additions & 4 deletions src/app/components/footer/footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ <h5 (click)="copyUrl()" class="share uppercase m-0">Partager cette page</h5>
<div class="pictoplante-financeurs">
<p class="text-white font16">Projet financ&eacute; par</p>
<p>
<a class="logo_lr" href="http://www.laregion.fr/" target="_blank">
<a class="logo_lr" href="https://www.ecologie.gouv.fr/" target="_blank">
<img [src]="logoSrc"
alt="logo_region"
title="Aller sur le site de la région"
alt="logo_ministere"
title="Aller sur le site du ministère de la transition écologique"
class="logo_lr"
loading="lazy"
width="46"
width="92"
height="72"
(mouseover)="changeLogo(true)"
(mouseout)="changeLogo(false)">
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/footer/footer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class FooterComponent {
currentUrl = encodeURIComponent(window.location.href);
urlWidgetRemarque = environment.urlWidgetRemarques + '?service=identiplante&pageSource=' + this.currentUrl;
showMessageUrlCopied = false;
logoSrc = 'assets/img/logos/lr.jpg';
logoSrc = 'assets/img/logos/logo_ministere.webp';

openWindow(url: string) {
const email = 'identiplante_remarques@tela-botanica.org';
Expand All @@ -34,6 +34,6 @@ export class FooterComponent {
}

changeLogo(isHover: boolean) {
this.logoSrc = isHover ? 'assets/img/logos/lr_hover.jpg' : 'assets/img/logos/lr.jpg';
this.logoSrc = isHover ? 'assets/img/logos/logo_ministere_hover.webp' : 'assets/img/logos/logo_ministere.webp';
}
}