Skip to content

Commit

Permalink
update adminui folder view
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Sep 14, 2023
1 parent d9d234d commit 4c1dc48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion server/ctrladmin/adminui/pages/home.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
{{ end }}
{{ range $folder := .RecentFolders }}
<div class="text-left ellipsis">{{ $folder.RightPath }}</div>
<div class="text-gray-500" title="{{ $folder.ModifiedAt }}">{{ $folder.ModifiedAt | dateHuman }}</div>
{{ if not $folder.ModifiedAt.IsZero }}
<div class="text-gray-500" title="{{ $folder.ModifiedAt }}">{{ $folder.ModifiedAt | dateHuman }}</div>
{{ else }}
<span></span>
{{ end }}
{{ end }}
{{ if and (not .IsScanning) (.User.IsAdmin) }}
{{ if not .LastScanTime.IsZero }}
Expand Down
2 changes: 1 addition & 1 deletion server/ctrladmin/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (c *Controller) ServeHome(r *http.Request) *Response {
// recent folders box
c.DB.
Order("created_at DESC").
Limit(20).
Limit(10).
Find(&data.RecentFolders)

data.IsScanning = c.Scanner.IsScanning()
Expand Down

0 comments on commit 4c1dc48

Please sign in to comment.