Commit 9733ea9b authored by Emma's avatar Emma

show message when user cannot create forums

parent bdd41230
......@@ -15,12 +15,12 @@
<h1 class="page-heading">{{ 'forum_list.page_title'|trans }}</h1>
{% if is_granted('create_forum') %}
{% spaceless %}
<nav class="horizontal-nav forum-list-bottom-nav">
<ul>
<li><a href="{{ path('create_forum') }}" class="button">{{ 'forum_list.create_forum'|trans }}</a></li>
</ul>
</nav>
{% endspaceless %}
<p role="navigation">
<a href="{{ path('create_forum') }}" class="button">{{ 'forum_list.create_forum'|trans }}</a>
</p>
{% elseif is_granted('ROLE_USER') %}
<div class="alert alert--notice">
<p>{{ 'flash.you_cannot_create_forums_yet'|trans }}</p>
</div>
{% endif %}
{% endmacro %}
......@@ -114,6 +114,7 @@ flash:
submission_unlocked: The submission was unlocked.
submission_is_locked: The submission is locked. You cannot post new comments.
no_moderated_forums: You don't moderate any forums.
you_cannot_create_forums_yet: You cannot create forums yet.
forum:
moderators: Moderators
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment