mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Display a message when the user does not have latest post.
This commit is contained in:
		@@ -73,10 +73,16 @@ ComunicWeb.pages.latestPosts.main = {
 | 
			
		||||
 | 
			
		||||
		//Process the list of posts
 | 
			
		||||
		for (let index = 0; index < list.length; index++) {
 | 
			
		||||
 | 
			
		||||
			//Display the post
 | 
			
		||||
			ComunicWeb.components.posts.ui.display_post(list[index], boxBody);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		//Check if there aren't any post to display
 | 
			
		||||
		if(list.length == 0){
 | 
			
		||||
 | 
			
		||||
			var message = ComunicWeb.common.messages.createCalloutElem("No post to display", "Posts from you and your friend will appear here...", "info");
 | 
			
		||||
			message.className += " noLatestPosts";
 | 
			
		||||
			boxBody.appendChild(message);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user