Slon/Static/html/about: Add about page
You can set the content for this page using the "about_page_content" key in database settings.
This commit is contained in:
parent
d64fbfdea8
commit
5c8839db20
3 changed files with 38 additions and 3 deletions
|
@ -7,6 +7,10 @@ function updateStatusContainers() {
|
|||
let horizontal_fill_count = ((pc.offsetWidth - 32) / 16);
|
||||
let url = pc.getElementsByTagName('url')[0].textContent;
|
||||
let marqueeHref = url == "Unnamed Task" ? window.location : url;
|
||||
if (url.substring(0,1) == '_') {
|
||||
url = url.substring(1);
|
||||
marqueeHref = window.location;
|
||||
}
|
||||
|
||||
post_html += "<b>\u2554";
|
||||
for (var i = 0; i < (horizontal_fill_count / 2) - ((240 / 16) / 2); i++) {
|
||||
|
@ -47,6 +51,7 @@ function updateStatuses(user, statuses) {
|
|||
let container = document.createElement('div');
|
||||
container.className = "status-container";
|
||||
// Render user profile
|
||||
if (user != "")
|
||||
{
|
||||
let content = document.createElement('div');
|
||||
content.className = "status-content";
|
||||
|
@ -97,7 +102,9 @@ function updateStatuses(user, statuses) {
|
|||
}
|
||||
}
|
||||
content_html += "</div>";
|
||||
content_html += "<span class=status-counts>💬 " + status["replies_count"] + " 🚀 " + status["reblogs_count"] + " ⭐ " + status["favourites_count"] + "</span>";
|
||||
if (user != "") {
|
||||
content_html += "<span class=status-counts>💬 " + status["replies_count"] + " 🚀 " + status["reblogs_count"] + " ⭐ " + status["favourites_count"] + "</span>";
|
||||
}
|
||||
if (status["application"] && status["application"]["website"]) {
|
||||
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