ausglamr/blogs/templates/browse/newsletters.html

33 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2024-01-04 11:54:56 +11:00
{% extends "layout.html" %}
2024-01-26 11:00:26 +11:00
{% block feed %}
<link href="newsletter-editions/feed" type="application/atom+xml" rel="alternate" title="Aus GLAMR Newsletters" />
{% endblock %}
2024-01-04 11:54:56 +11:00
{% block content %}
<div class="buttons">
<a href="{% url 'newsletter-editions' %}"><button class="button button-primary button-first">Latest editions</button></a>
<a href="{% url 'register-newsletter' %}"><button class="button">Add a Newsletter</button></a>
2024-01-09 18:11:22 +11:00
</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>
{% if pub.feed %}
<a href="{{pub.feed}}">{% include 'utils/rss-img.html' %}</a>
{% endif %}
</span>
2024-01-26 11:00:26 +11:00
<span>{{pub.author_name}}</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 %}
2024-01-26 11:00:26 +11:00
<p>Oh no! There are no newsletter currently registered{% if category %} under '{{category}}'{% endif %}. Try checking out <a href="{% url 'blogs' %}">some blogs</a>.</p>
2024-01-04 11:54:56 +11:00
{% endfor %}
{% endblock %}