Skip to content

Commit

Permalink
Add another link to geonetwork (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas authored Jun 21, 2024
1 parent 5d92423 commit 0892e6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
<div
class="mx-auto flex items-center justify-center sm:justify-end gap-2 py-1 text-sm"
>
<a
class="block hover:underline mr-4"
[href]="gnLinkGeneral"
target="_blank"
>{{ 'datahub.header.geonetwork' | translate }}</a
>
<a class="block hover:underline mr-4" [href]="docLink" target="_blank">{{
'datahub.header.documentation' | translate
}}</a>
<a class="block hover:underline" [href]="gnLink" target="_blank">{{
<a class="block hover:underline" [href]="gnLinkAdmin" target="_blank">{{
'datahub.header.admin' | translate
}}</a>
<gn-ui-language-switcher
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ export class GeocatHeaderComponent {
}/home.html`
}

get gnLink() {
get gnLinkAdmin() {
return `/geonetwork/srv/${
LANG_2_TO_3_MAPPER[this.translate.currentLang] || 'eng'
}/catalog.edit#/board`
}

get gnLinkGeneral() {
return `/geonetwork/srv/${
LANG_2_TO_3_MAPPER[this.translate.currentLang] || 'eng'
}/catalog.search#/home`
}
}

0 comments on commit 0892e6d

Please sign in to comment.