Add a link to RSS feed.
This commit is contained in:
parent
92a5f67ae3
commit
8b45c4629d
|
@ -1,5 +1,6 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% load commonmark %}
|
{% load commonmark %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
News | {{ block.super }}
|
News | {{ block.super }}
|
||||||
|
@ -8,6 +9,12 @@ News | {{ block.super }}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if request.resolver_match.kwargs.archived %}
|
{% if request.resolver_match.kwargs.archived %}
|
||||||
<i>Showing archived news items. <a href="{% url 'news:index' archived=False %}">Show regular news items</a></i>
|
<i>Showing archived news items. <a href="{% url 'news:index' archived=False %}">Show regular news items</a></i>
|
||||||
|
{% else %}
|
||||||
|
<br />
|
||||||
|
<a href="{% url 'news:feed' %}" class="btn btn-default">
|
||||||
|
<img src="{% static 'img/feed-icon-14x14.png' %}"> Get BornHack news as a RSS feed
|
||||||
|
</a>
|
||||||
|
<hr />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for item in news_items %}
|
{% for item in news_items %}
|
||||||
<div>
|
<div>
|
||||||
|
|
BIN
src/static_src/img/feed-icon-14x14.png
Executable file
BIN
src/static_src/img/feed-icon-14x14.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 689 B |
Loading…
Reference in a new issue