add new_episode link to feed view(s)

This commit is contained in:
Trent Palmer 2021-03-13 09:01:39 -08:00
parent daa3247b73
commit 5a052c2a56

View File

@ -19,8 +19,9 @@
<div class="col-12 col-sm-6 px-0 mx-0"> <div class="col-12 col-sm-6 px-0 mx-0">
{% if user.is_authenticated %} {% if user.is_authenticated %}
{% if view == 'feed' %} {% if view == 'feed' %}
<div class="text-center mb-3"> <div class="mb-3 d-flex justify-content-around">
<a href="{% url 'audio:edit_feed' pk=feed_pk title_slug=feed_slug %}">Edit Feed?</a> <a href="{% url 'audio:edit_feed' pk=feed_pk title_slug=feed_slug %}">Edit Feed?</a>
<a href="{% url 'audio:new_episode' feed_pk=feed_pk feed_title_slug=feed_slug %}">New Episode?</a>
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}
@ -61,9 +62,11 @@
<div> <div>
<a href="{% url 'audio:edit_episode' pk=j.pk title_slug=j.slug %}">Edit Episode?</a><br> <a href="{% url 'audio:edit_episode' pk=j.pk title_slug=j.slug %}">Edit Episode?</a><br>
</div> </div>
{% if view != 'feed' %}
<div> <div>
<a href="{% url 'audio:new_episode' feed_pk=j.feed.pk feed_title_slug=j.feed.slug %}">New Episode?</a> <a href="{% url 'audio:new_episode' feed_pk=j.feed.pk feed_title_slug=j.feed.slug %}">New Episode?</a>
</div> </div>
{% endif %}
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}