Initial commit

This commit is contained in:
2020-11-13 22:41:03 +01:00
commit bbfb050279
8 changed files with 2309 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Edit {{podcast.title}}</title>
</head>
<body>
<form method="post">
<table border="0">
<tr><td>Title</td><td><input type="text" name="title" value="{{podcast.title}}"></td></tr>
<tr><td>Logo URL</td><td><input type="text" name="logo_url" value="{{podcast.logo_url.as_ref().unwrap_or(String::new())}}"></td></tr>
<tr><td>Homepage</td><td><input type="text" name="homepage" value="{{podcast.homepage}}"></td></tr>
<tr><td colspan="2"><button type="submit">Save</button></td></tr>
<tr><td>Episodes</td><td><a href="./new">Add</a></td></tr>
<tr><td colspan="2">
<table border="0">
{%- for episode in podcast.episodes %}
<tr><td>{{episode.title}}</td><td>{{episode.guid}}</td><td>{{episode.pub_date}}</td><td><a href="./edit/{{loop.index}}"></a></td></tr>
{%- endfor %}
</table>
</td></tr>
</table>
</form>
</body>
</html>