fix typo: mbz is the correct string
This commit is contained in:
@@ -1,104 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>MusicBrainz RSS Feeder</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
background-color: #fdfdfd;
|
||||
margin: 0;
|
||||
}
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 20px;
|
||||
border-bottom: 1px solid #eee;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
header h1 {
|
||||
font-size: 24px;
|
||||
margin: 0;
|
||||
}
|
||||
header h1 a {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
}
|
||||
nav a {
|
||||
margin-left: 20px;
|
||||
text-decoration: none;
|
||||
color: #555;
|
||||
}
|
||||
h2, h3 {
|
||||
border-bottom: 1px solid #eee;
|
||||
padding-bottom: 10px;
|
||||
margin-top: 40px;
|
||||
}
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid #eee;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
form {
|
||||
margin-top: 20px;
|
||||
}
|
||||
input[type="text"] {
|
||||
width: 100%;
|
||||
padding: 8px;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
button {
|
||||
background-color: #333;
|
||||
color: white;
|
||||
padding: 8px 15px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
button:hover {
|
||||
background-color: #555;
|
||||
}
|
||||
.form-inline {
|
||||
display: inline;
|
||||
margin-top: 0;
|
||||
}
|
||||
.item-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1><a href="{{ url_for('index') }}">MusicBrainz RSS Feeder</a></h1>
|
||||
<nav>
|
||||
<a href="{{ url_for('index') }}">Feeds</a>
|
||||
<a href="{{ url_for('settings') }}">Settings</a>
|
||||
</nav>
|
||||
</header>
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,31 +0,0 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Feeds</h2>
|
||||
<ul>
|
||||
{% for feed in feeds %}
|
||||
<li>
|
||||
<div>
|
||||
<a href="{{ url_for('edit_feed', feed_id=feed.id) }}">{{ feed.name }}</a>
|
||||
({{ feed.artists|length }})
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
<a href="{{ url_for('get_feed_rss', feed_id=feed.id) }}">RSS</a>
|
||||
<form class="form-inline" action="{{ url_for('delete_feed', feed_id=feed.id) }}" method="post">
|
||||
<button type="submit">Delete</button>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
{% else %}
|
||||
<li>No feeds configured.</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<h3>Create New Feed</h3>
|
||||
<form action="{{ url_for('create_feed') }}" method="post">
|
||||
<label for="name">Feed Name:</label>
|
||||
<input type="text" id="name" name="name" required>
|
||||
<button type="submit">Create</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<opml version="2.0">
|
||||
<head>
|
||||
<title>MusicBrainz Artist Feeds</title>
|
||||
</head>
|
||||
<body>
|
||||
<outline text="MusicBrainz Artist Feeds" title="MusicBrainz Artist Feeds">
|
||||
{% for feed in feeds %}
|
||||
<outline type="rss" text="{{ (feed.artists | map(attribute='name') | sort | join(', ')) }}" title="{{ feed.name }} ({{ feed.artists | length }} artists)" xmlUrl="{{ url_for('get_feed_rss', feed_id=feed.id, _external=True) }}"/>
|
||||
{% endfor %}
|
||||
</outline>
|
||||
</body>
|
||||
</opml>
|
||||
@@ -1,19 +0,0 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Settings</h2>
|
||||
<form method="post">
|
||||
<div>
|
||||
<label for="days_back">Days to look back for releases:</label>
|
||||
<input type="number" id="days_back" name="days_back" value="{{ settings.days_back }}" required>
|
||||
</div>
|
||||
<br>
|
||||
<div>
|
||||
<label for="cache_time_hours">Cache time (hours):</label>
|
||||
<input type="number" id="cache_time_hours" name="cache_time_hours" value="{{ settings.cache_time_hours }}" required>
|
||||
</div>
|
||||
<br>
|
||||
<button type="submit">Save Settings</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user