add variables from env in footer

This commit is contained in:
Baptiste Lemoine 2020-10-31 16:44:09 +01:00
parent c3972694cb
commit b0026fabc4
2 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,10 @@
<footer class="footer"> <footer class="footer">
<div class="content has-text-centered"> <div class="content has-text-centered">
<p> <p>
Framadate - libérez vos sondages. <img class="app-logo logo" *ngIf="env.appLogo" src="{{ env.appLogo }}" alt="{{ env.appTitle }}" />
<i class="fa fa-copyleft"></i> Logiciel libre sous licence AGPL v3.
{{ env.appTitle }} - {{ env.appVersion }} - libérez vos sondages. <i class="fa fa-copyleft"></i> Logiciel
libre sous licence AGPL v3.
<a href="https://framagit.org/framasoft/framadate/funky-framadate-front"> <a href="https://framagit.org/framasoft/framadate/funky-framadate-front">
<i class="fa fa-gitlab"></i> Sources</a <i class="fa fa-gitlab"></i> Sources</a
> >

View File

@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { environment } from '../../../../environments/environment';
@Component({ @Component({
selector: 'app-footer', selector: 'app-footer',
@ -6,6 +7,7 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./footer.component.scss'], styleUrls: ['./footer.component.scss'],
}) })
export class FooterComponent implements OnInit { export class FooterComponent implements OnInit {
public env = environment;
constructor() {} constructor() {}
ngOnInit(): void {} ngOnInit(): void {}