Tool-Aktionen
This commit is contained in:
parent
653e8d03de
commit
a3736c9dbd
@ -96,27 +96,27 @@ const currentUrl = Astro.url.href;
|
|||||||
// Show authentication required message (no auto-redirect)
|
// Show authentication required message (no auto-redirect)
|
||||||
if (contentArea) {
|
if (contentArea) {
|
||||||
const loginUrl = '/api/auth/login?returnTo=' + encodeURIComponent(window.location.href);
|
const loginUrl = '/api/auth/login?returnTo=' + encodeURIComponent(window.location.href);
|
||||||
contentArea.innerHTML = [
|
contentArea.innerHTML = [
|
||||||
'<div class="gated-content-block">',
|
'<div class="gated-content-block">',
|
||||||
'<div class="gated-icon">🔒</div>',
|
'<div class="gated-icon">🔒</div>',
|
||||||
'<h3 class="gated-title">Authentifizierung erforderlich</h3>',
|
'<h3 class="gated-title">Authentifizierung erforderlich</h3>',
|
||||||
'<p class="gated-description">Dieser Artikel enthält geschützte Inhalte und ist nur für authentifizierte Benutzer zugänglich.</p>',
|
'<p class="gated-description">Dieser Artikel enthält geschützte Inhalte und ist nur für authentifizierte Benutzer zugänglich.</p>',
|
||||||
'<div class="gated-actions">',
|
'<div style="display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem;">',
|
||||||
'<a href="' + loginUrl + '" class="btn btn-primary">',
|
'<a href="' + loginUrl + '" class="btn btn-primary" style="min-width: 140px; text-align: center;">',
|
||||||
'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 0.5rem;">',
|
'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 0.5rem;">',
|
||||||
'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/>',
|
'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/>',
|
||||||
'<polyline points="10 17 15 12 10 7"/>',
|
'<polyline points="10 17 15 12 10 7"/>',
|
||||||
'<line x1="15" y1="12" x2="3" y2="12"/>',
|
'<line x1="15" y1="12" x2="3" y2="12"/>',
|
||||||
'</svg>',
|
'</svg>',
|
||||||
'Anmelden',
|
'Anmelden',
|
||||||
'</a>',
|
'</a>',
|
||||||
'<a href="/knowledgebase" class="btn btn-secondary">Zurück zur Übersicht</a>',
|
'<a href="/knowledgebase" class="btn btn-secondary" style="min-width: 140px; text-align: center;">Zurück zur Übersicht</a>',
|
||||||
'</div>',
|
'</div>',
|
||||||
'<div class="gated-help">',
|
'<div class="gated-help">',
|
||||||
'<small>Nach der Anmeldung werden Sie automatisch zu diesem Artikel zurückgeleitet.</small>',
|
'<small>Nach der Anmeldung werden Sie automatisch zu diesem Artikel zurückgeleitet.</small>',
|
||||||
'</div>',
|
'</div>',
|
||||||
'</div>'
|
'</div>'
|
||||||
].join('');
|
].join('');
|
||||||
contentArea.style.display = 'block';
|
contentArea.style.display = 'block';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -287,7 +287,7 @@ const currentUrl = Astro.url.href;
|
|||||||
<!-- Article Footer -->
|
<!-- Article Footer -->
|
||||||
<footer class="article-footer">
|
<footer class="article-footer">
|
||||||
<div class="article-footer-actions">
|
<div class="article-footer-actions">
|
||||||
<h3>Tool-Aktionen</h3>
|
<h3>Links</h3>
|
||||||
<div class="footer-actions-grid">
|
<div class="footer-actions-grid">
|
||||||
{isStandalone ? (
|
{isStandalone ? (
|
||||||
<a href="/knowledgebase" class="btn btn-primary">
|
<a href="/knowledgebase" class="btn btn-primary">
|
||||||
@ -679,7 +679,10 @@ const currentUrl = Astro.url.href;
|
|||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-bottom: 1.5rem;
|
}
|
||||||
|
|
||||||
|
.gated-actions .btn {
|
||||||
|
margin: 0 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gated-help {
|
.gated-help {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user