mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-21 17:11:30 -08:00
update cards with link buttons
This commit is contained in:
parent
843f7b8a3c
commit
7411fcc1ec
@ -19,11 +19,11 @@
|
||||
<div class="col-3 d-flex flex-column justify-content-center">
|
||||
<img src="{{ IMAGES_URL }}{{ i.image }}">
|
||||
</div>
|
||||
<div class="col-9 d-flex flex-column justify-content-center">
|
||||
<div class="col-9 d-flex flex-column justify-content-around">
|
||||
<p class="text-center mb-2 mt-3">{{ i.created_on }}</p>
|
||||
<div class="d-flex flex-row justify-content-around mt-3">
|
||||
<p><a href="{% url 'audio:feed' pk=i.pk slug=i.slug %}">Items</a></p>
|
||||
<p><a href="{% url 'audio:rss' slug=i.slug %}">RSS</a></p>
|
||||
<div class="d-flex flex-row justify-content-around">
|
||||
<p><a type="button" class="btn btn-dark" href="{% url 'audio:feed' pk=i.pk slug=i.slug %}">Items</a></p>
|
||||
<p><a type="button" class="btn btn-dark" href="{% url 'audio:rss' slug=i.slug %}">RSS</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -35,11 +35,14 @@
|
||||
<div class="col-3 d-flex flex-column justify-content-center">
|
||||
<img src="{{ IMAGES_URL }}{{ j.image }}">
|
||||
</div>
|
||||
<div class="col-9 d-flex flex-column justify-content-center">
|
||||
<div class="col-9 d-flex flex-column justify-content-around">
|
||||
<p class="text-center mb-2 mt-3">{{ j.pub_date }}</p>
|
||||
<div class="d-flex flex-row justify-content-around mt-3">
|
||||
<p><a href="{% url 'audio:episode' pk=j.pk slug=j.slug %}">Link</a></p>
|
||||
<p><a href="{% url 'audio:rss' slug=j.feed.slug %}">RSS</a></p>
|
||||
<div class="d-flex flex-row justify-content-around">
|
||||
<p><a type="button" class="btn btn-dark" href="{% url 'audio:episode' pk=j.pk slug=j.slug %}">Link</a></p>
|
||||
{% if add_feed_link %}
|
||||
<p><a type="button" class="btn btn-dark" href="{% url 'audio:feed' pk=j.feed.id slug=j.feed.slug %}">Feed</a></p>
|
||||
{% endif %}
|
||||
<p><a type="button" class="btn btn-dark" href="{% url 'audio:rss' slug=j.feed.slug %}">RSS</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -11,7 +11,9 @@ def home(request):
|
||||
return render(
|
||||
request,
|
||||
'audio/index.html',
|
||||
{'episodes': episodes, 'IMAGES_URL': IMAGES_URL, 'MP3_URL': MP3_URL})
|
||||
{
|
||||
'episodes': episodes, 'IMAGES_URL': IMAGES_URL,
|
||||
'MP3_URL': MP3_URL, 'add_feed_link': True})
|
||||
|
||||
|
||||
def feed(request, pk, slug):
|
||||
|
Loading…
Reference in New Issue
Block a user