-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Admin view for processing merge queue (WIP)
This should be integrated into the manual merge flow, and should probably not be a separate page
- Loading branch information
1 parent
be2199d
commit 2209b20
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
{% load podcasts %} | ||
|
||
{% load menu %} | ||
{% block mainmenu %}{{ "/admin/"|main_menu }}{% endblock %} | ||
{% block sectionmenu %}{{ "/admin/"|section_menu:"Admin" }}{% endblock %} | ||
|
||
{% block title %}{% trans "Admin Area" %}{% endblock %} | ||
|
||
{% block header %} | ||
<h1>{% trans "Merge Queue" %}</h1> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
Queue Length: {{ queue_length }} | ||
|
||
<form method="post" action="{% url "admin-merge-verify" %}" role="form"> | ||
{% csrf_token %} | ||
{% for entry in queue.mergequeueentry_set.all %} | ||
<div class="form-group"> | ||
<label for="feed{{forloop.counter0}}"> | ||
{{ forloop.counter }}: {{ entry.podcast }} | ||
</label> | ||
<input | ||
type="text" | ||
class="form-control" | ||
name="feed{{ forloop.counter0 }}" | ||
id="feed{{ forloop.counter0 }}" | ||
placeholder="" | ||
value="{{ entry.podcast.url }}" | ||
{% if forloop.first %}autofocus="autofocus"{% endif %}> | ||
</div> | ||
{% endfor %} | ||
<input class="btn btn-default" type="submit" value="OK" /> | ||
</form> | ||
|
||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters