Add title to publitas section like a intro "Sección referente en el documento..."

This commit is contained in:
Siroco 2018-12-07 15:37:37 +01:00
parent d1cd6bd6a6
commit c29535622a
3 changed files with 7 additions and 4 deletions

View File

@ -0,0 +1 @@
.section-publitas div.title-pdf {width:100%;margin-bottom:50px;}

View File

@ -41,6 +41,8 @@
</section> </section>
<section class="section-publitas"> <section class="section-publitas">
<div class="row" *ngIf="page.pdf"> <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 class="col-md-12">
<!-- <div><h3>{{page.pdf.title}}</h3></div> --> <!-- <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> <simple-pdf-viewer #pdfViewer [src]="page.pdf.url" [removePageBorders]="true" (onProgress)="onProgressPDF($event,page.pdf.filesize)"></simple-pdf-viewer>

View File

@ -91,10 +91,10 @@ export class PageComponent implements OnInit {
this.pages = data; this.pages = data;
this.pages.forEach( (p) => { this.pages.forEach( (p) => {
this.pageService.currentPage = p as PageItem; this.pageService.currentPage = p as PageItem;
var safeUrl:SafeUrl; // var safeUrl:SafeUrl;
safeUrl = this.sanitizer.bypassSecurityTrustUrl('https://backend.industriapaisaia.eus/wp-content/uploads/2018/10/test.pdf'); // safeUrl = this.sanitizer.bypassSecurityTrustUrl('https://backend.industriapaisaia.eus/wp-content/uploads/2018/10/test.pdf');
p['publitas_link_sanitize'] = safeUrl; // p['publitas_link_sanitize'] = safeUrl;
if (p['pdf']) { p['pdfUrl'] = p['pdf']['url']; }; // if (p['pdf']) { p['pdfUrl'] = p['pdf']['url']; };
}) })
}); });
} }