29 lines
995 B
Cheetah
29 lines
995 B
Cheetah
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title>主题管理</title>
|
||
|
|
<style>
|
||
|
|
.container { max-width: 800px; margin: 20px auto; padding: 20px; }
|
||
|
|
.theme-list { margin-top: 20px; }
|
||
|
|
.theme-item { padding: 10px; border: 1px solid #eee; margin: 5px 0; }
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="container">
|
||
|
|
<h1>主题管理</h1>
|
||
|
|
<p>当前主题:<strong>{{.CurrentTheme}}</strong></p>
|
||
|
|
|
||
|
|
<div class="theme-list">
|
||
|
|
<h3>可选主题</h3>
|
||
|
|
<form action="/admin/themes/switch" method="post">
|
||
|
|
<select name="theme" style="padding: 8px; width: 200px;">
|
||
|
|
{{range .Themes}}
|
||
|
|
<option value="{{.}}" {{if eq . $.CurrentTheme}}selected{{end}}>{{.}}</option>
|
||
|
|
{{end}}
|
||
|
|
</select>
|
||
|
|
<button type="submit" style="padding: 8px 15px; margin-left: 10px;">切换主题</button>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|