prefix css classes

This commit is contained in:
sentriz
2020-03-24 19:49:45 +00:00
parent f906c18cb2
commit fee7149d94
7 changed files with 404 additions and 398 deletions

View File

@@ -5,7 +5,7 @@
</div>
<div class="text-right">
are you sure?<br/>
<span class="light">their plays, starred, etc. will also be deleted</span>
<span class="text-light">their plays, starred, etc. will also be deleted</span>
</div>
<form class="block" action="{{ printf "/admin/delete_user_do?user=%s" .SelectedUser.Name | path }}" method="post">
<input type="submit" value="yes">

View File

@@ -23,10 +23,10 @@
</div>
<div class="text-right">
{{ if .CurrentLastFMAPIKey }}
<span class="light">current status</span>
<span class="text-light">current status</span>
{{ if .User.LastFMSession }}
linked
<span class="light">&#124;</span>
<span class="text-light">&#124;</span>
<form action="{{ path "/admin/unlink_lastfm_do" }}" method="post">
<input type="submit" value="unlink">
</form>
@@ -37,9 +37,9 @@
<a href="https://www.last.fm/api/auth/?api_key={{ .CurrentLastFMAPIKey }}&cb={{ $cbURL }}">link&#8230;</a>
{{ end }}
{{ else }}
<p class="light">api key not set</p>
<p class="text-light">api key not set</p>
{{ if not .User.IsAdmin }}
<p class="light">please ask your admin to set it</p>
<p class="text-light">please ask your admin to set it</p>
{{ end }}
{{ end }}
{{ if .User.IsAdmin }}
@@ -56,12 +56,12 @@
<div class="text-right">
{{ range $user := .AllUsers }}
<i>{{ $user.Name }}</i>
<span class="light no-small">{{ $user.CreatedAt | date }}</span>
<span class="light">&#124;</span>
<span class="text-light no-small">{{ $user.CreatedAt | date }}</span>
<span class="text-light">&#124;</span>
<a href="{{ printf "/admin/change_password?user=%s" $user.Name | path }}">change password&#8230;</a>
<span class="light">&#124;</span>
<span class="text-light">&#124;</span>
{{ if $user.IsAdmin }}
<span class="light">delete&#8230;</span>
<span class="text-light">delete&#8230;</span>
{{ else }}
<a href="{{ printf "/admin/delete_user?user=%s" $user.Name | path }}">delete&#8230;</a>
{{ end }}
@@ -85,7 +85,7 @@
</div>
<div class="block-right text-right">
{{ if eq (len .RecentFolders) 0 }}
<span class="light">no folders yet</span>
<span class="text-light">no folders yet</span>
{{ end }}
<table id="recent-folders">
<colgroup>
@@ -95,13 +95,13 @@
{{ range $folder := .RecentFolders }}
<tr>
<td class="text-right text-trunc">{{ $folder.RightPath }}</td>
<td><span class="light" title="{{ $folder.ModifiedAt }}">{{ $folder.ModifiedAt | dateHuman }}</span></td>
<td><span class="text-light" title="{{ $folder.ModifiedAt }}">{{ $folder.ModifiedAt | dateHuman }}</span></td>
</tr>
{{ end }}
</table>
{{- if and (not .IsScanning) (.User.IsAdmin) -}}
{{- if not .LastScanTime.IsZero -}}
<p class="light" title="{{ .LastScanTime }}">scanned {{ .LastScanTime | dateHuman }}</p>
<p class="text-light" title="{{ .LastScanTime }}">scanned {{ .LastScanTime | dateHuman }}</p>
{{ end }}
<form action="{{ path "/admin/start_scan_do" }}" method="post">
<td><input type="submit" value="start scan"></td>
@@ -114,9 +114,9 @@
<i class="mdi mdi-file-music"></i> transcoding device profiles
</div>
<div class="block-right">
<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>
<p class="text-light text-right">you can find your device's client name in the gonic logs</p>
<p class="text-light text-right">some common client names: "<span class="text-emp">DSub</span>", "<span class="text-emp">Jamstash</span>", "<span class="text-emp">Soundwaves</span>"</p>
<p class="text-light text-right">or use "*" as fallback rule for any client</p>
<table id="transcode-preferences">
{{ range $pref := .TranscodePreferences }}
<tr>
@@ -145,14 +145,14 @@
</div>
<div class="block-right text-right">
{{ if eq (len .Playlists) 0 }}
<span class="light">no playlists yet</span>
<span class="text-light">no playlists yet</span>
{{ end }}
<table id="recent-playlists">
{{ range $playlist := .Playlists }}
<tr>
<td class="text-right">{{ $playlist.Name }}</td>
<td><span class="light">({{ $playlist.TrackCount }} tracks)</span></td>
<td class="no-small"><span class="light" title="{{ $playlist.CreatedAt }}">{{ $playlist.CreatedAt | dateHuman }}</span></td>
<td><span class="text-light">({{ $playlist.TrackCount }} tracks)</span></td>
<td class="no-small"><span class="text-light" title="{{ $playlist.CreatedAt }}">{{ $playlist.CreatedAt | dateHuman }}</span></td>
</tr>
{{ end }}
</table>

View File

@@ -4,10 +4,10 @@
<i class="mdi mdi-key-change"></i> updating last.fm keys
</div>
<div class="text-right">
<p class="light">(you can get an api key <a href="https://www.last.fm/api/account/create" target="_blank">here</a>)</p>
<p class="text-light">(you can get an api key <a href="https://www.last.fm/api/account/create" target="_blank">here</a>)</p>
<br/>
<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>
<p><span class="text-light">current key</span> <i>{{ default "not set" .CurrentLastFMAPIKey }}</i></p>
<p><span class="text-light">current secret</span> <i>{{ default "not set" .CurrentLastFMAPISecret }}</i></p>
</div>
<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">