lessen css
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<div class="box-title">
|
||||
<i class="mdi mdi-account-key"></i> changing account password
|
||||
</div>
|
||||
<form action="{{ path "/admin/change_own_password_do" }}" method="post">
|
||||
<form class="block" action="{{ path "/admin/change_own_password_do" }}" method="post">
|
||||
<input type="password" id="password_one" name="password_one" placeholder="new password">
|
||||
<input type="password" id="password_two" name="password_two" placeholder="verify new password">
|
||||
<input type="submit" value="change">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="box-title">
|
||||
<i class="mdi mdi-account-key"></i> changing {{ .SelectedUser.Name }}'s password
|
||||
</div>
|
||||
<form action="{{ printf "/admin/change_password_do?user=%s" .SelectedUser.Name | path }}" method="post">
|
||||
<form class="block" action="{{ printf "/admin/change_password_do?user=%s" .SelectedUser.Name | path }}" method="post">
|
||||
<input type="password" id="password_one" name="password_one" placeholder="new password">
|
||||
<input type="password" id="password_two" name="password_two" placeholder="verify new password">
|
||||
<input type="submit" value="change">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="box-title">
|
||||
<i class="mdi mdi-account-plus"></i> creating new user
|
||||
</div>
|
||||
<form action="{{ path "/admin/create_user_do" }}" method="post">
|
||||
<form class="block" action="{{ path "/admin/create_user_do" }}" method="post">
|
||||
<input type="text" id="username" name="username" placeholder="username">
|
||||
<input type="password" id="password_one" name="password_one" placeholder="password">
|
||||
<input type="password" id="password_two" name="password_two" placeholder="verify password">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
are you sure?<br/>
|
||||
<span class="light">their plays, starred, etc. will also be deleted</span>
|
||||
</div>
|
||||
<form action="{{ printf "/admin/delete_user_do?user=%s" .SelectedUser.Name | path }}" method="post">
|
||||
<form class="block" action="{{ printf "/admin/delete_user_do?user=%s" .SelectedUser.Name | path }}" method="post">
|
||||
<input type="submit" value="yes">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -27,12 +27,14 @@
|
||||
{{ if .User.LastFMSession }}
|
||||
linked
|
||||
<span class="light">|</span>
|
||||
<a href="{{ path "/admin/unlink_lastfm_do" }}">unlink</a><br/>
|
||||
<form action="{{ path "/admin/unlink_lastfm_do" }}" method="post">
|
||||
<input type="submit" value="unlink">
|
||||
</form>
|
||||
{{ else }}
|
||||
<span class="angry">unlinked</span>
|
||||
{{ $cbPath := path "/admin/link_lastfm_do" }}
|
||||
{{ $cbURL := printf "%s%s" .RequestRoot $cbPath }}
|
||||
<a href="https://www.last.fm/api/auth/?api_key={{ .CurrentLastFMAPIKey }}&cb={{ $cbURL }}">link</a><br/>
|
||||
<a href="https://www.last.fm/api/auth/?api_key={{ .CurrentLastFMAPIKey }}&cb={{ $cbURL }}">link…</a>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<p class="light">api key not set</p>
|
||||
@@ -41,7 +43,6 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if .User.IsAdmin }}
|
||||
<br/>
|
||||
<p><a href="{{ path "/admin/update_lastfm_api_key" }}">update api key…</a></p>
|
||||
{{ end }}
|
||||
</div>
|
||||
@@ -64,9 +65,8 @@
|
||||
{{ else }}
|
||||
<a href="{{ printf "/admin/delete_user?user=%s" $user.Name | path }}">delete…</a>
|
||||
{{ end }}
|
||||
<br/>
|
||||
<br/>
|
||||
{{ end }}
|
||||
<br/>
|
||||
<a href="{{ path "/admin/create_user" }}" class="button">create new…</a>
|
||||
</div>
|
||||
{{ else }}
|
||||
@@ -95,8 +95,7 @@
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
{{- if not .IsScanning -}}
|
||||
<br/>
|
||||
{{- if and (not .IsScanning) (.User.IsAdmin) -}}
|
||||
{{- if not .LastScanTime.IsZero -}}
|
||||
<p class="light" title="{{ .LastScanTime }}">scanned {{ .LastScanTime | dateHuman }}</p>
|
||||
{{ end }}
|
||||
@@ -114,7 +113,6 @@
|
||||
<p class="light text-right">you can find your device's client name in the gonic logs</p>
|
||||
<p class="light text-right">some common client names: "<span class="emp">DSub</span>", "<span class="emp">Jamstash</span>", "<span class="emp">Soundwaves</span>"</p>
|
||||
<p class="light text-right">or use "*" as fallback rule for any client</p>
|
||||
<br/>
|
||||
<table id="transcode-preferences">
|
||||
{{ range $pref := .TranscodePreferences }}
|
||||
<tr>
|
||||
@@ -154,7 +152,6 @@
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
<br/>
|
||||
<form
|
||||
id="playlist-upload-form"
|
||||
enctype="multipart/form-data"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="box-title">
|
||||
<i class="mdi mdi-login-variant"></i> login
|
||||
</div>
|
||||
<form action="{{ path "/admin/login_do" }}" method="post">
|
||||
<form class="block" action="{{ path "/admin/login_do" }}" method="post">
|
||||
<input type="text" id="username" name="username" placeholder="username">
|
||||
<input type="password" id="password" name="password" placeholder="password">
|
||||
<input type="submit" value="login">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<p><span class="light">current key</span> <i>{{ default "not set" .CurrentLastFMAPIKey }}</i></p>
|
||||
<p><span class="light">current secret</span> <i>{{ default "not set" .CurrentLastFMAPISecret }}</i></p>
|
||||
</div>
|
||||
<form action="{{ path "/admin/update_lastfm_api_key_do" }}" method="post">
|
||||
<form class="block" action="{{ path "/admin/update_lastfm_api_key_do" }}" method="post">
|
||||
<input type="text" id="api_key" name="api_key" placeholder="new key">
|
||||
<input type="text" id="secret" name="secret" placeholder="new secret">
|
||||
<input type="submit" value="update">
|
||||
|
||||
Reference in New Issue
Block a user