show recent folders properly in ui

This commit is contained in:
sentriz
2019-07-08 22:34:22 +01:00
parent 82b5c73869
commit 8437068e96
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@
{{ range $folder := .RecentFolders }}
<tr>
<td class="text-right">{{ $folder.RightPath }}</td>
<td class="no-small"><span class="light" title="{{ $folder.CreatedAt }}">{{ $folder.CreatedAt | humanDate }}</span></td>
<td class="no-small"><span class="light" title="{{ $folder.ModifiedAt }}">{{ $folder.ModifiedAt | humanDate }}</span></td>
</tr>
{{ end }}
</table>

View File

@@ -80,7 +80,7 @@ func (c *Controller) ServeHome(w http.ResponseWriter, r *http.Request) {
// recent folders box
c.DB.
Where("tag_artist_id IS NOT NULL").
Order("updated_at DESC").
Order("modified_at DESC").
Limit(8).
Find(&data.RecentFolders)
data.IsScanning = scanner.IsScanning()