<div class="contentNavigation">
<nav>
<ul>
- <li class="jsOnly"><button id="enableContent">{lang}wcf.moderation.activation.enableContent{/lang}</button></li>
- <li class="jsOnly"><button id="removeContent">{lang}wcf.moderation.activation.removeContent{/lang}</button></li>
+ {if !$queue->isDone()}
+ <li class="jsOnly"><button id="enableContent">{lang}wcf.moderation.activation.enableContent{/lang}</button></li>
+ <li class="jsOnly"><button id="removeContent">{lang}wcf.moderation.activation.removeContent{/lang}</button></li>
+ {/if}
<li><a href="{link controller='ModerationList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}wcf.moderation.moderation{/lang}</span></a></li>
{event name='contentNavigationButtonsBottom'}
<div class="contentNavigation">
<nav>
<ul>
- <li class="jsOnly"><button id="removeContent">{lang}wcf.moderation.report.removeContent{/lang}</button></li>
- {if $queue->status != 2}
+ {if !$queue->isDone()}
+ <li class="jsOnly"><button id="removeContent">{lang}wcf.moderation.report.removeContent{/lang}</button></li>
<li class="jsOnly"><button id="removeReport">{lang}wcf.moderation.report.removeReport{/lang}</button></li>
{/if}
<li><a href="{link controller='ModerationList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}wcf.moderation.moderation{/lang}</span></a></li>
return ($row !== false && $row['isAffected']);
}
+
+ /**
+ * Returns true, if this queue is done.
+ *
+ * @return boolean
+ */
+ public function isDone() {
+ return ($this->status == self::STATUS_DONE);
+ }
}