| 
									
										
										
										
											2025-04-21 11:56:29 +00:00
										 |  |  | <!DOCTYPE html> | 
					
						
							|  |  |  | <html lang="{{ get_locale() }}" data-bs-theme="{{ theme }}"> | 
					
						
							|  |  |  | <head> | 
					
						
							|  |  |  |     <meta charset="UTF-8"> | 
					
						
							|  |  |  |     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 
					
						
							| 
									
										
										
										
											2025-04-26 14:32:07 +02:00
										 |  |  |     <meta name="csrf-token" content="{{ csrf_token() }}"> | 
					
						
							|  |  |  |     <title>{{ _('Game Key Manager') }}</title> | 
					
						
							| 
									
										
										
										
											2025-04-21 11:56:29 +00:00
										 |  |  |     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"> | 
					
						
							|  |  |  |     <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> | 
					
						
							|  |  |  | </head> | 
					
						
							|  |  |  | <body> | 
					
						
							|  |  |  |     <nav class="navbar navbar-expand-lg bg-body-tertiary"> | 
					
						
							|  |  |  |         <div class="container"> | 
					
						
							| 
									
										
										
										
											2025-04-26 14:32:07 +02:00
										 |  |  |             <a class="navbar-brand d-flex align-items-center gap-2" href="/"> | 
					
						
							|  |  |  |                  <img src="{{ url_for('static', filename='logo_small.png') }}" alt="Logo" width="150" height="116" style="object-fit:contain; border-radius:8px;"> | 
					
						
							|  |  |  |                  <span>Game Key Manager</span> | 
					
						
							|  |  |  |             </a> | 
					
						
							| 
									
										
										
										
											2025-04-21 11:56:29 +00:00
										 |  |  |             <div class="d-flex align-items-center gap-3"> | 
					
						
							|  |  |  |                 <form class="d-flex" action="{{ url_for('index') }}" method="GET"> | 
					
						
							|  |  |  |                     <input class="form-control me-2"  | 
					
						
							|  |  |  |                            type="search"  | 
					
						
							|  |  |  |                            name="q" | 
					
						
							|  |  |  |                            placeholder="{{ _('Search') }}" | 
					
						
							|  |  |  |                            value="{{ search_query }}"> | 
					
						
							|  |  |  |                     <button class="btn btn-outline-success" type="submit">🔍</button> | 
					
						
							|  |  |  |                 </form> | 
					
						
							|  |  |  |                 <div class="form-check form-switch"> | 
					
						
							|  |  |  |                     <input class="form-check-input"  | 
					
						
							|  |  |  |                            type="checkbox"  | 
					
						
							|  |  |  |                            id="darkModeSwitch" {% if theme == 'dark' %}checked{% endif %}> | 
					
						
							|  |  |  |                     <label class="form-check-label" for="darkModeSwitch">{{ _('Dark Mode') }}</label> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="dropdown ms-3"> | 
					
						
							| 
									
										
										
										
											2025-04-26 14:32:07 +02:00
										 |  |  |                     <button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false"> | 
					
						
							|  |  |  |                         {% if get_locale() == 'de' %} Deutsch {% elif get_locale() == 'en' %} English {% else %} Sprache {% endif %} | 
					
						
							|  |  |  |                     </button> | 
					
						
							|  |  |  |                     <ul class="dropdown-menu"> | 
					
						
							|  |  |  |                         <li><a class="dropdown-item {% if get_locale() == 'de' %}active{% endif %}" href="{{ url_for('set_lang', lang='de') }}">Deutsch</a></li> | 
					
						
							|  |  |  |                         <li><a class="dropdown-item {% if get_locale() == 'en' %}active{% endif %}" href="{{ url_for('set_lang', lang='en') }}">English</a></li> | 
					
						
							|  |  |  |                     </ul> | 
					
						
							| 
									
										
										
										
											2025-04-21 11:56:29 +00:00
										 |  |  |                 </div> | 
					
						
							|  |  |  |                 {% if current_user.is_authenticated %} | 
					
						
							| 
									
										
										
										
											2025-04-26 14:32:07 +02:00
										 |  |  |                         <li class="nav-item"> | 
					
						
							|  |  |  |                              <a class="nav-link" href="{{ url_for('change_password') }}">🔒 {{ _('Passwort') }}</a> | 
					
						
							|  |  |  |                         </li> | 
					
						
							|  |  |  |                         <li class="nav-item"> | 
					
						
							|  |  |  |                              <a class="nav-link" href="{{ url_for('logout') }}">🚪 {{ _('Logout') }}</a> | 
					
						
							|  |  |  |                         </li> | 
					
						
							| 
									
										
										
										
											2025-04-21 11:56:29 +00:00
										 |  |  |                 {% endif %} | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </nav> | 
					
						
							|  |  |  |     <div class="container mt-4"> | 
					
						
							|  |  |  |         {% with messages = get_flashed_messages(with_categories=true) %} | 
					
						
							|  |  |  |             {% if messages %} | 
					
						
							|  |  |  |                 {% for category, message in messages %} | 
					
						
							|  |  |  |                 <div class="alert alert-{{ category }} alert-dismissible fade show"> | 
					
						
							|  |  |  |                     {{ message }} | 
					
						
							|  |  |  |                     <button type="button" class="btn-close" data-bs-dismiss="alert"></button> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 {% endfor %} | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  |         {% endwith %} | 
					
						
							|  |  |  |         {% block content %}{% endblock %} | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script> | 
					
						
							|  |  |  |     <script> | 
					
						
							|  |  |  |     document.addEventListener('DOMContentLoaded', function() { | 
					
						
							| 
									
										
										
										
											2025-04-26 14:32:07 +02:00
										 |  |  |         const toggle = document.getElementById('darkModeSwitch') | 
					
						
							|  |  |  |         const html = document.documentElement | 
					
						
							|  |  |  |          | 
					
						
							| 
									
										
										
										
											2025-04-21 11:56:29 +00:00
										 |  |  |         toggle.addEventListener('change', function() { | 
					
						
							| 
									
										
										
										
											2025-04-26 14:32:07 +02:00
										 |  |  |             const theme = this.checked ? 'dark' : 'light' | 
					
						
							| 
									
										
										
										
											2025-04-21 11:56:29 +00:00
										 |  |  |             fetch('/set-theme/' + theme) | 
					
						
							| 
									
										
										
										
											2025-04-26 14:32:07 +02:00
										 |  |  |                 .then(() => html.setAttribute('data-bs-theme', theme)) | 
					
						
							|  |  |  |         }) | 
					
						
							|  |  |  |     }) | 
					
						
							| 
									
										
										
										
											2025-04-21 11:56:29 +00:00
										 |  |  |     </script> | 
					
						
							| 
									
										
										
										
											2025-04-26 14:32:07 +02:00
										 |  |  | {% include "footer.html" %} | 
					
						
							| 
									
										
										
										
											2025-04-21 11:56:29 +00:00
										 |  |  | </body> | 
					
						
							|  |  |  | </html> |