WEB-599 Display the Backend info in the footer of the WebApp Application using the envar MIFOS_DISPLAY_BACKEND_INFO (#3015)
This commit is contained in:
@@ -51,6 +51,24 @@
|
||||
{{ server }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="footer-content">{{ 'labels.version.Username' | translate }}</td>
|
||||
<td class="right footer-content">
|
||||
{{ username }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="footer-content">{{ 'labels.version.Name' | translate }}</td>
|
||||
<td class="right footer-content">
|
||||
{{ name }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="footer-content">{{ 'labels.version.Render Time' | translate }}</td>
|
||||
<td class="right footer-content">
|
||||
{{ renderTime | date: 'dd MMMM yyyy HH:mm:ss' }}
|
||||
</td>
|
||||
</tr>
|
||||
@if (isBusinessDateDefined) {
|
||||
<tr>
|
||||
<td class="footer-content">{{ 'labels.text.Current Business Date' | translate }}:</td>
|
||||
|
||||
@@ -43,6 +43,10 @@ export class FooterComponent implements OnInit, OnDestroy {
|
||||
private dateUtils = inject(Dates);
|
||||
private versionService = inject(VersionService);
|
||||
|
||||
username: string = '';
|
||||
name: string = '';
|
||||
renderTime: Date = new Date();
|
||||
|
||||
@Input() styleClass: string = '';
|
||||
@Input() variant: 'default' | 'compact' = 'default';
|
||||
|
||||
@@ -72,6 +76,8 @@ export class FooterComponent implements OnInit, OnDestroy {
|
||||
|
||||
constructor() {
|
||||
this.displayBackEndInfo = environment.displayBackEndInfo === 'true';
|
||||
this.setUserInfo();
|
||||
this.renderTime = new Date();
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -104,6 +110,18 @@ export class FooterComponent implements OnInit, OnDestroy {
|
||||
this.versions.fineract.hash = buildVersion[1];
|
||||
}
|
||||
});
|
||||
this.setUserInfo();
|
||||
}
|
||||
}
|
||||
|
||||
setUserInfo() {
|
||||
const credentials = this.authenticationService.getCredentials();
|
||||
if (credentials) {
|
||||
this.username = credentials.username;
|
||||
this.name = credentials.staffDisplayName || credentials.username;
|
||||
} else {
|
||||
this.username = '';
|
||||
this.name = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "Instanci",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Server"
|
||||
"Server": "Server",
|
||||
"Username": "Uživatelské jméno",
|
||||
"Name": "Jméno",
|
||||
"Render Time": "Doba vykreslování"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Akruální (periodické)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "Mieter",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Server"
|
||||
"Server": "Server",
|
||||
"Username": "Benutzername",
|
||||
"Name": "Name",
|
||||
"Render Time": "Renderzeit"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Abgrenzung (periodisch)",
|
||||
|
||||
@@ -289,7 +289,10 @@
|
||||
"Tenant": "Tenant",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Server"
|
||||
"Server": "Server",
|
||||
"Username": "Username",
|
||||
"Name": "Name",
|
||||
"Render Time": "Render Time"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Accrual (periodic)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "Instancia",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Servidor"
|
||||
"Server": "Servidor",
|
||||
"Username": "Nombre de usuario",
|
||||
"Name": "Nombre",
|
||||
"Render Time": "Tiempo de renderizado"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Devengo (periódico)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "Instancia",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Servidor"
|
||||
"Server": "Servidor",
|
||||
"Username": "Usuario",
|
||||
"Name": "Nombre",
|
||||
"Render Time": "Tiempo de renderizado"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Devengo (periódico)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "Locataire",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Serveur"
|
||||
"Server": "Serveur",
|
||||
"Username": "Nom d'utilisateur",
|
||||
"Name": "Nom",
|
||||
"Render Time": "Temps de rendu"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Accumulation (périodique)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "Inquilino",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Server"
|
||||
"Server": "Server",
|
||||
"Username": "Nome utente",
|
||||
"Name": "Nome",
|
||||
"Render Time": "Tempo di rendering"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Accantonamento (periodico)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "임차인",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "서버"
|
||||
"Server": "서버",
|
||||
"Username": "사용자 이름",
|
||||
"Name": "이름",
|
||||
"Render Time": "렌더링 시간"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "발생(정기적)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "Nuomininkas",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Serveris"
|
||||
"Server": "Serveris",
|
||||
"Username": "Vartotojo vardas",
|
||||
"Name": "Vardas",
|
||||
"Render Time": "Atvaizdavimo laikas"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Kaupiamasis (periodinis)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "Nomnieks",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Serveris"
|
||||
"Server": "Serveris",
|
||||
"Username": "Lietotājvārds",
|
||||
"Name": "Vārds",
|
||||
"Render Time": "Attēlošanas laiks"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Uzkrāšana (periodiski)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "भाडामा लिने व्यक्ति",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "सर्भर"
|
||||
"Server": "सर्भर",
|
||||
"Username": "प्रयोगकर्ता नाम",
|
||||
"Name": "नाम",
|
||||
"Render Time": "प्रस्तुति समय"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "उपार्जन (आवधिक)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "Inquilino",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Servidor"
|
||||
"Server": "Servidor",
|
||||
"Username": "Nome de usuário",
|
||||
"Name": "Nome",
|
||||
"Render Time": "Tempo de renderização"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Acumulação (periódica)",
|
||||
|
||||
@@ -288,7 +288,10 @@
|
||||
"Tenant": "Mpangaji",
|
||||
"Mifos WebApp": "Mifos® WebApp",
|
||||
"Apache Fineract": "Apache Fineract®",
|
||||
"Server": "Seva"
|
||||
"Server": "Seva",
|
||||
"Username": "Jina la mtumiaji",
|
||||
"Name": "Jina",
|
||||
"Render Time": "Muda wa uwasilishaji"
|
||||
},
|
||||
"accounting": {
|
||||
"Accrual (periodic)": "Accrual (mara kwa mara)",
|
||||
|
||||
Reference in New Issue
Block a user