mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Show posts with PDFs
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
@@ -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({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user