Branding und Übersetzung

This commit is contained in:
Norbert Tretkowski 2023-11-05 10:55:58 +01:00
parent a043940301
commit 8dde3b2827
4 changed files with 13 additions and 13 deletions

View file

@ -1,6 +1,6 @@
{
"navbarBrandText": "Mastowall 1.1 - written by ChatGPT4 - Prompting: Ralf Stockmann (rstockm)",
"defaultServerUrl": "https://mastodon.social",
"navbarColor": "#333355",
"navbarBrandText": "Netzbegrünung Mastowall",
"defaultServerUrl": "https://gruene.social",
"navbarColor": "#008939",
"includeReplies": true
}

View file

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mastowall 1.1</title>
<title>Netzbegrünung Mastowall</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="styles.css">
<link rel="apple-touch-icon" href="mastowall-favicon.png">
@ -52,8 +52,8 @@
<footer class="footer text-center py-4 mt-5">
<div class="container">
<span class="text-muted">Host your own Mastowall - check </span>
<a href="https://github.com/rstockm/mastowall" target="_blank">GitHub</a>
<a href="https://github.com/rstockm/mastowall" target="_blank">Netzbegrünung</a>
<span class="text-muted"> - Verein für GRÜNE Netzkultur e.V.</span>
</div>
</footer>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View file

@ -16,20 +16,20 @@ const secondsAgo = date => Math.floor((new Date() - date) / 1000);
const timeAgo = function(seconds) {
// An array of intervals for years, months, days, hours, and minutes.
const intervals = [
{ limit: 31536000, text: 'years' },
{ limit: 2592000, text: 'months' },
{ limit: 86400, text: 'days' },
{ limit: 3600, text: 'hours' },
{ limit: 60, text: 'minutes' }
{ limit: 31536000, text: 'Jahren' },
{ limit: 2592000, text: 'Monaten' },
{ limit: 86400, text: 'Tagen' },
{ limit: 3600, text: 'Stunden' },
{ limit: 60, text: 'Minuten' }
];
// Loop through the intervals to find which one is the best fit.
for (let interval of intervals) {
if (seconds >= interval.limit) {
return Math.floor(seconds / interval.limit) + ` ${interval.text} ago`;
return "Vor " + Math.floor(seconds / interval.limit) + ` ${interval.text}`;
}
}
return Math.floor(seconds) + " seconds ago";
return "Vor " + Math.floor(seconds) + " Sekunden";
};
let includeReplies;