Skip to content
Snippets Groups Projects
Commit 5f2d68b1 authored by Ruben Bimberg's avatar Ruben Bimberg :computer:
Browse files

Add Openhub statistics

parent 2b563806
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, SafeScript } 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: SafeScript;
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