Files
decypharr/pkg/webdav/templates/root.html
Mukhtar Akere b984697fe3 - Cleaup the code
- Add delete button to webdav ui
- Some other bug fixes here and there
2025-05-15 02:42:38 +01:00

72 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Available WebDAV Shares</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
margin: 0 auto;
padding: 20px;
}
nav {
margin-bottom: 1rem;
}
.btn {
display: inline-block;
padding: 4px 8px;
font-size: 0.9em;
text-decoration: none;
border: 1px solid #ccc;
border-radius: 4px;
color: #333;
background-color: #f8f8f8;
cursor: pointer;
}
.btn:hover {
background-color: #e8e8e8;
}
.list-group {
list-style: none;
padding: 0;
margin: 0;
border: 1px solid #eee;
border-radius: 4px;
overflow: hidden;
}
.list-group-item {
padding: 10px 15px;
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
justify-content: space-between;
}
.list-group-item:last-child {
border-bottom: none;
}
.share-link {
color: #3498db;
text-decoration: none;
}
.share-link:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<nav>
<a href="{{.URLBase}}" class="btn">&larr; Home</a>
</nav>
<h1>Available WebDAV Shares</h1>
<ul class="list-group">
{{- range .Handlers }}
<li class="list-group-item">
<a href="{{.RootPath}}" class="share-link">{{.Name}}</a>
</li>
{{- end }}
</ul>
</body>
</html>