mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 13:59:23 +00:00
Show posts with PDFs
This commit is contained in:
parent
2035b85a06
commit
f3efb3d390
@ -80,3 +80,10 @@ h1 {
|
|||||||
.post .post-comments .comment .comment-image {
|
.post .post-comments .comment .comment-image {
|
||||||
max-width: 100px;
|
max-width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post .post-btn-pdf {
|
||||||
|
margin: auto;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 150px;
|
||||||
|
}
|
@ -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
|
//Display the list of comments
|
||||||
let postComments = createElem2({
|
let postComments = createElem2({
|
||||||
|
Loading…
Reference in New Issue
Block a user