Compare commits

..

No commits in common. "15c2bd6a1bcbb223ac97dfb99e6a814f841a9aa3" and "39e868daadb2e4adecf1e041a230a039878e7029" have entirely different histories.

6 changed files with 84 additions and 98 deletions

View File

@ -24,6 +24,7 @@ body {
display: flex;
align-items: center;
padding: 10px 20px;
/* width: 100%; */
}
.site-header img.logo {
height: 50px;
@ -33,7 +34,9 @@ body {
font-size: 1.5em;
margin: 0;
}
.container {
padding: 20px;
}
.wrapper {
display: grid;
grid-template-rows: auto 1fr auto;
@ -41,10 +44,9 @@ body {
padding-bottom: 200px;
}
.container {
max-width: 1200px;
width: 90%;
max-width: 900px;
margin: 0 auto;
padding: 20px 0;
}
.container a {
@ -52,35 +54,29 @@ body {
}
.container-fluid {
padding: 20px;
height: 100%;
display: flex;
flex-direction: column;
}
/* Breadcrumb Styles */
.breadcrumb {
margin-bottom: 15px;
font-size: 22px;
}
.breadcrumb a {
font-size: 19px;
text-decoration: none;
color: var(--main-text-color);
margin-right: 5px;
}
.breadcrumb span {
font-size: 19px;
color: #ccc;
margin-left: 5px;
margin-right: 5px;
margin-bottom: 10px;
}
/* Admin Nav Styles */
.admin-nav {
color: #ccc;
border: 1px solid #ccc;
padding: 10px;
background-color: #979797;
}
.admin-nav a {
color: #ccc;
text-decoration: none;
padding: 5px 0;
.separator::before {
content: "\A"; /* Inserts a line break */
white-space: pre; /* Ensures the newline is honored */
}
/* List Styles */

View File

@ -1,15 +1,13 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>{{ title_short }}</title>
<head>
<meta charset="utf-8">
<meta property="og:title" content="{{ title_long }}" />
<meta property="og:description" content="... uns aber, die wir gerettet werden, ist es eine Gotteskraft." />
<meta property="og:image" content="/icon/logo-200x200.png" />
<title>{{ title_short }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="description" content="... uns aber, die wir gerettet werden, ist es eine Gotteskraft.">
<meta name="author" content="{{ title_short }}">
@ -28,9 +26,6 @@
<meta name="mobile-web-app-status-bar-style" content="default">
<meta name="mobile-web-app-title" content="Gottesdienste">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" rel="stylesheet">
<!-- Your CSS -->
<link rel="stylesheet" href="{{ url_for('static', filename='theme.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='app.css') }}">
@ -38,7 +33,7 @@
<link rel="stylesheet" href="{{ url_for('static', filename='audioplayer.css') }}">
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script> const admin_enabled = {{ admin_enabled | tojson | safe }}; </script>
</head>
</head>
<body>
<script src="{{ url_for('static', filename='functions.js') }}"></script>
<header class="site-header">
@ -49,14 +44,14 @@
</header>
<div class="wrapper">
{% if admin_enabled %}
<div class="admin-nav">
<a href="{{ url_for('mylinks') }}">Meine Links</a>
<div style="color: #ccc; border: 1px solid #ccc; padding: 10px; background-color: #979797;">
<a href="{{ url_for('mylinks') }}" class="btn" style="color: #ccc; text-decoration: none;">Meine Links</a>
<span> | </span>
<a href="{{ url_for('connections') }}">Verbindungen</a>
<a href="{{ url_for('connections') }}" class="btn" style="color: #ccc; text-decoration: none;">Verbindungen</a>
<span> | </span>
<a href="{{ url_for('dashboard') }}">Auswertung</a>
<a href="{{ url_for('dashboard') }}" class="btn" style="color: #ccc; text-decoration: none;">Auswertung</a>
<span> | </span>
<a href="{{ url_for('folder_secret_config_editor') }}" id="edit-folder-config" >Ordnerkonfiguration</a>
<a href="{{ url_for('folder_secret_config_editor') }}" class="btn" style="color: #ccc; text-decoration: none;" id="edit-folder-config" >Ordnerkonfiguration</a>
</div>
{% endif %}
<div class="container">

View File

@ -1,23 +1,11 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{% block title %}Meine Links{% endblock %}</title>
<!-- Android Theme Color -->
<meta name="theme-color" content="#000">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='theme.css') }}">
@ -34,19 +22,20 @@
</header>
<div class="wrapper">
<!-- Navigation Bar -->
<div class="admin-nav">
<a href="{{ url_for('index') }}">App</a>
<span> | </span>
<a href="{{ url_for('mylinks') }}">Meine Links</a>
<span> | </span>
<a href="{{ url_for('connections') }}">Verbindungen</a>
<span> | </span>
<a href="{{ url_for('dashboard') }}">Auswertung-Downloads</a>
<span> | </span>
<a href="{{ url_for('songs_dashboard') }}">Auswertung-Wiederholungen</a>
<div style="margin-bottom: 10px; background-color:rgb(187, 187, 187); padding: 5px; ">
<span> </span>
<a href="{{ url_for('index') }}" class="btn btn-sm">App</a>
<span class="btn btn-sm">|</span>
<a href="{{ url_for('mylinks') }}" class="btn btn-sm">Meine Links</a>
<span class="btn btn-sm">|</span>
<a href="{{ url_for('connections') }}" class="btn btn-sm">Verbindungen</a>
<span class="btn btn-sm">|</span>
<a href="{{ url_for('dashboard') }}" class="btn btn-sm">Auswertung-Downloads</a>
<span class="btn btn-sm">|</span>
<a href="{{ url_for('songs_dashboard') }}" class="btn btn-sm">Auswertung-Wiederholungen</a>
{% if admin_enabled %}
<span> | </span>
<a href="{{ url_for('folder_secret_config_editor') }}" id="edit-folder-config">Ordnerkonfiguration</a>
<span class="btn btn-sm">|</span>
<a href="{{ url_for('folder_secret_config_editor') }}" class="btn btn-sm" id="edit-folder-config">Ordnerkonfiguration</a>
{% endif %}
</div>

View File

@ -8,7 +8,7 @@
{% block content %}
<!-- Main Container -->
<div class="container">
<div class="container-fluid px-4">
<h2>Auswertung-Downloads</h2>
<!-- Dropdown Controls -->
<div class="mb-4 d-flex flex-wrap gap-2">

View File

@ -178,11 +178,11 @@
const actions = document.createElement('div');
if (!isEdit) {
const openButton = document.createElement('button');
openButton.className = 'btn btn-secondary btn-sm me-2';
openButton.onclick = () => window.open(`/?secret=${rec.secret}`, '_self');
openButton.textContent = 'Link öffnen';
actions.appendChild(openButton);
const openLink = document.createElement('a');
openLink.className = 'btn btn-secondary btn-sm me-2';
openLink.href = `/?secret=${rec.secret}`;
openLink.textContent = 'Link öffnen';
actions.appendChild(openLink);
}
const delBtn = document.createElement('button');

View File

@ -6,7 +6,7 @@
{# pagespecific content #}
{% block content %}
<div class="container">
<div class="container-fluid">
<h2>Übersicht deiner gültigen Links</h2>
<div class="row">
{% if valid_secrets %}
@ -21,8 +21,11 @@
<p class="card-text">
<small class="text-muted">Gültig bis: {{ secret_valid_to[secret] }}</small>
</p>
<button class="btn btn-secondary btn-sm" onclick="window.open('{{ secret_url[secret] }}', '_self')">Link öffnen</button>
<button class="btn btn-secondary btn-sm" onclick="toClipboard('{{ secret_url[secret] }}')">Link kopieren</button>
<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="toClipboard('{{ secret_url[secret] }}')">
Link kopieren
</button>
<br>
<form method="post" action="{{ url_for('remove_secret') }}" class="mt-3">
<input type="hidden" name="secret" value="{{ secret }}">
@ -58,8 +61,11 @@
<p class="card-text">
<small class="text-muted">Gültig bis: {{ token_valid_to[token] }}</small>
</p>
<button class="btn btn-secondary btn-sm" onclick="window.open('{{ token_url[token] }}', '_self')">Link öffnen</button>
<button class="btn btn-secondary btn-sm" onclick="toClipboard('{{ token_url[token] }}')">Link kopieren</button>
<a href="{{ token_url[token] }}" class="btn btn-secondary btn-sm">Link öffnen</a>
<button class="btn btn-secondary btn-sm"
onclick="toClipboard('{{ token_url[token] }}')">
Link kopieren
</button>
<br>
<form method="post" action="{{ url_for('remove_token') }}" class="mt-3">
<input type="hidden" name="token" value="{{ token }}">