Show posts with PDFs

This commit is contained in:
Pierre HUBERT 2019-01-14 19:22:15 +01:00
parent 2035b85a06
commit f3efb3d390
2 changed files with 21 additions and 0 deletions

View File

@ -79,4 +79,11 @@ h1 {
.post .post-comments .comment .comment-image {
max-width: 100px;
}
.post .post-btn-pdf {
margin: auto;
display: block;
width: 100%;
max-width: 150px;
}

View File

@ -308,6 +308,20 @@ function ApplyPosts(){
}
//Post with PDF
if(post.kind == "pdf"){
createElem2({
appendTo: cardContent,
type: "a",
class: "waves-effect waves-light btn-large post-btn-pdf",
innerHTML: '<i class="material-icons left">picture_as_pdf</i> PDF',
href: getFilePathFromURL(post.file_path_url)
});
}
//Display the list of comments
let postComments = createElem2({