fix old routes

This commit is contained in:
albert
2013-01-07 16:50:00 -05:00
parent d6ae894097
commit 2a88c312c8
5 changed files with 8 additions and 66 deletions

View File

@@ -1,20 +1 @@
<div id="c-pool-elements">
<div id="a-new">
<%= form_tag(pool_element_path) do %>
<%= hidden_field_tag "post_id", @post.id %>
<%= text_field_tag "pool_name", "", :size => 20 %>
<%= submit_tag "Select" %>
<% end %>
<% if recent_updated_pools.any? %>
<div>
<h1>Recent Pools</h1>
<ul id="recent-pools">
<% recent_updated_pools.each do |pool| %>
<li><%= pool.name %></li>
<% end %>
</ul>
</div>
<% end %>
</div>
</div>
<%= render "pool_elements/new" %>

View File

@@ -1,12 +1 @@
<div id="c-post-appeals">
<div id="a-index">
<p>If this post was automatically deleted, <strong>then it means at least ten janitors all thought it didn't belong on the site</strong>. If you still believe this image was wrongfully deleted, then you can appeal its deletion.</p>
<p>All users are limited to one appeal a day. For more details, please read the <%= link_to "wiki", wiki_pages_path(:title => "help:deletion_appeals") %>.</p>
<%= simple_form_for(@post_appeal, :remote => true, :format => :js) do |f| %>
<%= hidden_field_tag "post_appeal[post_id]", @post_appeal.post_id %>
<%= f.text_field :reason, :size => "40x5" %>
<% end %>
</div>
</div>
<%= render "post_appeals/new" %>

View File

@@ -1,29 +1 @@
<div id="c-post-flags">
<div id="a-index">
<p>If you believe a post does not belong on this site, you can flag for its deletion. As a reminder, the following are some common reasons for flagging a post:</p>
<ul>
<li>Not anime-related</li>
<li>Furry: a character has body fur or an animal face</li>
<li>Watermark: text or logo inserted by someone besides the original artist</li>
<li>Poor compression: JPEG artifacts</li>
<li>Guro: mutilation, extreme bodily distension</li>
<li>Bad proportions: extremely large breasts or penises</li>
<li>Manga: Multiple pages of a manga, doujinshi, or comic that don't stand up to individual scrutiny</li>
<li>Fake translations: Made up translations are banned</li>
</ul>
<p>The following are <strong>NOT</strong> valid reasons for flagging a post:</p>
<ul>
<li>Duplicate: just parent to the original</li>
</ul>
<p>Enter a reason:</p>
<%= simple_form_for(@post_flag, :remote => true, :format => :js) do |f| %>
<%= f.input :post_id, :as => :hidden %>
<%= f.text_field :reason %>
<% end %>
</div>
</div>
<%= render "post_flags/new" %>

View File

@@ -73,15 +73,15 @@
</div>
<div id="flag-dialog" title="Flag post">
<%= render :template => "post_flags/new" %>
<%= render "post_flags/new" %>
</div>
<div id="appeal-dialog" title="Appeal post">
<%= render :template => "post_appeals/new" %>
<%= render "post_appeals/new" %>
</div>
<div id="add-to-pool-dialog" title="Add to pool">
<%= render :template => "pool_elements/new" %>
<%= render "pool_elements/new" %>
</div>
</div>

View File

@@ -195,7 +195,7 @@ Danbooru::Application.routes.draw do
match "/artist" => redirect {|params, req| "/artists?page=#{req.params[:page]}"}
match "/artist/index" => redirect {|params, req| "/artists?page=#{req.params[:page]}"}
match "/artist/show/:id" => redirect("/artists/%{id}")
match "/artist/history/:id" => redirect("/artist_versions?search[artist_id]=%{id}")
match "/artist/history/:id" => redirect("/artist_versions?search[artist_id_eq]=%{id}")
match "/comment" => redirect {|params, req| "/comments?page=#{req.params[:page]}"}
match "/comment/index" => redirect {|params, req| "/comments?page=#{req.params[:page]}"}
@@ -215,7 +215,7 @@ Danbooru::Application.routes.draw do
match "/pool" => redirect {|params, req| "/pools?page=#{req.params[:page]}"}
match "/pool/index" => redirect {|params, req| "/pools?page=#{req.params[:page]}"}
match "/pool/show/:id" => redirect("/pools/%{id}")
match "/pool/history/:id" => redirect("/pool_versions?search[pool_id]=%{id}")
match "/pool/history/:id" => redirect("/pool_versions?search[pool_id_eq]=%{id}")
match "/pool/recent_changes" => redirect("/pool_versions")
match "/post/index.xml", :controller => "legacy", :action => "posts", :format => "xml"