Remove /tag_aliases/new and /tag_implications/new
This page is bugged. It creates an alias record without doing anything else like moving the posts. I think it's been like this for years yet nobody noticed so I assume it never gets used and the batch import page is just used instead.
This commit is contained in:
@@ -7,11 +7,6 @@ class TagAliasesController < ApplicationController
|
||||
respond_with(@tag_alias)
|
||||
end
|
||||
|
||||
def new
|
||||
@tag_alias = TagAlias.new(params[:tag_alias])
|
||||
respond_with(@tag_alias)
|
||||
end
|
||||
|
||||
def edit
|
||||
@tag_alias = TagAlias.find(params[:id])
|
||||
end
|
||||
@@ -36,11 +31,6 @@ class TagAliasesController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def create
|
||||
@tag_alias = TagAlias.create(params[:tag_alias])
|
||||
respond_with(@tag_alias, :location => tag_aliases_path(:search => {:id => @tag_alias.id}))
|
||||
end
|
||||
|
||||
def destroy
|
||||
@tag_alias = TagAlias.find(params[:id])
|
||||
if @tag_alias.deletable_by?(CurrentUser.user)
|
||||
|
||||
@@ -7,11 +7,6 @@ class TagImplicationsController < ApplicationController
|
||||
respond_with(@tag_implication)
|
||||
end
|
||||
|
||||
def new
|
||||
@tag_implication = TagImplication.new
|
||||
respond_with(@tag_implication)
|
||||
end
|
||||
|
||||
def edit
|
||||
@tag_implication = TagImplication.find(params[:id])
|
||||
end
|
||||
@@ -36,11 +31,6 @@ class TagImplicationsController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def create
|
||||
@tag_implication = TagImplication.create(params[:tag_implication])
|
||||
respond_with(@tag_implication, :location => tag_implications_path(:search => {:id => @tag_implication.id}))
|
||||
end
|
||||
|
||||
def destroy
|
||||
@tag_implication = TagImplication.find(params[:id])
|
||||
if @tag_implication.deletable_by?(CurrentUser.user)
|
||||
|
||||
@@ -2,11 +2,7 @@
|
||||
<menu>
|
||||
<li><%= link_to "Listing", tag_aliases_path %></li>
|
||||
<li><%= link_to "MetaSearch", meta_searches_tags_path %></li>
|
||||
<% if CurrentUser.is_admin? %>
|
||||
<li><%= link_to "New", new_tag_alias_path %></li>
|
||||
<% else %>
|
||||
<li><%= link_to "Request alias", new_tag_alias_request_path %></li>
|
||||
<% end %>
|
||||
<li><%= link_to "Request alias", new_tag_alias_request_path %></li>
|
||||
<li><%= link_to "Request bulk update", new_bulk_update_request_path %></li>
|
||||
<li><%= link_to "Help", wiki_pages_path(:title => "help:tag_aliases") %></li>
|
||||
</menu>
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
<div id="c-tag-aliases">
|
||||
<div id="a-new">
|
||||
<h1>New Tag Alias</h1>
|
||||
|
||||
<%= error_messages_for :tag_alias %>
|
||||
|
||||
<%= simple_form_for(@tag_alias) do |f| %>
|
||||
<%= f.input :status, :value => "pending", :as => :hidden %>
|
||||
<%= f.input :antecedent_name, :as => :string, :label => "From" %>
|
||||
<%= f.input :consequent_name, :label => "To" %>
|
||||
<%= f.input :forum_topic_id, :label => "Forum" %>
|
||||
<%= f.button :submit %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
New Tag Alias - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
@@ -2,11 +2,7 @@
|
||||
<menu>
|
||||
<li><%= link_to "Listing", tag_implications_path %></li>
|
||||
<li><%= link_to "MetaSearch", meta_searches_tags_path %></li>
|
||||
<% if CurrentUser.is_admin? %>
|
||||
<li><%= link_to "New", new_tag_implication_path %></li>
|
||||
<% else %>
|
||||
<li><%= link_to "Request implication", new_tag_implication_request_path %></li>
|
||||
<% end %>
|
||||
<li><%= link_to "Request implication", new_tag_implication_request_path %></li>
|
||||
<li><%= link_to "Request bulk update", new_bulk_update_request_path %></li>
|
||||
<li><%= link_to "Help", wiki_pages_path(:title => "help:tag_implications") %></li>
|
||||
</menu>
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
<div id="c-tag-aliases">
|
||||
<div id="a-new">
|
||||
<h1>New Tag Implication</h1>
|
||||
|
||||
<%= error_messages_for :tag_implication %>
|
||||
|
||||
<%= simple_form_for(@tag_implication) do |f| %>
|
||||
<%= f.input :status, :value => "pending", :as => :hidden %>
|
||||
<%= f.input :antecedent_name, :label => "From" %>
|
||||
<%= f.input :consequent_name, :label => "To" %>
|
||||
<%= f.input :forum_topic_id, :label => "Forum" %>
|
||||
<%= f.button :submit %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
New Tag Implication - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user