debug modus im HTML eingebaut
All checks were successful
Docker Release Build / push_to_registry (push) Successful in 56s
All checks were successful
Docker Release Build / push_to_registry (push) Successful in 56s
This commit is contained in:
@@ -44,8 +44,29 @@
|
||||
</head>
|
||||
<body>
|
||||
<button id="theme-toggle">🌓</button>
|
||||
{{if isDebug}}
|
||||
<div class="debug-banner" style="background: #ffeb3b; color: #000; text-align: center; font-size: 12px; padding: 5px; font-weight: bold;">
|
||||
⚠️ DEBUG-MODUS AKTIVIERT
|
||||
</div>
|
||||
{{end}}
|
||||
{{ block "body" . }}{{end}}
|
||||
|
||||
{{if isDebug}}
|
||||
<div class="debug-footer" style="background: #333; color: #0f0; font-family: monospace; font-size: 11px; padding: 10px; border-top: 2px solid #0f0;">
|
||||
<div>
|
||||
<strong>DEBUG INFO:</strong>
|
||||
<span>Ladezeit: {{dt .StartTime}}</span> |
|
||||
<span>Method: {{.Request.Method}}</span> |
|
||||
<span>Path: {{.Request.URL.Path}}</span> |
|
||||
<span>Remote: {{.Request.RemoteAddr}}</span> |
|
||||
<span>Real IP: {{.RealIP}}</span>
|
||||
</div>
|
||||
<div style="margin-top: 5px; color: #888;">
|
||||
User-Agent: {{.Request.UserAgent}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<!-- <footer>Version: {{getAppVersion}} | made with golang and ♥️ {{ block "footer" . }}{{ end }}</footer> -->
|
||||
<footer>
|
||||
<div class="footer-container">
|
||||
|
||||
Reference in New Issue
Block a user