* Remove the single alias and implication request forms. From now on, bulk update requests are the only way to request aliases or implications. * Remove the forum topic ID field from the bulk update request form. Instead, to attach a BUR to an existing topic you go to the topic then you click "Request alias/implication" at the top of the page. * Update the bulk update request form to give better examples for the script format and to explain the difference between aliases and implications.
49 lines
2.9 KiB
Plaintext
49 lines
2.9 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_pages_path(:title => "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.user_subscription(CurrentUser.user) %>
|
|
<%= subnav_link_to "Unsubscribe", unsubscribe_forum_topic_path(@forum_topic), :method => :post %>
|
|
<% else %>
|
|
<%= subnav_link_to "Subscribe", subscribe_forum_topic_path(@forum_topic), :method => :post, :data => {:confirm => "Are you sure you want to receive email notifications for this forum topic?"} %>
|
|
<% end %>
|
|
<% 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 %>
|
|
<%= subnav_link_to "Merge", new_merge_forum_topic_path(@forum_topic) %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|