* Rarely used (only used ~15 times in total, not used at all since 2015-2016). * Merging topics didn't properly bump the new topic. * Merging topics didn't log a modaction when the old topic was deleted. * Merging topics broke the old topic. Moving all the posts from one topic to another leaves the old topic with zero posts. This normally can't happen and it causes exceptions when you try to view the empty topic. * It was technically possible to merge a topic with itself. This would break the response_count. * It was technically possible for a mod to merge a topic into an admin-only topic.
43 lines
2.4 KiB
Plaintext
43 lines
2.4 KiB
Plaintext
<% content_for(:secondary_links) do %>
|
|
<%= quick_search_form_for(:body_matches, forum_posts_path, "forum posts") %>
|
|
<%= subnav_link_to "Listing", forum_topics_path %>
|
|
|
|
<% if CurrentUser.is_member? %>
|
|
<%= subnav_link_to "New", new_forum_topic_path %>
|
|
<%= subnav_link_to "Mark all as read", mark_all_as_read_forum_topics_path, :method => :post, :"data-shortcut" => "shift+r" %>
|
|
|
|
<% if @forum_topic %>
|
|
<%= subnav_link_to "Request alias/implication", new_bulk_update_request_path(bulk_update_request: { forum_topic_id: @forum_topic.id }) %>
|
|
<% else %>
|
|
<%= subnav_link_to "Request alias/implication", new_bulk_update_request_path %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= subnav_link_to "Search", search_forum_posts_path %>
|
|
<%= subnav_link_to "Help", wiki_page_path("help:forum") %>
|
|
<% if CurrentUser.is_member? && @forum_topic && !@forum_topic.new_record? %>
|
|
<li>|</li>
|
|
<%= subnav_link_to "Reply", new_forum_post_path(:topic_id => @forum_topic.id) %>
|
|
<% if !@forum_topic.new_record? && @forum_topic.editable_by?(CurrentUser.user) %>
|
|
<%= subnav_link_to "Edit", edit_forum_topic_path(@forum_topic), "data-shortcut": "e" %>
|
|
<% if CurrentUser.is_moderator? %>
|
|
<% if @forum_topic.is_deleted? %>
|
|
<%= subnav_link_to "Undelete", undelete_forum_topic_path(@forum_topic), :method => :post %>
|
|
<% else %>
|
|
<%= subnav_link_to "Delete", forum_topic_path(@forum_topic), :method => :delete, :"data-shortcut" => "shift+d", :"data-confirm" => "Are you sure you want to delete this forum topic?" %>
|
|
<% end %>
|
|
<% if @forum_topic.is_locked? %>
|
|
<%= subnav_link_to "Unlock", forum_topic_path(@forum_topic, :forum_topic => {:is_locked => false}), :method => :put %>
|
|
<% else %>
|
|
<%= subnav_link_to "Lock", forum_topic_path(@forum_topic, :forum_topic => {:is_locked => true}), :method => :put, :data => {:confirm => "Are you sure you want to lock this forum topic?"} %>
|
|
<% end %>
|
|
<% if @forum_topic.is_sticky? %>
|
|
<%= subnav_link_to "Unsticky", forum_topic_path(@forum_topic, :forum_topic => {:is_sticky => false}), :method => :put %>
|
|
<% else %>
|
|
<%= subnav_link_to "Sticky", forum_topic_path(@forum_topic, :forum_topic => {:is_sticky => true}), :method => :put, :data => {:confirm => "Are you sure you want to sticky this forum topic?"} %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|