Files
gitea-mms eb57be730b feat(layout): Layout-Einstellungen, Dark-Mode, Logo, Hilfe-Menü
- Settings Key-Value Store (DB + Cache)
- Einstellungen → Layout: Seitenname, Logo, Button-Farbe, Dark/Light-Mode
- Hilfe-Menü (Ebene 0): Handbuch + Changelog im Browser
- Navigation erweitert: Einstellungen-Dropdown + Hilfe-Dropdown
- CHANGELOG v0.4.0

Version: 0.4.0
2026-06-29 14:15:41 +02:00

43 lines
2.2 KiB
PHP

<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
Changelog
</h2>
</x-slot>
<div class="py-12">
<div class="max-w-4xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white dark:bg-gray-800 shadow-sm sm:rounded-lg p-8">
<div class="prose dark:prose-invert max-w-none">
@php
// Einfaches Markdown-to-HTML für den Changelog
$lines = explode("\n", $content);
$html = '';
foreach ($lines as $line) {
if (str_starts_with($line, '## ')) {
$html .= '<h2 class="text-xl font-bold mt-6 mb-2 text-gray-900 dark:text-gray-100 border-b pb-1">'
. e(substr($line, 3)) . '</h2>';
} elseif (str_starts_with($line, '### ')) {
$html .= '<h3 class="text-base font-semibold mt-4 mb-1 text-indigo-700 dark:text-indigo-400">'
. e(substr($line, 4)) . '</h3>';
} elseif (str_starts_with($line, '# ')) {
$html .= '<h1 class="text-2xl font-bold mb-4 text-gray-900 dark:text-gray-100">'
. e(substr($line, 2)) . '</h1>';
} elseif (str_starts_with($line, '- ')) {
$html .= '<li class="ml-4 text-sm text-gray-700 dark:text-gray-300 list-disc">'
. e(substr($line, 2)) . '</li>';
} elseif (trim($line) === '---') {
$html .= '<hr class="my-4 border-gray-200 dark:border-gray-700">';
} elseif (trim($line) !== '') {
$html .= '<p class="text-sm text-gray-600 dark:text-gray-400 my-1">'
. e($line) . '</p>';
}
}
@endphp
{!! $html !!}
</div>
</div>
</div>
</div>
</x-app-layout>