show recent folders properly in ui
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user