core: feat: blog

This commit is contained in:
undefined committed 2021-12-19 20:55:48 +08:00
1 parent f43c1bc8c9
commit 79aca189d1
10 files changed
+36 -31

No files matched your search

+2 -2
View File
@@ -41,8 +41,8 @@
<h1 class="section__title">{{ _("{0}'s blog").format(udoc.uname) }}</h1>
</div>
<div class="section__body">
{% if handler.user.hasPerm(perm.PERM_CREATE_DISCUSSION) and handler.user._id == udoc._id %}
<p><a href="{{ url('blog_create', uid=udoc._id) }}" class="expanded primary button">{{ _('Create a Post') }}</a></p>
{% if handler.user._id == udoc._id %}
<p><a href="{{ url('blog_create', uid=udoc._id) }}" class="expanded primary button">{{ _('Create a Post') }}</a></p>
{% endif %}
</div>
</div>