package templates
templ AdminLibrary(user User, libraries []LibraryData, users []User, archivedCount int64) {
@Icon("library", "h-7 w-7")
No Libraries Yet
Create your first library to get started
Create Your First Library
} else {
@Icon("folder", "h-4 w-4 shrink-0")
Folders
if len(folders) == 0 {
No folders configured. Add a folder to enable scanning.
} else {
for _, folder := range folders {
{ folder.FolderPath }
@Icon("trash", "h-3.5 w-3.5")
}
}
if len(users) > 0 {
}
if issueCount > 0 {
}
@Icon("edit", "h-4 w-4")
Edit Details
@Icon("trash", "h-4 w-4")
Delete Library
}
templ FolderBrowserContent(currentPath string, parentPath string, entries []DirEntry, targetInput string, libraryID string) {
@Icon("folder", "h-4 w-4 shrink-0")
{ currentPath }
if parentPath != "" {
@Icon("arrow-left", "h-4 w-4")
..
}
for _, entry := range entries {
@Icon("folder", "h-4 w-4 shrink-0")
{ entry.Name }
}
@Icon("check", "h-4 w-4")
Select This Folder
}