Docker and more calendar work
This commit is contained in:
parent
4527504c80
commit
f7a919ebf2
22 changed files with 2036 additions and 79 deletions
|
@ -16,37 +16,70 @@
|
|||
</div>
|
||||
<div class="sidebar-nav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ url_for('main.index') }}"
|
||||
class="{% if request.endpoint == 'main.index' %}active{% endif %}">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
<!-- Podcasts Section -->
|
||||
<li>
|
||||
<a href="{{ url_for('podcasts.index') }}"
|
||||
class="{% if request.endpoint in ['podcasts.index', 'podcasts.view'] %}active{% endif %}">
|
||||
Podcasts
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<!-- Add New option appears only when on Podcasts page -->
|
||||
{% if request.endpoint in ['podcasts.index', 'podcasts.view', 'podcasts.search'] %}
|
||||
<li class="sub-item">
|
||||
<a href="{{ url_for('podcasts.search') }}"
|
||||
class="{% if request.endpoint == 'podcasts.search' %}active{% endif %}">
|
||||
Add New
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
<!-- Calendar Section -->
|
||||
<li>
|
||||
<a href="{{ url_for('main.dashboard') }}"
|
||||
class="{% if request.endpoint == 'main.dashboard' %}active{% endif %}">
|
||||
Dashboard
|
||||
<a href="{{ url_for('calendar.index') }}"
|
||||
class="{% if request.endpoint == 'calendar.index' %}active{% endif %}">
|
||||
Calendar
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
<!-- Activity Section -->
|
||||
<li class="section-header">
|
||||
<span>Activity</span>
|
||||
</li>
|
||||
<li class="sub-item">
|
||||
<a href="{{ url_for('main.index') }}?view=history"
|
||||
class="{% if request.endpoint == 'main.index' and request.args.get('view') == 'history' %}active{% endif %}">
|
||||
History
|
||||
</a>
|
||||
</li>
|
||||
<li class="sub-item">
|
||||
<a href="{{ url_for('main.index') }}?view=wanted"
|
||||
class="{% if request.endpoint == 'main.index' and request.args.get('view') == 'wanted' %}active{% endif %}">
|
||||
Wanted
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- Settings Section -->
|
||||
<li class="section-header">
|
||||
<span>Settings</span>
|
||||
</li>
|
||||
<li class="sub-item">
|
||||
<a href="{{ url_for('settings.index') }}"
|
||||
class="{% if request.endpoint == 'settings.index' %}active{% endif %}">
|
||||
Settings
|
||||
Media Management
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
<!-- System Section -->
|
||||
<li class="section-header">
|
||||
<span>System</span>
|
||||
</li>
|
||||
<li class="sub-item">
|
||||
<a href="{{ url_for('main.index') }}?view=status"
|
||||
class="{% if request.endpoint == 'main.index' and request.args.get('view') == 'status' %}active{% endif %}">
|
||||
Status
|
||||
</a>
|
||||
</li>
|
||||
<li class="sub-item">
|
||||
<a href="{{ url_for('tasks.view_tasks') }}"
|
||||
class="{% if request.endpoint == 'tasks.view_tasks' %}active{% endif %}">
|
||||
Tasks
|
||||
|
|
1128
templates/calendar/index.html
Normal file
1128
templates/calendar/index.html
Normal file
File diff suppressed because it is too large
Load diff
|
@ -100,8 +100,27 @@
|
|||
|
||||
<script>
|
||||
function updateAllPodcasts() {
|
||||
// This would trigger an update for all podcasts
|
||||
alert('Update All functionality would be implemented here');
|
||||
// Call the API to update all podcasts
|
||||
fetch('/api/podcasts/update-all', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
.then(response => {
|
||||
if (!response.ok) {
|
||||
throw new Error('Network response was not ok');
|
||||
}
|
||||
return response.json();
|
||||
})
|
||||
.then(data => {
|
||||
// Show success message
|
||||
alert(data.message);
|
||||
})
|
||||
.catch(error => {
|
||||
// Show error message
|
||||
alert('Error updating podcasts: ' + error.message);
|
||||
});
|
||||
}
|
||||
|
||||
function refreshPage() {
|
||||
|
|
|
@ -38,6 +38,21 @@
|
|||
<small>Set to 0 to never delete</small>
|
||||
</div>
|
||||
|
||||
<h3>Calendar Settings</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="calendar_first_day">First Day of Week</label>
|
||||
<select name="calendar_first_day" id="calendar_first_day">
|
||||
<option value="Monday">Monday</option>
|
||||
<option value="Sunday">Sunday</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group checkbox">
|
||||
<input type="checkbox" name="calendar_show_monitored_only" id="calendar_show_monitored_only" {% if settings.calendar_show_monitored_only %}checked{% endif %}>
|
||||
<label for="calendar_show_monitored_only">Show monitored podcasts only</label>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn">Save Settings</button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue