mirror of
https://git.checksum.fail/alec/slon.git
synced 2025-12-08 20:19:56 +02:00
Slon/Static/js/statuses: Make replies_count clickable if > 0
This commit is contained in:
@@ -105,7 +105,9 @@ function updateStatuses(user, statuses, shouldSort=true) {
|
||||
}
|
||||
content_html += "</div>";
|
||||
if (user != "") {
|
||||
content_html += status["replies_count"] ? "<a href=" + status["url"] + ">" : "";
|
||||
content_html += "<span class=status-counts>💬 " + status["replies_count"] + " 🚀 " + status["reblogs_count"] + " ⭐ " + status["favourites_count"] + "</span>";
|
||||
content_html += status["replies_count"] ? "</a>" : "";
|
||||
}
|
||||
if (status["application"] && status["application"]["website"]) {
|
||||
content_html += "<div class=status-footer>via <a href=" + status["application"]["website"] + ">" + status["application"]["name"] + "</a></div>";
|
||||
|
||||
Reference in New Issue
Block a user