This commit is contained in:
Carl Pearson
2024-10-12 06:09:29 -06:00
parent a61b4f1e8c
commit ca9d8bdc06
4 changed files with 10 additions and 6 deletions

View File

@@ -32,4 +32,9 @@
margin-right: 5px;
cursor: pointer;
border-radius: 4px;
}
.video-options .delete-btn {
background-color: rgb(255, 70, 70);
color: white;
}

View File

@@ -8,13 +8,12 @@
<title>Playlist</title>
<link rel="stylesheet" href="/static/style/common.css">
<link rel="stylesheet" href="/static/style/videos.css">
{{template "playlist-video-card-css" .}}
{{template "footer-css" .}}
</head>
<body>
<h1>{{.playlist.Title}}</h1>
<h2>Playlist</h2>
<div class="video-list">
{{range .unwatched}}
{{template "playlist-video-card-html" .}}

View File

@@ -45,12 +45,12 @@
</form>
{{end}}
<form action="/video/{{.ID}}/delete" method="post" style="display:inline;">
<button type="submit">Delete</button>
<button class="delete-btn" type="submit">Delete</button>
</form>
</div>
</div>
{{end}}
{{define "playlist-video-card-css"}}
<!-- <link rel="stylesheet" href="/static/style/footer.css"> -->
<link rel="stylesheet" href="/static/style/video-card.css">
{{end}}

View File

@@ -48,7 +48,7 @@
{{else if eq .Status "downloading"}}
{{end}}
<form action="/video/{{.ID}}/delete" method="post" style="display:inline;">
<button type="submit">Delete</button>
<button type="submit" class="delete-btn">Delete</button>
</form>
</div>
</div>
@@ -69,7 +69,7 @@
<div class="video-info"><a href="{{.URL}}">{{.URL}}</a></div>
<div class="video-options">
<form action="/p/{{.ID}}/delete" method="post" style="display:inline;">
<button type="submit">Delete</button>
<button type="submit" class="delete-btn">Delete</button>
</form>
</div>
</div>