Add title to publitas section like a intro "Sección referente en el documento..."
This commit is contained in:
parent
d1cd6bd6a6
commit
c29535622a
@ -0,0 +1 @@
|
||||
.section-publitas div.title-pdf {width:100%;margin-bottom:50px;}
|
@ -41,6 +41,8 @@
|
||||
</section>
|
||||
<section class="section-publitas">
|
||||
<div class="row" *ngIf="page.pdf">
|
||||
<div *ngIf="page.parent!=49" class="title-pdf"><span i18n>Sección referente a</span> <strong>{{page.title}}</strong> <span i18n>en la publicación</span> <strong>{{page.pdf.title}}</strong></div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<!-- <div><h3>{{page.pdf.title}}</h3></div> -->
|
||||
<simple-pdf-viewer #pdfViewer [src]="page.pdf.url" [removePageBorders]="true" (onProgress)="onProgressPDF($event,page.pdf.filesize)"></simple-pdf-viewer>
|
||||
|
@ -91,10 +91,10 @@ export class PageComponent implements OnInit {
|
||||
this.pages = data;
|
||||
this.pages.forEach( (p) => {
|
||||
this.pageService.currentPage = p as PageItem;
|
||||
var safeUrl:SafeUrl;
|
||||
safeUrl = this.sanitizer.bypassSecurityTrustUrl('https://backend.industriapaisaia.eus/wp-content/uploads/2018/10/test.pdf');
|
||||
p['publitas_link_sanitize'] = safeUrl;
|
||||
if (p['pdf']) { p['pdfUrl'] = p['pdf']['url']; };
|
||||
// var safeUrl:SafeUrl;
|
||||
// safeUrl = this.sanitizer.bypassSecurityTrustUrl('https://backend.industriapaisaia.eus/wp-content/uploads/2018/10/test.pdf');
|
||||
// p['publitas_link_sanitize'] = safeUrl;
|
||||
// if (p['pdf']) { p['pdfUrl'] = p['pdf']['url']; };
|
||||
})
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user