hrss/web/templates/feeds.html

33 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2018-10-24 23:57:41 +02:00
{% extends 'template.html' %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h1 class="mt-5">Feeds</h1>
{% if error %}<div class="alert alert-danger" role="alert">{{ error }}</div>{% endif %}
{% if feeds %}
<div class="accordion" id="accordionExample">
{% for feed in feeds %}
<div class="card">
<div class="card-header" id="heading{{ feed.id }}">
<h5 class="mb-0">
<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapse{{ feed.id }}" aria-expanded="true" aria-controls="collapse{{ feed.id }}">
<img src="https://www.google.com/s2/favicons?domain={{ feed.url }}"> {{ feed.url }}
</button>
</h5>
</div>
<div id="collapse{{ feed.id }}" class="collapse" aria-labelledby="heading{{ feed.id }}" data-parent="#accordionExample">
<div class="card-body">
2018-11-28 23:13:12 +01:00
<code>{{ BASE_URL }}{% url 'rss' uurl=feed.uurl %}</code>
2018-10-24 23:57:41 +02:00
<p><a class="btn btn-danger" href="{% url 'feed_delete' feed.id %}">Delete</a></p>
</div>
</div>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
{% endblock %}