Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit 95c73ff

Browse files
committed
forum/index.html: Added category edit and new links
1 parent c5da082 commit 95c73ff

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

inyoka_theme_default/static/style/inyoka/forum.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
&:extend(list-group-item-text all);
3939
}
4040
}
41+
&-edit-category {
42+
&:extend(.pull-right);
43+
}
4144
}
4245

4346
&-topic-list {

inyoka_theme_default/templates/forum/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,22 @@
1717
(_('Forum - Full post'), href('forum', 'feeds/full/20'))
1818
] %}
1919

20+
{% block sidebar %}
21+
{% call macros.sidebar_admin() %}
22+
{{ macros.sidebar_item(_('New Category'), href('forum', 'forum', 'new')) }}
23+
{% endcall %}
24+
{% endblock %}
25+
2026
{% block content %}
2127
{% for category, forums in forum_hierarchy %}
2228
<div class="forum-list">
2329
<div class="forum-list-heading">
2430
<h3>
2531
<a href="#" data-toggle="collapse" data-target="#category_{{ category.id }}">
2632
{{ category }}
33+
<a class="forum-list-edit-category" href="{{ category|url('edit') }}">
34+
<span class="fa_icon-pencil"></span>
35+
</a>
2736
</a>
2837
</h3>
2938
</div>

0 commit comments

Comments
 (0)