Archived
Adds default for no posts
This commit is contained in:
1 parent
3ed2c0c963
commit
aceee9b115
1 file changed
+3
@@ -5,6 +5,9 @@ var query_params = {
|
||||
|
||||
function format_posts(posts) {
|
||||
var html = '';
|
||||
if(posts.length === 0) {
|
||||
html = '<p>Ingen planlagte arrangementer :\'(<p>';
|
||||
}
|
||||
for(var i=0; i< posts.length; i++) {
|
||||
var post = posts[i];
|
||||
html += '<li><a href="'+ post.url +'"><div>';
|
||||
|
||||
Reference in new issue
Block a user