Feature/hide footer on mobile (#113)
* Hide footer on mobile * Improve about text * Update changelog
This commit is contained in:
parent
a1460a98fd
commit
9851cce382
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Hid footer on mobile (except on landing page)
|
||||||
|
|
||||||
## 1.6.0 - 22.05.2021
|
## 1.6.0 - 22.05.2021
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -25,7 +25,10 @@
|
|||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="footer d-flex justify-content-center position-absolute w-100">
|
<footer
|
||||||
|
*ngIf="currentRoute === 'start' || deviceType !== 'mobile'"
|
||||||
|
class="footer d-flex justify-content-center position-absolute w-100"
|
||||||
|
>
|
||||||
<div class="container text-center">
|
<div class="container text-center">
|
||||||
<div>
|
<div>
|
||||||
© {{ currentYear }} <a href="https://ghostfol.io">Ghostfolio</a>
|
© {{ currentYear }} <a href="https://ghostfol.io">Ghostfolio</a>
|
||||||
|
@ -10,6 +10,7 @@ import { primaryColorHex, secondaryColorHex } from '@ghostfolio/common/config';
|
|||||||
import { InfoItem, User } from '@ghostfolio/common/interfaces';
|
import { InfoItem, User } from '@ghostfolio/common/interfaces';
|
||||||
import { hasPermission, permissions } from '@ghostfolio/common/permissions';
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions';
|
||||||
import { MaterialCssVarsService } from 'angular-material-css-vars';
|
import { MaterialCssVarsService } from 'angular-material-css-vars';
|
||||||
|
import { DeviceDetectorService } from 'ngx-device-detector';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import { filter, takeUntil } from 'rxjs/operators';
|
import { filter, takeUntil } from 'rxjs/operators';
|
||||||
|
|
||||||
@ -27,6 +28,7 @@ export class AppComponent implements OnDestroy, OnInit {
|
|||||||
public canCreateAccount: boolean;
|
public canCreateAccount: boolean;
|
||||||
public currentRoute: string;
|
public currentRoute: string;
|
||||||
public currentYear = new Date().getFullYear();
|
public currentYear = new Date().getFullYear();
|
||||||
|
public deviceType: string;
|
||||||
public info: InfoItem;
|
public info: InfoItem;
|
||||||
public isLoggedIn = false;
|
public isLoggedIn = false;
|
||||||
public user: User;
|
public user: User;
|
||||||
@ -37,6 +39,7 @@ export class AppComponent implements OnDestroy, OnInit {
|
|||||||
public constructor(
|
public constructor(
|
||||||
private cd: ChangeDetectorRef,
|
private cd: ChangeDetectorRef,
|
||||||
private dataService: DataService,
|
private dataService: DataService,
|
||||||
|
private deviceService: DeviceDetectorService,
|
||||||
private materialCssVarsService: MaterialCssVarsService,
|
private materialCssVarsService: MaterialCssVarsService,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private tokenStorageService: TokenStorageService
|
private tokenStorageService: TokenStorageService
|
||||||
@ -46,6 +49,8 @@ export class AppComponent implements OnDestroy, OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ngOnInit() {
|
public ngOnInit() {
|
||||||
|
this.deviceType = this.deviceService.getDeviceInfo().deviceType;
|
||||||
|
|
||||||
this.dataService.fetchInfo().subscribe((info) => {
|
this.dataService.fetchInfo().subscribe((info) => {
|
||||||
this.info = info;
|
this.info = info;
|
||||||
});
|
});
|
||||||
|
@ -5,15 +5,14 @@
|
|||||||
<mat-card class="mb-3">
|
<mat-card class="mb-3">
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<p>
|
<p>
|
||||||
<strong>Ghostfolio</strong> ({{ version }}) is open source software
|
<strong>Ghostfolio</strong> is open source software which empowers
|
||||||
which empowers busy folks to have a sharp look of their financial
|
busy folks to have a sharp look of their financial assets and to
|
||||||
assets and to make solid, data-driven investment decisions by
|
make solid, data-driven investment decisions by evaluating automated
|
||||||
evaluating automated static portfolio analysis rules. The project
|
static portfolio analysis rules. The project has been initiated by
|
||||||
has been initiated by
|
|
||||||
<a href="https://dotsilver.ch">Thomas Kaul</a>.
|
<a href="https://dotsilver.ch">Thomas Kaul</a>.
|
||||||
<ng-container *ngIf="lastPublish">
|
<ng-container *ngIf="lastPublish">
|
||||||
This instance has been last published on {{ lastPublish
|
This instance is running Ghostfolio {{ version }} and has been
|
||||||
}}.</ng-container
|
last published on {{ lastPublish }}.</ng-container
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user