Slon/Static/js/statuses: Make replies_count clickable if > 0
This commit is contained in:
parent
deaae41ae6
commit
6f57c05145
1 changed files with 2 additions and 0 deletions
|
@ -105,7 +105,9 @@ function updateStatuses(user, statuses, shouldSort=true) {
|
||||||
}
|
}
|
||||||
content_html += "</div>";
|
content_html += "</div>";
|
||||||
if (user != "") {
|
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 += "<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"]) {
|
if (status["application"] && status["application"]["website"]) {
|
||||||
content_html += "<div class=status-footer>via <a href=" + status["application"]["website"] + ">" + status["application"]["name"] + "</a></div>";
|
content_html += "<div class=status-footer>via <a href=" + status["application"]["website"] + ">" + status["application"]["name"] + "</a></div>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue