letzte korrekturen und aufräumen
This commit is contained in:
@@ -24,15 +24,15 @@
|
||||
|
||||
<!-- Websuche: ohne Input-BG/Border -->
|
||||
<div class="glassmorphism p-4 shadow-lg mb-6 w-full max-w-lg">
|
||||
<form id="searchForm" style="background-color: transparent !important;" class="flex flex-col sm:flex-row items-center justify-center">
|
||||
<input type="text" style="background-color: transparent !important;" id="searchInput" placeholder="Suche..."
|
||||
<form id="searchForm" style="background-color: transparent !important; padding-bottom: 2px;" class="flex flex-col sm:flex-row items-center justify-center">
|
||||
<input type="text" style="background-color: transparent !important; padding-bottom: 2px !important;" id="searchInput" placeholder="Suche..."
|
||||
class="flex-grow bg-transparent border-0 outline-none placeholder-gray-500 text-gray-800
|
||||
dark:placeholder-gray-300" />
|
||||
<select id="searchEngine" style="background-color: transparent !important;" class="bg-transparent border-0 outline-none text-gray-800 dark:text-white ml-2">
|
||||
<select id="searchEngine" style="background-color: transparent !important; padding-bottom: 2px !important;" class="bg-transparent border-0 outline-none text-gray-800 dark:text-white ml-2">
|
||||
<option value="qwant">Qwant</option>
|
||||
<option value="google">Google</option>
|
||||
</select>
|
||||
<button type="submit" class="bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600 ml-2">
|
||||
<button type="submit" class="bg-green-500 text-white px-2 py-2 rounded hover:bg-green-600 ml-2">
|
||||
Los
|
||||
</button>
|
||||
</form>
|
||||
@@ -68,12 +68,21 @@
|
||||
<h2 class="text-lg font-semibold mb-2">Benachrichtigungen</h2>
|
||||
{% if notifications %}
|
||||
<ul class="space-y-2 max-h-56 overflow-auto">
|
||||
{% for note in notifications %}
|
||||
<li class="bg-gray-100 dark:bg-gray-700 p-2 rounded">
|
||||
{{ note.message }}<br>
|
||||
<span class="text-xs text-gray-500">{{ note.created_at }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% for note in notifications %}
|
||||
<li class="bg-gray-100 dark:bg-gray-700 p-2 rounded flex justify-between items-center">
|
||||
<div>
|
||||
{{ note.message }}<br>
|
||||
<span class="text-xs text-gray-500">{{ note.created_at }}</span>
|
||||
</div>
|
||||
<form method="POST" action="{{ url_for('delete_notification', notif_id=note.id) }}"
|
||||
onsubmit="return confirm('Benachrichtigung wirklich löschen?')"
|
||||
class="inline">
|
||||
<button class="text-red-500 hover:text-red-700 text-sm ml-2" title="Benachrichtigung löschen">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p class="text-sm">Keine neuen Benachrichtigungen</p>
|
||||
|
||||
Reference in New Issue
Block a user