diff --git a/audio/templates/audio/index.html b/audio/templates/audio/index.html
index d4e8c6c..b6b6198 100644
--- a/audio/templates/audio/index.html
+++ b/audio/templates/audio/index.html
@@ -17,6 +17,13 @@
+ {% if user.is_authenticated %}
+ {% if view == 'feed' %}
+
+ {% endif %}
+ {% endif %}
{% for j in episodes %}
diff --git a/audio/views.py b/audio/views.py
index ce7753d..ecd61ba 100644
--- a/audio/views.py
+++ b/audio/views.py
@@ -19,8 +19,9 @@ def feed(request, pk, slug):
return render(
request, 'audio/index.html',
{
- 'episodes': episodes, 'IMAGES_URL': IMAGES_URL,
- 'MP3_URL': MP3_URL, 'title': feed.title, 'heading': feed.title
+ 'episodes': episodes, 'IMAGES_URL': IMAGES_URL, 'view': 'feed',
+ 'MP3_URL': MP3_URL, 'title': feed.title, 'heading': feed.title,
+ 'feed_pk': pk, 'feed_slug': slug,
})
@@ -70,7 +71,7 @@ def edit_feed(request, pk, title_slug):
form = FeedForm(request.POST, request.FILES, instance=feed)
if form.is_valid():
feed.save()
- return redirect('audio:new_feed')
+ return redirect('audio:feed', pk=pk, slug=title_slug)
else:
form = FeedForm(instance=feed)
return render(