| Current File : /home/jvzmxxx/wiki1/extensions/Flow/handlebars/flow_moderation_actions_list.partial.handlebars |
<section>
{{~#ifCond moderationType "===" "topic"~}}
{{!-- Topic only --}}
{{~#if actions.edit~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-progressive mw-ui-quiet mw-ui-hovericon flow-ui-edit-title-link"
href="{{actions.edit.url}}">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-edit mw-ui-icon-edit-progressive-hover"></span> {{/if~}}
{{~l10n (concat "flow-topic-action-edit-title")~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~#if links.topic-history~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-quiet"
href="{{links.topic-history.url}}">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-clock"></span> {{/if~}}
{{~l10n (concat "flow-topic-action-history")~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~#if links.topic~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-quiet"
href="{{links.topic.url}}">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-link"></span> {{/if~}}
{{~l10n (concat "flow-topic-action-view")~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~#if actions.summarize~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-progressive mw-ui-quiet mw-ui-hovericon flow-ui-summarize-topic-link"
href="{{actions.summarize.url}}">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-stripeToC mw-ui-icon-stripeToC-progressive-hover"></span> {{/if~}}
{{~#if summary.revision.content.content~}}
{{~l10n (concat "flow-topic-action-resummarize-topic")~}}
{{else~}}
{{~l10n (concat "flow-topic-action-summarize-topic")~}}
{{~/if~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~/ifCond~}}
{{~#ifCond moderationType "===" "history"~}}
{{!-- The history page uses a modal, while the topic view puts this in the title bar --}}
{{~#if actions.lock~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-progressive mw-ui-quiet mw-ui-hovericon flow-ui-topicmenu-lock"
data-role="lock"
data-flow-id="{{postId}}"
href="{{actions.lock.url}}">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-check mw-ui-icon-check-progressive-hover"></span> {{/if~}}
{{~l10n (concat "flow-" moderationType "-action-lock-topic")~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~#if actions.unlock~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-progressive mw-ui-quiet mw-ui-hovericon flow-ui-topicmenu-lock"
data-role="unlock"
data-flow-id="{{postId}}"
href="{{actions.unlock.url}}">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-ongoingConversation mw-ui-icon-ongoingConversation-progressive-hover"></span> {{/if~}}
{{~l10n (concat "flow-" moderationType "-action-unlock-topic")~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{else}}
{{!-- @todo Maybe we should change the topic view so that it also uses this modal? Consistency! --}}
{{~#if actions.lock~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-progressive mw-ui-quiet mw-ui-hovericon flow-ui-topicmenu-lock"
data-flow-id="{{postId}}"
data-role="lock"
href="{{actions.lock.url}}">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-check mw-ui-icon-check-progressive-hover"></span> {{/if~}}
{{~l10n (concat "flow-" moderationType "-action-lock-topic")~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~#if actions.unlock~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-progressive mw-ui-quiet mw-ui-hovericon flow-ui-topicmenu-lock"
data-flow-id="{{postId}}"
data-role="unlock"
href="{{actions.unlock.url}}">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-ongoingConversation mw-ui-icon-ongoingConversation-progressive-hover"></span> {{/if~}}
{{~l10n (concat "flow-" moderationType "-action-unlock-topic")~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~/ifCond~}}
{{~#ifCond moderationType "===" "post"~}}
{{!-- Post only --}}
{{~#if actions.edit~}}
<li>
<a class="{{moderationMwUiClass}} mw-ui-progressive mw-ui-quiet mw-ui-hovericon flow-ui-edit-post-link"
href="{{actions.edit.url}}"
>
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-edit mw-ui-icon-edit-progressive-hover"></span> {{/if~}}
{{~l10n "flow-post-action-edit-post"~}}
</a>
</li>
{{~/if~}}
{{~#if links.post~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-quiet"
href="{{links.post.url}}">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-link"></span> {{/if~}}
{{~l10n (concat "flow-post-action-view")~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~/ifCond~}}
</section>
<section>
{{~#ifCond moderationType "===" "history"~}}
{{!-- Board history only --}}
{{~#if actions.undo~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-quiet"
href="{{actions.undo.url}}"
>
{{~actions.undo.title~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~/ifCond~}}
{{~#if actions.hide~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-quiet"
href="{{actions.hide.url}}"
data-flow-interactive-handler="moderationDialog"
data-flow-template="flow_moderate_{{moderationTemplate}}.partial"
data-role="hide">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-flag"></span> {{/if~}}
{{~l10n (concat "flow-" moderationType "-action-hide-" moderationTemplate)~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~#if actions.unhide~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-quiet"
href="{{actions.unhide.url}}"
data-flow-interactive-handler="moderationDialog"
data-flow-template="flow_moderate_{{moderationTemplate}}.partial"
data-role="unhide">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-flag"></span> {{/if~}}
{{~l10n (concat "flow-" moderationType "-action-unhide-" moderationTemplate)~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~#if actions.delete~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-destructive mw-ui-quiet mw-ui-hovericon"
href="{{actions.delete.url}}"
data-flow-interactive-handler="moderationDialog"
data-flow-template="flow_moderate_{{moderationTemplate}}.partial"
data-role="delete">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-remove mw-ui-icon-remove-destructive-hover"></span> {{/if~}}
{{~l10n (concat "flow-" moderationType "-action-delete-" moderationTemplate)~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~#if actions.undelete~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-destructive mw-ui-quiet mw-ui-hovericon"
href="{{actions.undelete.url}}"
data-flow-interactive-handler="moderationDialog"
data-flow-template="flow_moderate_{{moderationTemplate}}.partial"
data-role="undelete">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-remove mw-ui-icon-remove-destructive-hover"></span> {{/if~}}
{{~l10n (concat "flow-" moderationType "-action-undelete-" moderationTemplate)~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~#if actions.suppress~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-destructive mw-ui-quiet mw-ui-hovericon"
href="{{actions.suppress.url}}"
data-flow-interactive-handler="moderationDialog"
data-flow-template="flow_moderate_{{moderationTemplate}}.partial"
data-role="suppress">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-block mw-ui-icon-block-destructive-hover"></span> {{/if~}}
{{~l10n (concat "flow-" moderationType "-action-suppress-" moderationTemplate)~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
{{~#if actions.unsuppress~}}
<li>
{{~noop~}}
<a class="{{moderationMwUiClass}} mw-ui-destructive mw-ui-quiet mw-ui-hovericon"
href="{{actions.unsuppress.url}}"
data-flow-interactive-handler="moderationDialog"
data-flow-template="flow_moderate_{{moderationTemplate}}.partial"
data-role="unsuppress">
{{~#if moderationIcons}}<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-block mw-ui-icon-block-destructive-hover"></span> {{/if~}}
{{~l10n (concat "flow-" moderationType "-action-unsuppress-" moderationTemplate)~}}
</a>
{{~noop~}}
</li>
{{~/if~}}
</section>