diff --git a/inyoka_theme_default/templates/base.html b/inyoka_theme_default/templates/base.html index c7a7370..239d3b2 100644 --- a/inyoka_theme_default/templates/base.html +++ b/inyoka_theme_default/templates/base.html @@ -24,6 +24,10 @@ {% block title %}Inyoka{% endblock %} + {% for title, url in feeds %} + + {% endfor %} + {% endblock %} diff --git a/inyoka_theme_default/templates/forum/forum.html b/inyoka_theme_default/templates/forum/forum.html index f979286..6b92b48 100644 --- a/inyoka_theme_default/templates/forum/forum.html +++ b/inyoka_theme_default/templates/forum/forum.html @@ -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 %} diff --git a/inyoka_theme_default/templates/forum/index.html b/inyoka_theme_default/templates/forum/index.html index fd67046..54e056d 100644 --- a/inyoka_theme_default/templates/forum/index.html +++ b/inyoka_theme_default/templates/forum/index.html @@ -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 %}
diff --git a/inyoka_theme_default/templates/forum/topic.html b/inyoka_theme_default/templates/forum/topic.html index 7ebb3df..4d50d54 100644 --- a/inyoka_theme_default/templates/forum/topic.html +++ b/inyoka_theme_default/templates/forum/topic.html @@ -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 %}