44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
<div class="page-header">
|
|
<div class="clearfix">
|
|
<h1><%content_header_title || 'Forum'%></h1>
|
|
<%~if post_toolbar%>
|
|
<%include include_post_toolbar.html%>
|
|
<%~else%>
|
|
<%include include_forum_actions.html%>
|
|
<%~endif%>
|
|
</div>
|
|
<hr class="line" />
|
|
</div>
|
|
|
|
<%~if errors.length%><%set error_loop = $errors%><%endif%>
|
|
<%~if success or success_loop.length%>
|
|
<div class="message<%unless error or error_loop.length or welcome%> last<%endunless%>">
|
|
<ul>
|
|
<%~if success starts '<li>'%>
|
|
<%success%>
|
|
<%~elsif success%>
|
|
<li><%success%></li>
|
|
<%~endif%>
|
|
<%~loop success_loop%>
|
|
<li><%loop_value%></li>
|
|
<%~endloop%>
|
|
</ul>
|
|
</div>
|
|
<%~endif%>
|
|
<%~if error or error_loop.length%>
|
|
<div class="error<%unless welcome%> last<%endunless%>">
|
|
<ul>
|
|
<%~if error starts '<li>'%>
|
|
<%error%>
|
|
<%~elsif error%>
|
|
<li><%error%></li>
|
|
<%~endif%>
|
|
<%~loop error_loop%>
|
|
<li><%loop_value.error || $loop_value%></li><%-- error_loop values containing an 'error' key are used by GForum in some places, which were implemented before loop_value existed --%>
|
|
<%~endloop%>
|
|
</ul>
|
|
</div>
|
|
<%~endif%>
|
|
|
|
<%include include_forum_rules.html%>
|