Skip to content
Snippets Groups Projects
Commit cbc8e2b9 authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel
Browse files

Merge branch '729-insert-open-hub-statistics-at-the-foot-of-the-imprint' into 'staging'

Resolve "Insert Open Hub statistics at the foot of the imprint"

Closes #729

See merge request arsnova/frag.jetzt!751
parents 2b563806 7e643ec7
No related merge requests found
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
<mat-dialog-content tabindex="0"> <mat-dialog-content tabindex="0">
<app-imprint-en *ngIf="currentLang=='en'"></app-imprint-en> <app-imprint-en *ngIf="currentLang=='en'"></app-imprint-en>
<app-imprint-de *ngIf="currentLang=='de'"></app-imprint-de> <app-imprint-de *ngIf="currentLang=='de'"></app-imprint-de>
<iframe [src]="safeURL"
scrolling="no"
marginHeight="0"
marginWidth="0"
style="height: 220px; width: 370px; border: none"></iframe>
</mat-dialog-content> </mat-dialog-content>
<app-dialog-action-buttons <app-dialog-action-buttons
......
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { MatDialogRef } from '@angular/material/dialog'; import { MatDialogRef } from '@angular/material/dialog';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
@Component({ @Component({
selector: 'app-imprint', selector: 'app-imprint',
...@@ -9,12 +10,17 @@ import { MatDialogRef } from '@angular/material/dialog'; ...@@ -9,12 +10,17 @@ import { MatDialogRef } from '@angular/material/dialog';
export class ImprintComponent implements OnInit { export class ImprintComponent implements OnInit {
deviceType: string; deviceType: string;
currentLang: string; currentLang: string;
safeURL: SafeResourceUrl;
constructor(private dialogRef: MatDialogRef<ImprintComponent>) {
constructor(private dialogRef: MatDialogRef<ImprintComponent>,
private sanitizer: DomSanitizer) {
} }
ngOnInit() { ngOnInit() {
this.currentLang = localStorage.getItem('currentLang'); this.currentLang = localStorage.getItem('currentLang');
this.safeURL = this.sanitizer
.bypassSecurityTrustResourceUrl('https://www.openhub.net/p/frag-jetzt/widgets/project_factoids_stats');
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment