showing posts in homepage
This commit is contained in:
parent
435dcb3088
commit
428c241135
@ -21,8 +21,16 @@
|
||||
$("#posts").append
|
||||
(
|
||||
"<div class=\"post\">" +
|
||||
"<div class=\"post_image\">" +
|
||||
"<img src=\"" + "./user_content/" + result[i].author + "/" + result[i].photo_id + "\"></img>" +
|
||||
"</div>"
|
||||
"</div>" +
|
||||
|
||||
"<div class=\"post_info\">" +
|
||||
"<div>Název: " + result[i].title + "</div>" +
|
||||
((result[i].description != null) ? "<div>Popis: " + result[i].description + "</div>" : "") +
|
||||
"<div>Autor: " + result[i].username + "</div>" +
|
||||
"</div>" +
|
||||
"</>"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user