mirror of
https://github.com/Crazyco-xyz/48hr.email.git
synced 2026-01-09 03:09:36 +01:00
[Chore]: SEO Part 2
Electric Boogaloo (hopefully not)
This commit is contained in:
parent
12069300d0
commit
cc4e3ddfbd
6 changed files with 17 additions and 22 deletions
|
|
@ -3,9 +3,9 @@
|
|||
{% block header %}
|
||||
<div class="action-links">
|
||||
{% if showUnlockButton %}
|
||||
<a href="#" id="unlockBtn">Unlock</a>
|
||||
<a href="#" id="unlockBtn" aria-label="Unlock inbox">Unlock</a>
|
||||
{% endif %}
|
||||
<a href="/">Logout</a>
|
||||
<a href="/" aria-label="Return to home">Logout</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,18 +4,18 @@
|
|||
<div class="action-links">
|
||||
{% if lockEnabled %}
|
||||
{% if isLocked and hasAccess %}
|
||||
<a href="#" id="removeLockBtn">Remove Lock</a>
|
||||
<a href="#" id="removeLockBtn" aria-label="Remove password lock">Remove Lock</a>
|
||||
{% elseif isLocked %}
|
||||
<a href="#" id="unlockBtn">Unlock</a>
|
||||
<a href="#" id="unlockBtn" aria-label="Unlock inbox">Unlock</a>
|
||||
{% else %}
|
||||
<a href="#" id="lockBtn">Protect Inbox</a>
|
||||
<a href="#" id="lockBtn" aria-label="Protect inbox with password">Protect Inbox</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<a href="/inbox/{{ address }}/delete-all">Wipe Inbox</a>
|
||||
<a href="/inbox/{{ address }}/delete-all" aria-label="Delete all emails">Wipe Inbox</a>
|
||||
{% if lockEnabled and hasAccess %}
|
||||
<a href="/lock/logout">Logout</a>
|
||||
<a href="/lock/logout" aria-label="Logout">Logout</a>
|
||||
{% else %}
|
||||
<a href="/logout">Logout</a>
|
||||
<a href="/logout" aria-label="Logout">Logout</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -78,8 +78,8 @@
|
|||
<body{% if bodyClass %} class="{{ bodyClass }}"{% endif %}>
|
||||
<main>
|
||||
<div class="header">
|
||||
<a href="/">
|
||||
<img src="/images/logo.png" class="logo" style="max-width: 75px">
|
||||
<a href="/" aria-label="48hr.email home">
|
||||
<img src="/images/logo.png" class="logo" alt="48hr.email logo" style="max-width: 75px">
|
||||
</a>
|
||||
{% block header %}{% endblock %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
{% block header %}
|
||||
<div class="action-links">
|
||||
<a href="/inbox/{{ address }}">← Return to inbox</a>
|
||||
<a href="/inbox/{{ address }}/{{ uid }}/delete">Delete Email</a>
|
||||
<a href="/inbox/{{ address }}/{{ uid }}/raw" target="_blank">View Raw</a>
|
||||
<a href="/inbox/{{ address }}" aria-label="Return to inbox">← Return to inbox</a>
|
||||
<a href="/inbox/{{ address }}/{{ uid }}/delete" aria-label="Delete this email">Delete Email</a>
|
||||
<a href="/inbox/{{ address }}/{{ uid }}/raw" target="_blank" aria-label="View raw email">View Raw</a>
|
||||
{% if lockEnabled and isLocked and hasAccess %}
|
||||
<a href="/lock/logout">Logout</a>
|
||||
<a href="/lock/logout" aria-label="Logout">Logout</a>
|
||||
{% else %}
|
||||
<a href="/logout">Logout</a>
|
||||
<a href="/logout" aria-label="Logout">Logout</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -89,12 +89,7 @@ Twig.extendFilter('sanitizeHtml', sanitizeHtmlTwigFilter)
|
|||
app.use((req, res, next) => {
|
||||
const isImapReady = req.app.get('isImapReady')
|
||||
if (!isImapReady && !req.path.startsWith('/images') && !req.path.startsWith('/javascripts') && !req.path.startsWith('/stylesheets') && !req.path.startsWith('/dependencies')) {
|
||||
return res.render('loading', {
|
||||
branding: config.http.branding,
|
||||
purgeTime: purgeTime,
|
||||
count: "NaN Emails"
|
||||
|
||||
})
|
||||
return res.render('loading')
|
||||
}
|
||||
next()
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "48hr.email",
|
||||
"version": "1.7.2",
|
||||
"version": "1.7.3",
|
||||
"private": false,
|
||||
"description": "48hr.email is your favorite open-source tempmail client.",
|
||||
"keywords": [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue