update style
This commit is contained in:
parent
41e5f692f6
commit
b3160b82c1
@ -24,7 +24,6 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
/* width: 100%; */
|
|
||||||
}
|
}
|
||||||
.site-header img.logo {
|
.site-header img.logo {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
@ -34,9 +33,7 @@ body {
|
|||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.container {
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: auto 1fr auto;
|
grid-template-rows: auto 1fr auto;
|
||||||
@ -44,9 +41,10 @@ body {
|
|||||||
padding-bottom: 200px;
|
padding-bottom: 200px;
|
||||||
}
|
}
|
||||||
.container {
|
.container {
|
||||||
|
max-width: 1200px;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
max-width: 900px;
|
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
padding: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container a {
|
.container a {
|
||||||
@ -54,9 +52,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container-fluid {
|
.container-fluid {
|
||||||
height: 100%;
|
padding: 20px;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Breadcrumb Styles */
|
/* Breadcrumb Styles */
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<!-- Main Container -->
|
<!-- Main Container -->
|
||||||
<div class="container-fluid px-4">
|
<div class="container">
|
||||||
<h2>Auswertung-Downloads</h2>
|
<h2>Auswertung-Downloads</h2>
|
||||||
<!-- Dropdown Controls -->
|
<!-- Dropdown Controls -->
|
||||||
<div class="mb-4 d-flex flex-wrap gap-2">
|
<div class="mb-4 d-flex flex-wrap gap-2">
|
||||||
|
|||||||
@ -178,11 +178,11 @@
|
|||||||
const actions = document.createElement('div');
|
const actions = document.createElement('div');
|
||||||
|
|
||||||
if (!isEdit) {
|
if (!isEdit) {
|
||||||
const openLink = document.createElement('a');
|
const openButton = document.createElement('button');
|
||||||
openLink.className = 'btn btn-secondary btn-sm me-2';
|
openButton.className = 'btn btn-secondary btn-sm me-2';
|
||||||
openLink.href = `/?secret=${rec.secret}`;
|
openButton.onclick = () => window.open(`/?secret=${rec.secret}`, '_self');
|
||||||
openLink.textContent = 'Link öffnen';
|
openButton.textContent = 'Link öffnen';
|
||||||
actions.appendChild(openLink);
|
actions.appendChild(openButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
const delBtn = document.createElement('button');
|
const delBtn = document.createElement('button');
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
{# page‐specific content #}
|
{# page‐specific content #}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container-fluid">
|
<div class="container">
|
||||||
<h2>Übersicht deiner gültigen Links</h2>
|
<h2>Übersicht deiner gültigen Links</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{% if valid_secrets %}
|
{% if valid_secrets %}
|
||||||
@ -21,11 +21,8 @@
|
|||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
<small class="text-muted">Gültig bis: {{ secret_valid_to[secret] }}</small>
|
<small class="text-muted">Gültig bis: {{ secret_valid_to[secret] }}</small>
|
||||||
</p>
|
</p>
|
||||||
<a href="{{ secret_url[secret] }}" class="btn btn-secondary btn-sm" style="text-decoration: none;">Link öffnen</a>
|
<button class="btn btn-secondary btn-sm" onclick="window.open('{{ secret_url[secret] }}', '_self')">Link öffnen</button>
|
||||||
<button class="btn btn-secondary btn-sm"
|
<button class="btn btn-secondary btn-sm" onclick="toClipboard('{{ secret_url[secret] }}')">Link kopieren</button>
|
||||||
onclick="toClipboard('{{ secret_url[secret] }}')">
|
|
||||||
Link kopieren
|
|
||||||
</button>
|
|
||||||
<br>
|
<br>
|
||||||
<form method="post" action="{{ url_for('remove_secret') }}" class="mt-3">
|
<form method="post" action="{{ url_for('remove_secret') }}" class="mt-3">
|
||||||
<input type="hidden" name="secret" value="{{ secret }}">
|
<input type="hidden" name="secret" value="{{ secret }}">
|
||||||
@ -61,11 +58,8 @@
|
|||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
<small class="text-muted">Gültig bis: {{ token_valid_to[token] }}</small>
|
<small class="text-muted">Gültig bis: {{ token_valid_to[token] }}</small>
|
||||||
</p>
|
</p>
|
||||||
<a href="{{ token_url[token] }}" class="btn btn-secondary btn-sm">Link öffnen</a>
|
<button class="btn btn-secondary btn-sm" onclick="window.open('{{ token_url[token] }}', '_self')">Link öffnen</button>
|
||||||
<button class="btn btn-secondary btn-sm"
|
<button class="btn btn-secondary btn-sm" onclick="toClipboard('{{ token_url[token] }}')">Link kopieren</button>
|
||||||
onclick="toClipboard('{{ token_url[token] }}')">
|
|
||||||
Link kopieren
|
|
||||||
</button>
|
|
||||||
<br>
|
<br>
|
||||||
<form method="post" action="{{ url_for('remove_token') }}" class="mt-3">
|
<form method="post" action="{{ url_for('remove_token') }}" class="mt-3">
|
||||||
<input type="hidden" name="token" value="{{ token }}">
|
<input type="hidden" name="token" value="{{ token }}">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user