diff --git a/src/views/partials/topic/post-menu-list.tpl b/src/views/partials/topic/post-menu-list.tpl new file mode 100644 index 0000000000..2367b97062 --- /dev/null +++ b/src/views/partials/topic/post-menu-list.tpl @@ -0,0 +1,156 @@ +{{{ if posts.display_moderator_tools }}} +
  • + + [[topic:edit]] + +
  • +{{{ if posts.display_delete_tools }}} +
  • + + [[topic:delete]] + +
  • +
  • + + [[topic:restore]] + +
  • +{{{ end }}} +{{{ if posts.display_purge_tools }}} +
  • + + [[topic:purge]] + +
  • +{{{ end }}} + +{{{ if posts.display_move_tools }}} +
  • + + [[topic:move]] + +
  • +{{{ end }}} + +{{{ if posts.display_change_owner_tools }}} +
  • + + [[topic:change-owner]] + +
  • +{{{ end }}} + +{{{ if posts.display_manage_editors_tools }}} +
  • + + [[topic:manage-editors]] + +
  • +{{{ end }}} + +{{{ if posts.ip }}} +
  • + + [[topic:copy-ip]] {posts.ip} + +
  • +{{{ if posts.display_ip_ban }}} +
  • + + [[topic:ban-ip]] {posts.ip} + +
  • +{{{ end }}} +{{{ end }}} +{{{ end }}} + +{{{ each posts.tools }}} +
  • + + {{./html}} + +
  • +{{{ end }}} + +{{{ if !posts.deleted }}} + {{{ if posts.display_history}}} +
  • + + [[topic:view-history]] + +
  • + {{{ end }}} + + {{{ if config.loggedIn }}} +
  • + + + + + + [[topic:bookmark]] + {posts.bookmarks}  + +
  • + {{{ end }}} + + + {{{ if !posts.display_original_url }}} +
  • + + [[topic:copy-permalink]] + +
  • + {{{ else }}} +
  • + + [[topic:copy-permalink]] + +
  • +
  • + + [[topic:go-to-original]] + +
  • + {{{ end }}} + + {{{ if postSharing.length }}} + {{{ if config.loggedIn }}}{{{ end }}} + + {{{ end }}} +
  • + {{{ each postSharing }}} + + {{{ end }}} +
  • +{{{ end }}} + +{{{ if posts.display_flag_tools }}} + + +
  • + [[topic:flag-post]] +
  • +
  • + [[topic:already-flagged]] +
  • + +{{{ if (!posts.selfPost && posts.uid) }}} +
  • + [[topic:flag-user]] +
  • +{{{ end }}} +{{{ end }}} + +{{{ if posts.display_moderator_tools }}} +{{{ if posts.flags.exists }}} +
  • + [[topic:view-flag-report]] +
  • +{{{ if (posts.flags.state == "open") }}} +
  • + [[topic:resolve-flag]] +
  • +{{{ end }}} +{{{ end }}} +{{{ end }}} diff --git a/src/views/partials/topic/topic-menu-list.tpl b/src/views/partials/topic/topic-menu-list.tpl new file mode 100644 index 0000000000..34d23f2607 --- /dev/null +++ b/src/views/partials/topic/topic-menu-list.tpl @@ -0,0 +1,74 @@ +{{{ if privileges.editable }}} +
  • + [[topic:thread-tools.lock]] +
  • + +
  • + [[topic:thread-tools.unlock]] +
  • + +
  • + [[topic:thread-tools.pin]] +
  • + +
  • + [[topic:thread-tools.unpin]] +
  • + +
  • + [[topic:thread-tools.move]] +
  • + +
  • + [[topic:thread-tools.merge]] +
  • + +
  • + [[topic:thread-tools.fork]] +
  • + +
  • + [[topic:thread-tools.tag]] +
  • + +{{{ if !scheduled }}} +
  • + [[topic:thread-tools.move-posts]] +
  • +{{{ end }}} + +
  • + [[topic:thread-tools.markAsUnreadForAll]] +
  • + + +{{{ end }}} + +{{{ if privileges.deletable }}} +
  • + [[topic:thread-tools.delete]] +
  • + +{{{ if !scheduled }}} +
  • + [[topic:thread-tools.restore]] +
  • +{{{ end }}} + +{{{ if privileges.purge }}} +
  • + [[topic:thread-tools.purge]] +
  • +{{{ end }}} +{{{ if privileges.isAdminOrMod }}} +
  • + [[topic:thread-tools.delete-posts]] +
  • +{{{ end }}} +{{{ end }}} + +{{{ each thread_tools }}} +
  • + {./title} +
  • +{{{ end }}}