|
|
@ -1,10 +1,10 @@ |
|
|
<mat-toolbar class="px-0"> |
|
|
<mat-toolbar class="px-0"> |
|
|
@if (user) { |
|
|
@if (user) { |
|
|
<div class="d-flex h-100 logo-container" [ngClass]="{ filled: hasTabs }"> |
|
|
<div class="d-flex h-100 logo-container" [class.filled]="hasTabs"> |
|
|
<a |
|
|
<a |
|
|
class="align-items-center h-100 justify-content-start px-2 px-sm-3 rounded-0" |
|
|
class="align-items-center h-100 justify-content-start px-2 px-sm-3 rounded-0" |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ 'w-100': hasTabs }" |
|
|
[class.w-100]="hasTabs" |
|
|
[routerLink]="['/']" |
|
|
[routerLink]="['/']" |
|
|
(click)="onLogoClick()" |
|
|
(click)="onLogoClick()" |
|
|
> |
|
|
> |
|
|
@ -18,7 +18,7 @@ |
|
|
class="d-none d-sm-block rounded" |
|
|
class="d-none d-sm-block rounded" |
|
|
i18n |
|
|
i18n |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': |
|
|
'font-weight-bold': |
|
|
currentRoute === internalRoutes.home.path || |
|
|
currentRoute === internalRoutes.home.path || |
|
|
currentRoute === internalRoutes.zen.path, |
|
|
currentRoute === internalRoutes.zen.path, |
|
|
@ -35,7 +35,7 @@ |
|
|
class="d-none d-sm-block rounded" |
|
|
class="d-none d-sm-block rounded" |
|
|
i18n |
|
|
i18n |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': currentRoute === internalRoutes.portfolio.path, |
|
|
'font-weight-bold': currentRoute === internalRoutes.portfolio.path, |
|
|
'text-decoration-underline': |
|
|
'text-decoration-underline': |
|
|
currentRoute === internalRoutes.portfolio.path |
|
|
currentRoute === internalRoutes.portfolio.path |
|
|
@ -49,7 +49,7 @@ |
|
|
class="d-none d-sm-block rounded" |
|
|
class="d-none d-sm-block rounded" |
|
|
i18n |
|
|
i18n |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': currentRoute === internalRoutes.accounts.path, |
|
|
'font-weight-bold': currentRoute === internalRoutes.accounts.path, |
|
|
'text-decoration-underline': |
|
|
'text-decoration-underline': |
|
|
currentRoute === internalRoutes.accounts.path |
|
|
currentRoute === internalRoutes.accounts.path |
|
|
@ -64,7 +64,7 @@ |
|
|
class="d-none d-sm-block rounded" |
|
|
class="d-none d-sm-block rounded" |
|
|
i18n |
|
|
i18n |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': |
|
|
'font-weight-bold': |
|
|
currentRoute === internalRoutes.adminControl.path, |
|
|
currentRoute === internalRoutes.adminControl.path, |
|
|
'text-decoration-underline': |
|
|
'text-decoration-underline': |
|
|
@ -80,7 +80,7 @@ |
|
|
class="d-none d-sm-block rounded" |
|
|
class="d-none d-sm-block rounded" |
|
|
i18n |
|
|
i18n |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': currentRoute === routeResources, |
|
|
'font-weight-bold': currentRoute === routeResources, |
|
|
'text-decoration-underline': currentRoute === routeResources |
|
|
'text-decoration-underline': currentRoute === routeResources |
|
|
}" |
|
|
}" |
|
|
@ -95,7 +95,7 @@ |
|
|
<a |
|
|
<a |
|
|
class="d-none d-sm-block rounded" |
|
|
class="d-none d-sm-block rounded" |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': currentRoute === routePricing, |
|
|
'font-weight-bold': currentRoute === routePricing, |
|
|
'text-decoration-underline': currentRoute === routePricing |
|
|
'text-decoration-underline': currentRoute === routePricing |
|
|
}" |
|
|
}" |
|
|
@ -115,7 +115,7 @@ |
|
|
class="d-none d-sm-block rounded" |
|
|
class="d-none d-sm-block rounded" |
|
|
i18n |
|
|
i18n |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': currentRoute === routeAbout, |
|
|
'font-weight-bold': currentRoute === routeAbout, |
|
|
'text-decoration-underline': currentRoute === routeAbout |
|
|
'text-decoration-underline': currentRoute === routeAbout |
|
|
}" |
|
|
}" |
|
|
@ -239,11 +239,10 @@ |
|
|
class="d-flex d-sm-none" |
|
|
class="d-flex d-sm-none" |
|
|
i18n |
|
|
i18n |
|
|
mat-menu-item |
|
|
mat-menu-item |
|
|
[ngClass]="{ |
|
|
[class.font-weight-bold]=" |
|
|
'font-weight-bold': |
|
|
currentRoute === internalRoutes.home.path || |
|
|
currentRoute === internalRoutes.home.path || |
|
|
currentRoute === internalRoutes.zen.path |
|
|
currentRoute === internalRoutes.zen.path |
|
|
" |
|
|
}" |
|
|
|
|
|
[routerLink]="['/']" |
|
|
[routerLink]="['/']" |
|
|
>Overview</a |
|
|
>Overview</a |
|
|
> |
|
|
> |
|
|
@ -251,9 +250,9 @@ |
|
|
class="d-flex d-sm-none" |
|
|
class="d-flex d-sm-none" |
|
|
i18n |
|
|
i18n |
|
|
mat-menu-item |
|
|
mat-menu-item |
|
|
[ngClass]="{ |
|
|
[class.font-weight-bold]=" |
|
|
'font-weight-bold': currentRoute === internalRoutes.portfolio.path |
|
|
currentRoute === internalRoutes.portfolio.path |
|
|
}" |
|
|
" |
|
|
[routerLink]="routerLinkPortfolio" |
|
|
[routerLink]="routerLinkPortfolio" |
|
|
>Portfolio</a |
|
|
>Portfolio</a |
|
|
> |
|
|
> |
|
|
@ -261,18 +260,18 @@ |
|
|
class="d-flex d-sm-none" |
|
|
class="d-flex d-sm-none" |
|
|
i18n |
|
|
i18n |
|
|
mat-menu-item |
|
|
mat-menu-item |
|
|
[ngClass]="{ |
|
|
[class.font-weight-bold]=" |
|
|
'font-weight-bold': currentRoute === internalRoutes.accounts.path |
|
|
currentRoute === internalRoutes.accounts.path |
|
|
}" |
|
|
" |
|
|
[routerLink]="routerLinkAccounts" |
|
|
[routerLink]="routerLinkAccounts" |
|
|
>Accounts</a |
|
|
>Accounts</a |
|
|
> |
|
|
> |
|
|
<a |
|
|
<a |
|
|
i18n |
|
|
i18n |
|
|
mat-menu-item |
|
|
mat-menu-item |
|
|
[ngClass]="{ |
|
|
[class.font-weight-bold]=" |
|
|
'font-weight-bold': currentRoute === internalRoutes.account.path |
|
|
currentRoute === internalRoutes.account.path |
|
|
}" |
|
|
" |
|
|
[routerLink]="routerLinkAccount" |
|
|
[routerLink]="routerLinkAccount" |
|
|
>My Ghostfolio</a |
|
|
>My Ghostfolio</a |
|
|
> |
|
|
> |
|
|
@ -281,10 +280,9 @@ |
|
|
class="d-flex d-sm-none" |
|
|
class="d-flex d-sm-none" |
|
|
i18n |
|
|
i18n |
|
|
mat-menu-item |
|
|
mat-menu-item |
|
|
[ngClass]="{ |
|
|
[class.font-weight-bold]=" |
|
|
'font-weight-bold': |
|
|
currentRoute === internalRoutes.adminControl.path |
|
|
currentRoute === internalRoutes.adminControl.path |
|
|
" |
|
|
}" |
|
|
|
|
|
[routerLink]="routerLinkAdminControl" |
|
|
[routerLink]="routerLinkAdminControl" |
|
|
>Admin Control</a |
|
|
>Admin Control</a |
|
|
> |
|
|
> |
|
|
@ -294,9 +292,7 @@ |
|
|
class="d-flex d-sm-none" |
|
|
class="d-flex d-sm-none" |
|
|
i18n |
|
|
i18n |
|
|
mat-menu-item |
|
|
mat-menu-item |
|
|
[ngClass]="{ |
|
|
[class.font-weight-bold]="currentRoute === routeResources" |
|
|
'font-weight-bold': currentRoute === routeResources |
|
|
|
|
|
}" |
|
|
|
|
|
[routerLink]="routerLinkResources" |
|
|
[routerLink]="routerLinkResources" |
|
|
>Resources</a |
|
|
>Resources</a |
|
|
> |
|
|
> |
|
|
@ -306,7 +302,7 @@ |
|
|
<a |
|
|
<a |
|
|
class="d-flex d-sm-none" |
|
|
class="d-flex d-sm-none" |
|
|
mat-menu-item |
|
|
mat-menu-item |
|
|
[ngClass]="{ 'font-weight-bold': currentRoute === routePricing }" |
|
|
[class.font-weight-bold]="currentRoute === routePricing" |
|
|
[routerLink]="routerLinkPricing" |
|
|
[routerLink]="routerLinkPricing" |
|
|
> |
|
|
> |
|
|
<span class="align-items-center d-flex"> |
|
|
<span class="align-items-center d-flex"> |
|
|
@ -321,7 +317,7 @@ |
|
|
class="d-flex d-sm-none" |
|
|
class="d-flex d-sm-none" |
|
|
i18n |
|
|
i18n |
|
|
mat-menu-item |
|
|
mat-menu-item |
|
|
[ngClass]="{ 'font-weight-bold': currentRoute === routeAbout }" |
|
|
[class.font-weight-bold]="currentRoute === routeAbout" |
|
|
[routerLink]="routerLinkAbout" |
|
|
[routerLink]="routerLinkAbout" |
|
|
>About Ghostfolio</a |
|
|
>About Ghostfolio</a |
|
|
> |
|
|
> |
|
|
@ -332,11 +328,11 @@ |
|
|
</ul> |
|
|
</ul> |
|
|
} |
|
|
} |
|
|
@if (user === null) { |
|
|
@if (user === null) { |
|
|
<div class="d-flex h-100 logo-container" [ngClass]="{ filled: hasTabs }"> |
|
|
<div class="d-flex h-100 logo-container" [class.filled]="hasTabs"> |
|
|
<a |
|
|
<a |
|
|
class="align-items-center h-100 justify-content-start px-2 px-sm-3 rounded-0" |
|
|
class="align-items-center h-100 justify-content-start px-2 px-sm-3 rounded-0" |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ 'w-100': hasTabs }" |
|
|
[class.w-100]="hasTabs" |
|
|
[routerLink]="['/']" |
|
|
[routerLink]="['/']" |
|
|
> |
|
|
> |
|
|
<gf-logo |
|
|
<gf-logo |
|
|
@ -352,7 +348,7 @@ |
|
|
class="d-none d-sm-block rounded" |
|
|
class="d-none d-sm-block rounded" |
|
|
i18n |
|
|
i18n |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': currentRoute === routeFeatures, |
|
|
'font-weight-bold': currentRoute === routeFeatures, |
|
|
'text-decoration-underline': currentRoute === routeFeatures |
|
|
'text-decoration-underline': currentRoute === routeFeatures |
|
|
}" |
|
|
}" |
|
|
@ -365,7 +361,7 @@ |
|
|
class="d-none d-sm-block rounded" |
|
|
class="d-none d-sm-block rounded" |
|
|
i18n |
|
|
i18n |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': currentRoute === routeAbout, |
|
|
'font-weight-bold': currentRoute === routeAbout, |
|
|
'text-decoration-underline': currentRoute === routeAbout |
|
|
'text-decoration-underline': currentRoute === routeAbout |
|
|
}" |
|
|
}" |
|
|
@ -378,7 +374,7 @@ |
|
|
<a |
|
|
<a |
|
|
class="d-sm-block rounded" |
|
|
class="d-sm-block rounded" |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': currentRoute === routePricing, |
|
|
'font-weight-bold': currentRoute === routePricing, |
|
|
'text-decoration-underline': currentRoute === routePricing |
|
|
'text-decoration-underline': currentRoute === routePricing |
|
|
}" |
|
|
}" |
|
|
@ -399,7 +395,7 @@ |
|
|
class="d-none d-sm-block rounded" |
|
|
class="d-none d-sm-block rounded" |
|
|
i18n |
|
|
i18n |
|
|
mat-button |
|
|
mat-button |
|
|
[ngClass]="{ |
|
|
[class]="{ |
|
|
'font-weight-bold': currentRoute === routeMarkets, |
|
|
'font-weight-bold': currentRoute === routeMarkets, |
|
|
'text-decoration-underline': currentRoute === routeMarkets |
|
|
'text-decoration-underline': currentRoute === routeMarkets |
|
|
}" |
|
|
}" |
|
|
|