2024-03-27 21:30:19 +01:00
|
|
|
|
<!DOCTYPE html>
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<html lang="{{.CurrentSiteLang}}">
|
2024-03-27 21:30:19 +01:00
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2024-08-28 21:31:27 +02:00
|
|
|
|
{{ if .IsThemeDark }}
|
|
|
|
|
<meta name="darkreader-lock">
|
|
|
|
|
{{ end }}
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<title>{{ translate "settings_title" }}</title>
|
2024-08-11 21:45:52 +02:00
|
|
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
|
|
|
|
<link rel="stylesheet" href="/static/css/{{.Theme}}.css">
|
2024-08-15 13:31:15 +02:00
|
|
|
|
<link rel="stylesheet" href="/static/css/style-settings.css">
|
2024-06-12 14:26:50 +02:00
|
|
|
|
<link rel="search" type="application/opensearchdescription+xml" title="Ocásek" href="/opensearch.xml">
|
2024-03-27 21:30:19 +01:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
<div class="settings-nav">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<h1 class="logomobile"><a class="no-decoration" href="./">{{ translate "settings" }}</a></h1>
|
2024-03-28 11:52:16 +01:00
|
|
|
|
</div>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
|
|
|
|
|
<div class="settings-container">
|
|
|
|
|
<form action="/save-settings" method="post">
|
|
|
|
|
<div class="settings">
|
|
|
|
|
<div class="settings-row">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<span class="highlight"><p>{{ translate "theme" }}</p></span>
|
2024-05-21 21:22:36 +02:00
|
|
|
|
</div>
|
2024-04-15 08:35:17 +02:00
|
|
|
|
|
2024-08-15 13:31:15 +02:00
|
|
|
|
<div class="theme-settings">
|
|
|
|
|
<div class="themes-settings-menu">
|
|
|
|
|
<a href="/search?theme=dark" class="theme-link">
|
|
|
|
|
<div class="view-image-search clickable" id="dark">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<img src="/static/images/dark.webp" alt="{{ translate "theme_dark" }}">
|
|
|
|
|
<div class="theme-tooltip">{{ translate "theme_dark" }}</div>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="/search?theme=light" class="theme-link">
|
|
|
|
|
<div class="view-image-search clickable" id="light">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<img src="/static/images/light.webp" alt="{{ translate "theme_light" }}">
|
|
|
|
|
<div class="theme-tooltip">{{ translate "theme_light" }}</div>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="/search?theme=night" class="theme-link">
|
|
|
|
|
<div class="view-image-search clickable" id="night">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<img src="/static/images/night.webp" alt="{{ translate "theme_night" }}">
|
|
|
|
|
<div class="theme-tooltip">{{ translate "theme_night" }}</div>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="/search?theme=black" class="theme-link">
|
|
|
|
|
<div class="view-image-search clickable" id="black">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<img src="/static/images/black.webp" alt="{{ translate "theme_black" }}">
|
|
|
|
|
<div class="theme-tooltip">{{ translate "theme_black" }}</div>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="/search?theme=mocha" class="theme-link">
|
|
|
|
|
<div class="view-image-search clickable" id="mocha">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<img src="/static/images/mocha.webp" alt="🌿 {{ translate "theme_mocha" }}">
|
|
|
|
|
<div class="theme-tooltip">🌿 {{ translate "theme_mocha" }}</div>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="/search?theme=latte" class="theme-link">
|
|
|
|
|
<div class="view-image-search clickable" id="latte">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<img src="/static/images/latte.webp" alt="🌻 {{ translate "theme_latte" }}">
|
|
|
|
|
<div class="theme-tooltip">🌻 {{ translate "theme_latte" }}</div>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-09-27 17:27:16 +02:00
|
|
|
|
|
2024-08-15 13:31:15 +02:00
|
|
|
|
<div class="settings-row">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<p>{{ translate "safe_search" }}</p>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
<select class="results-settings" name="safe" id="safeSearchSelect">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<option value="disabled" {{if eq .Safe "disabled"}}selected{{end}}>{{ translate "safe_search_off" }}</option>
|
|
|
|
|
<option value="active" {{if eq .Safe "active"}}selected{{end}}>{{ translate "safe_search_on" }}</option>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2024-04-15 08:35:17 +02:00
|
|
|
|
|
2024-08-15 13:31:15 +02:00
|
|
|
|
<div class="settings-row">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<p>{{ translate "site_language" }}</p>
|
2024-09-27 17:27:16 +02:00
|
|
|
|
<select class="results-settings" name="site_lang" id="siteLanguageSelect">
|
|
|
|
|
{{range .LanguageOptions}}
|
|
|
|
|
<option value="{{.Code}}" {{if eq .Code $.CurrentSiteLang}}selected{{end}}>{{.Name}}</option>
|
|
|
|
|
{{end}}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="settings-row">
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<p>{{ translate "search_language" }}</p>
|
2024-09-27 17:27:16 +02:00
|
|
|
|
<select class="results-settings" name="search_lang" id="searchLanguageSelect">
|
2024-08-15 13:31:15 +02:00
|
|
|
|
{{range .LanguageOptions}}
|
2024-09-27 17:27:16 +02:00
|
|
|
|
<option value="{{.Code}}" {{if eq .Code $.CurrentSearchLang}}selected{{end}}>{{.Name}}</option>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
{{end}}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2024-04-15 08:35:17 +02:00
|
|
|
|
|
2024-09-29 08:33:49 +02:00
|
|
|
|
<div class="settings-row">
|
2024-09-28 20:11:17 +02:00
|
|
|
|
<p class="font-hide"> </p>
|
2024-10-07 17:12:22 +02:00
|
|
|
|
<button class="save save-settings-page" type="submit">{{ translate "save_settings" }}</button>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-04-15 08:35:17 +02:00
|
|
|
|
</form>
|
2024-08-15 13:31:15 +02:00
|
|
|
|
</div>
|
2024-03-27 21:30:19 +01:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|