33 lines
1.4 KiB
HTML
33 lines
1.4 KiB
HTML
{% 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">
|
|
<code>{{ BASE_URL }}/{{ feed.uurl }}.rss</code>
|
|
<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 %} |