ausglamr/blogs/templates/browse/newsletters.html

23 lines
779 B
HTML
Raw Normal View History

2024-01-04 11:54:56 +11:00
{% extends "layout.html" %}
{% block content %}
2024-01-09 18:11:22 +11:00
<div>
<a href="{% url 'register-newsletter' %}"><button class="button button-first">Add a Newsletter</button></a>
</div>
2024-01-04 11:54:56 +11:00
<div class="listing l-three header">
<span>Title</span>
<span>Author</span>
<span>Category</span>
</div>
<hr/>
{% for pub in news %}
<div class="listing l-three">
<span><a href="{{pub.url}}">{{pub.name}}</a></span>
<span>{{pub.author}}</span>
2024-01-09 18:11:22 +11:00
<span><span class="badge badge_{{pub.category}}"><a href="/newsletters/{{pub.category}}">{{pub.category_name}}</a></span></span>
2024-01-04 11:54:56 +11:00
</div>
<hr/>
2024-01-09 18:11:22 +11:00
{% empty %}
<p>Oh no! There are no newsletter currently registered. Try checking out <a href="{% url 'blogs' %}">some blogs</a>.</p>
2024-01-04 11:54:56 +11:00
{% endfor %}
{% endblock %}