From f000278869db15a541895df9a29b8a12bb10285c Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 7 Jan 2013 16:50:07 -0500 Subject: [PATCH] add partials --- app/views/pool_elements/_new.html.erb | 20 ++++++++++++++++++ app/views/post_appeals/_new.html.erb | 12 +++++++++++ app/views/post_flags/_new.html.erb | 29 +++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 app/views/pool_elements/_new.html.erb create mode 100644 app/views/post_appeals/_new.html.erb create mode 100644 app/views/post_flags/_new.html.erb diff --git a/app/views/pool_elements/_new.html.erb b/app/views/pool_elements/_new.html.erb new file mode 100644 index 000000000..0a3b5c92f --- /dev/null +++ b/app/views/pool_elements/_new.html.erb @@ -0,0 +1,20 @@ +
+
+ <%= 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? %> +
+

Recent Pools

+
    + <% recent_updated_pools.each do |pool| %> +
  • <%= pool.name %>
  • + <% end %> +
+
+ <% end %> +
+
diff --git a/app/views/post_appeals/_new.html.erb b/app/views/post_appeals/_new.html.erb new file mode 100644 index 000000000..ad2bd8dcc --- /dev/null +++ b/app/views/post_appeals/_new.html.erb @@ -0,0 +1,12 @@ +
+
+

If this post was automatically deleted, then it means at least ten janitors all thought it didn't belong on the site. If you still believe this image was wrongfully deleted, then you can appeal its deletion.

+ +

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") %>.

+ + <%= 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 %> +
+
diff --git a/app/views/post_flags/_new.html.erb b/app/views/post_flags/_new.html.erb new file mode 100644 index 000000000..726bcb351 --- /dev/null +++ b/app/views/post_flags/_new.html.erb @@ -0,0 +1,29 @@ +
+
+

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:

+ +
    +
  • Not anime-related
  • +
  • Furry: a character has body fur or an animal face
  • +
  • Watermark: text or logo inserted by someone besides the original artist
  • +
  • Poor compression: JPEG artifacts
  • +
  • Guro: mutilation, extreme bodily distension
  • +
  • Bad proportions: extremely large breasts or penises
  • +
  • Manga: Multiple pages of a manga, doujinshi, or comic that don't stand up to individual scrutiny
  • +
  • Fake translations: Made up translations are banned
  • +
+ +

The following are NOT valid reasons for flagging a post:

+ +
    +
  • Duplicate: just parent to the original
  • +
+ +

Enter a reason:

+ + <%= simple_form_for(@post_flag, :remote => true, :format => :js) do |f| %> + <%= f.input :post_id, :as => :hidden %> + <%= f.text_field :reason %> + <% end %> +
+