Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions inyoka_theme_default/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

<title>{% block title %}Inyoka{% endblock %}</title>

{% for title, url in feeds %}
<link rel="alternate" href="{{ url|e }}" title="{{ title|e }}" type="application/atom+xml" />
{% endfor %}

<link href="{{ href('static', 'style', 'style.css') }}" rel="stylesheet" type="text/css" />
{% endblock %}
</head>
Expand Down
7 changes: 7 additions & 0 deletions inyoka_theme_default/templates/forum/forum.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
#}
{% extends 'forum/base.html' %}

{% set name = _('Forum “%(name_forum)s” - ', name_forum=forum.name|e) %}
{% set feeds = [
(name + _('Captions'), href('forum', 'feeds/forum', forum.slug, 'title/20')),
(name + _('Teaser'), href('forum', 'feeds/forum', forum.slug, 'short/20')),
(name + _('Full post'), href('forum', 'feeds/forum', forum.slug, 'full/20'))
] %}

{% block title %}
{{ forum }} - {{ super() }}
{% endblock title %}
Expand Down
6 changes: 6 additions & 0 deletions inyoka_theme_default/templates/forum/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

{% extends 'forum/base.html' %}

{% set feeds = [
(_('Forum - Captions'), href('forum', 'feeds/title/20')),
(_('Forum - Teaser'), href('forum', 'feeds/short/20')),
(_('Forum - Full post'), href('forum', 'feeds/full/20'))
] %}

{% block content %}
{% for category, forums in forum_hierarchy %}
<div class="forum-list">
Expand Down
7 changes: 7 additions & 0 deletions inyoka_theme_default/templates/forum/topic.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@

{% extends 'forum/base.html' %}

{% set name = topic.title|e %}
{% set feeds = [
(name + ' - ' + _('Captions'), href('forum', 'feeds/topic', topic.slug, 'title/20')),
(name + ' - ' + _('Teaser'), href('forum', 'feeds/topic', topic.slug, 'short/20')),
(name + ' - ' + _('Full'), href('forum', 'feeds/topic', topic.slug, 'full/20'))
] %}

{% block title %}
{{ topic }} - {{ topic.forum }} - {{ super() }}
{% endblock %}
Expand Down