showing posts in homepage

This commit is contained in:
Václav Šmejkal 2024-05-24 20:04:01 +02:00
parent 435dcb3088
commit 428c241135
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -21,8 +21,16 @@
$("#posts").append
(
"<div class=\"post\">" +
"<img src=\"" + "./user_content/" + result[i].author + "/" + result[i].photo_id + "\"></img>" +
"</div>"
"<div class=\"post_image\">" +
"<img src=\"" + "./user_content/" + result[i].author + "/" + result[i].photo_id + "\"></img>" +
"</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>" +
"</>"
);
}
}