Kill trailing whitespace in erb files
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
<div id="c-admin-users">
|
<div id="c-admin-users">
|
||||||
<div id="a-edit">
|
<div id="a-edit">
|
||||||
<h1>Edit User: <%= @user.name %></h1>
|
<h1>Edit User: <%= @user.name %></h1>
|
||||||
|
|
||||||
<%= form_tag(admin_user_path(@user), :method => :put, :class => "simple_form") do %>
|
<%= form_tag(admin_user_path(@user), :method => :put, :class => "simple_form") do %>
|
||||||
<%= hidden_field_tag "id", @user.id %>
|
<%= hidden_field_tag "id", @user.id %>
|
||||||
|
|
||||||
<div class="input integer optional">
|
<div class="input integer optional">
|
||||||
<label for="user_level" class="optional">Level</label>
|
<label for="user_level" class="optional">Level</label>
|
||||||
<%= user_level_select(:user, :level) %>
|
<%= user_level_select(:user, :level) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag "Update" %>
|
<%= submit_tag "Update" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<%= f.input :group_name %>
|
<%= f.input :group_name %>
|
||||||
<%= f.input :url_string, :label => "URLs", :as => :text, :input_html => {:size => "50x5"} %>
|
<%= f.input :url_string, :label => "URLs", :as => :text, :input_html => {:size => "50x5"} %>
|
||||||
<%= f.input :is_active %>
|
<%= f.input :is_active %>
|
||||||
|
|
||||||
<%= dtext_field "artist", "notes" %>
|
<%= dtext_field "artist", "notes" %>
|
||||||
<%= f.button :submit, "Submit" %>
|
<%= f.button :submit, "Submit" %>
|
||||||
<%= dtext_preview_button "artist", "notes" %>
|
<%= dtext_preview_button "artist", "notes" %>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<div id="c-artists">
|
<div id="c-artists">
|
||||||
<div id="a-banned">
|
<div id="a-banned">
|
||||||
<h1>Banned Artists</h1>
|
<h1>Banned Artists</h1>
|
||||||
|
|
||||||
<p>The following artists have requested they be removed from the site. Please do not upload any works from these artists. These artists all have implications pointing to the <code>banned_artist</code> tag.</p>
|
<p>The following artists have requested they be removed from the site. Please do not upload any works from these artists. These artists all have implications pointing to the <code>banned_artist</code> tag.</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<% @artists.each do |artist| %>
|
<% @artists.each do |artist| %>
|
||||||
<li><%= link_to artist.name, artist_path(artist) %></li>
|
<li><%= link_to artist.name, artist_path(artist) %></li>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-artists">
|
<div id="c-artists">
|
||||||
<div id="a-edit">
|
<div id="a-edit">
|
||||||
<h1>Edit Artist</h1>
|
<h1>Edit Artist</h1>
|
||||||
<%= render "form" %>
|
<%= render "form" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-artists">
|
<div id="c-artists">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Artists</h1>
|
<h1>Artists</h1>
|
||||||
|
|
||||||
<table class="striped" width="100%">
|
<table class="striped" width="100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<div id="c-artists">
|
<div id="c-artists">
|
||||||
<div id="a-new">
|
<div id="a-new">
|
||||||
<h1>New Artist</h1>
|
<h1>New Artist</h1>
|
||||||
|
|
||||||
<%= error_messages_for :artist %>
|
<%= error_messages_for :artist %>
|
||||||
|
|
||||||
<%= render "form" %>
|
<%= render "form" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-artists">
|
<div id="c-artists">
|
||||||
<div id="a-search">
|
<div id="a-search">
|
||||||
<h1>Search Artists</h1>
|
<h1>Search Artists</h1>
|
||||||
|
|
||||||
<div id="search-form">
|
<div id="search-form">
|
||||||
<%= form_tag(artists_path, :method => :get, :class => "simple_form") do %>
|
<%= form_tag(artists_path, :method => :get, :class => "simple_form") do %>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
<%= text_field "search", "name" %>
|
<%= text_field "search", "name" %>
|
||||||
<p class="hint">You can search on any name or URL</p>
|
<p class="hint">You can search on any name or URL</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label>Sort</label>
|
<label>Sort</label>
|
||||||
<%= select "search", "sort", ["Date", "Name"] %>
|
<%= select "search", "sort", ["Date", "Name"] %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="bans">
|
<div class="bans">
|
||||||
<div class="index">
|
<div class="index">
|
||||||
<h1>Bans</h1>
|
<h1>Bans</h1>
|
||||||
|
|
||||||
<table class="striped" width="100%">
|
<table class="striped" width="100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= numbered_paginator(@bans) %>
|
<%= numbered_paginator(@bans) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<div id="c-comments">
|
<div id="c-comments">
|
||||||
<div id="a-edit">
|
<div id="a-edit">
|
||||||
<h1>Edit Comment</h1>
|
<h1>Edit Comment</h1>
|
||||||
|
|
||||||
<%= error_messages_for "comment" %>
|
<%= error_messages_for "comment" %>
|
||||||
|
|
||||||
<%= simple_form_for(@comment) do |f| %>
|
<%= simple_form_for(@comment) do |f| %>
|
||||||
<%= dtext_field "comment", "body" %>
|
<%= dtext_field "comment", "body" %>
|
||||||
<%= f.button :submit, "Submit" %>
|
<%= f.button :submit, "Submit" %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-comments">
|
<div id="c-comments">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Comments</h1>
|
<h1>Comments</h1>
|
||||||
|
|
||||||
<div class="comments-for-post">
|
<div class="comments-for-post">
|
||||||
<div class="list-of-comments">
|
<div class="list-of-comments">
|
||||||
<% @comments.each do |comment| %>
|
<% @comments.each do |comment| %>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= numbered_paginator(@comments) %>
|
<%= numbered_paginator(@comments) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<div id="c-comments">
|
<div id="c-comments">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Comments</h1>
|
<h1>Comments</h1>
|
||||||
|
|
||||||
<% if @posts.empty? %>
|
<% if @posts.empty? %>
|
||||||
<%= render "post_sets/blank" %>
|
<%= render "post_sets/blank" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% @posts.select {|x| Danbooru.config.can_user_see_post?(CurrentUser.user, x)}.each do |post| %>
|
<% @posts.select {|x| Danbooru.config.can_user_see_post?(CurrentUser.user, x)}.each do |post| %>
|
||||||
<div class="post post-preview" data-tags="<%= post.tag_string %>" data-uploader="<%= post.uploader_name %>" data-rating="<%= post.rating %>" data-flags="<%= post.status %>" data-score="<%= post.score %>" data-parent-id="<%= post.parent_id %>" data-has-children="<%= post.has_children? %>" data-id="<%= post.id %>" data-width="<%= post.image_width %>" data-height="<%= post.image_height %>">
|
<div class="post post-preview" data-tags="<%= post.tag_string %>" data-uploader="<%= post.uploader_name %>" data-rating="<%= post.rating %>" data-flags="<%= post.status %>" data-score="<%= post.score %>" data-parent-id="<%= post.parent_id %>" data-has-children="<%= post.has_children? %>" data-id="<%= post.id %>" data-width="<%= post.image_width %>" data-height="<%= post.image_height %>">
|
||||||
<div class="preview">
|
<div class="preview">
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= numbered_paginator(@posts) %>
|
<%= numbered_paginator(@posts) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -18,9 +18,9 @@
|
|||||||
<%= render :partial => "comments/partials/show/comment", :collection => comments %>
|
<%= render :partial => "comments/partials/show/comment", :collection => comments %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
|
|
||||||
<div class="new-comment">
|
<div class="new-comment">
|
||||||
<p><%= link_to "Post comment", new_comment_path, :class => "expand-comment-response" %></p>
|
<p><%= link_to "Post comment", new_comment_path, :class => "expand-comment-response" %></p>
|
||||||
<%= render "comments/partials/new/form", :post => post %>
|
<%= render "comments/partials/new/form", :post => post %>
|
||||||
|
|||||||
@@ -6,4 +6,4 @@
|
|||||||
<%= dtext_field "comment", "body", :input_id => "comment_response_for_#{post.id}", :preview_id => "dtext-preview-for-#{post.id}" %>
|
<%= dtext_field "comment", "body", :input_id => "comment_response_for_#{post.id}", :preview_id => "dtext-preview-for-#{post.id}" %>
|
||||||
<%= dtext_preview_button "comment", "body", :input_id => "comment_response_for_#{post.id}", :preview_id => "dtext-preview-for-#{post.id}" %>
|
<%= dtext_preview_button "comment", "body", :input_id => "comment_response_for_#{post.id}", :preview_id => "dtext-preview-for-#{post.id}" %>
|
||||||
<%= submit_tag "Post" %> <%= check_box "comment", "do_not_bump_post", :id => "comment_do_not_bump_post_#{post.id}" %> <label for="comment_do_not_bump_post_<%= post.id %>">No bump</label>
|
<%= submit_tag "Post" %> <%= check_box "comment", "do_not_bump_post", :id => "comment_do_not_bump_post_#{post.id}" %> <label for="comment_do_not_bump_post_<%= post.id %>">No bump</label>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="body prose">
|
<div class="body prose">
|
||||||
<%= format_text(comment.body) %>
|
<%= format_text(comment.body) %>
|
||||||
|
|
||||||
<% if comment.updater_id.present? && (comment.updater_id != comment.creator_id || comment.created_at != comment.updated_at) %>
|
<% if comment.updater_id.present? && (comment.updater_id != comment.creator_id || comment.created_at != comment.updated_at) %>
|
||||||
<p class="info">Updated by <%= link_to comment.updater_name, user_path(comment.updater_id) %> <%= time_ago_in_words_tagged(comment.updated_at) %></p>
|
<p class="info">Updated by <%= link_to comment.updater_name, user_path(comment.updater_id) %> <%= time_ago_in_words_tagged(comment.updated_at) %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<div id="c-comments">
|
<div id="c-comments">
|
||||||
<div id="a-search">
|
<div id="a-search">
|
||||||
<h1>Search Comments</h1>
|
<h1>Search Comments</h1>
|
||||||
|
|
||||||
<%= form_tag(comments_path, :method => :get, :class => "simple_form") do %>
|
<%= form_tag(comments_path, :method => :get, :class => "simple_form") do %>
|
||||||
<%= hidden_field_tag "group_by", "comment" %>
|
<%= hidden_field_tag "group_by", "comment" %>
|
||||||
|
|
||||||
<%= search_field "body_matches", :label => "Body" %>
|
<%= search_field "body_matches", :label => "Body" %>
|
||||||
<%= search_field "creator_name", :label => "User" %>
|
<%= search_field "creator_name", :label => "User" %>
|
||||||
<%= search_field "post_tags_match", :label => "Tags", :hint => "Meta-tags not supported" %>
|
<%= search_field "post_tags_match", :label => "Tags", :hint => "Meta-tags not supported" %>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= numbered_paginator(@dmails) %>
|
<%= numbered_paginator(@dmails) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
<h1>Search Messages</h1>
|
<h1>Search Messages</h1>
|
||||||
<%= form_tag(dmails_path, :method => :get, :class => "simple_form") do %>
|
<%= form_tag(dmails_path, :method => :get, :class => "simple_form") do %>
|
||||||
<%= hidden_field_tag :folder, params[:folder] %>
|
<%= hidden_field_tag :folder, params[:folder] %>
|
||||||
|
|
||||||
<%= search_field "message_matches", :label => "Message" %>
|
<%= search_field "message_matches", :label => "Message" %>
|
||||||
<%= search_field "to_name", :label => "To" %>
|
<%= search_field "to_name", :label => "To" %>
|
||||||
<%= search_field "from_name", :label => "From" %>
|
<%= search_field "from_name", :label => "From" %>
|
||||||
<%= submit_tag "Search" %>
|
<%= submit_tag "Search" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
<div class="dmail">
|
<div class="dmail">
|
||||||
<h1>Show Message</h1>
|
<h1>Show Message</h1>
|
||||||
<h2><%= @dmail.title %></h2>
|
<h2><%= @dmail.title %></h2>
|
||||||
|
|
||||||
<ul style="margin-bottom: 1em;">
|
<ul style="margin-bottom: 1em;">
|
||||||
<li><strong>Sender</strong>: <%= link_to @dmail.from_name, user_path(@dmail.from_id) %></li>
|
<li><strong>Sender</strong>: <%= link_to @dmail.from_name, user_path(@dmail.from_id) %></li>
|
||||||
<li><strong>Recipient</strong>: <%= link_to @dmail.to_name, user_path(@dmail.to_id) %></li>
|
<li><strong>Recipient</strong>: <%= link_to @dmail.to_name, user_path(@dmail.to_id) %></li>
|
||||||
<li><strong>Date</strong>: <%= compact_time(@dmail.created_at) %></li>
|
<li><strong>Date</strong>: <%= compact_time(@dmail.created_at) %></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h3>Body</h3>
|
<h3>Body</h3>
|
||||||
<div class="prose">
|
<div class="prose">
|
||||||
<%= format_text(@dmail.body) %>
|
<%= format_text(@dmail.body) %>
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<%= link_to "Respond", new_dmail_path(:respond_to_id => @dmail) %>
|
<%= link_to "Respond", new_dmail_path(:respond_to_id => @dmail) %>
|
||||||
| <%= link_to "Forward", new_dmail_path(:respond_to_id => @dmail, :forward => true) %>
|
| <%= link_to "Forward", new_dmail_path(:respond_to_id => @dmail, :forward => true) %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<!--
|
<!--
|
||||||
- name
|
- name
|
||||||
- input_id
|
- input_id
|
||||||
- input_name
|
- input_name
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ h1. A header
|
|||||||
* List item 2
|
* List item 2
|
||||||
* List item 3
|
* List item 3
|
||||||
|
|
||||||
Linebreaks are important between lists,
|
Linebreaks are important between lists,
|
||||||
headers, and paragraphs.
|
headers, and paragraphs.
|
||||||
|
|
||||||
URLs are automatically linked: http://www.google.com
|
URLs are automatically linked: http://www.google.com
|
||||||
@@ -26,5 +26,5 @@ A {{post link}}. Alternatively, post #1234.
|
|||||||
Also works with forum posts, comments and pools.
|
Also works with forum posts, comments and pools.
|
||||||
|
|
||||||
<%= link_to "Read more", wiki_pages_path(:title => "help:dtext") %>.
|
<%= link_to "Read more", wiki_pages_path(:title => "help:dtext") %>.
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<div id="c-explore-posts">
|
<div id="c-explore-posts">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Popular: <%= @post_set.presenter.range_text %></h1>
|
<h1>Popular: <%= @post_set.presenter.range_text %></h1>
|
||||||
|
|
||||||
<%= @post_set.presenter.nav_links(self) %>
|
<%= @post_set.presenter.nav_links(self) %>
|
||||||
|
|
||||||
<%= render "blacklists" %>
|
<%= render "blacklists" %>
|
||||||
|
|
||||||
<%= @post_set.presenter.post_previews_html(self) %>
|
<%= @post_set.presenter.post_previews_html(self) %>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<section id="content">
|
<section id="content">
|
||||||
<h1>Favorites</h1>
|
<h1>Favorites</h1>
|
||||||
|
|
||||||
@@ -23,12 +23,12 @@
|
|||||||
|
|
||||||
<%= sequential_paginator(@favorite_set.favorites) %>
|
<%= sequential_paginator(@favorite_set.favorites) %>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<% content_for(:page_title) do %>
|
<% content_for(:page_title) do %>
|
||||||
Favorites - <%= CurrentUser.name %> - <%= Danbooru.config.app_name %>
|
Favorites - <%= CurrentUser.name %> - <%= Danbooru.config.app_name %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "posts/partials/common/secondary_links" %>
|
<%= render "posts/partials/common/secondary_links" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-forum-topics">
|
<div id="c-forum-topics">
|
||||||
<div id="a-edit">
|
<div id="a-edit">
|
||||||
<h1>Edit Forum Post</h1>
|
<h1>Edit Forum Post</h1>
|
||||||
|
|
||||||
<%= render "form", :forum_post => @forum_post %>
|
<%= render "form", :forum_post => @forum_post %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<h1>New Forum Post</h1>
|
<h1>New Forum Post</h1>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "form", :forum_post => @forum_post %>
|
<%= render "form", :forum_post => @forum_post %>
|
||||||
<%= error_messages_for "forum_post" %>
|
<%= error_messages_for "forum_post" %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,15 +8,15 @@
|
|||||||
<% if !@forum_topic.new_record? %>
|
<% if !@forum_topic.new_record? %>
|
||||||
<%= hidden_field_tag "forum_topic[original_post_attributes][topic_id]", @forum_topic.id %>
|
<%= hidden_field_tag "forum_topic[original_post_attributes][topic_id]", @forum_topic.id %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= dtext_field "forum_post", "body", :input_name => "forum_topic[original_post_attributes][body]", :value => @forum_topic.original_post.body %>
|
<%= dtext_field "forum_post", "body", :input_name => "forum_topic[original_post_attributes][body]", :value => @forum_topic.original_post.body %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if CurrentUser.is_janitor? %>
|
<% if CurrentUser.is_janitor? %>
|
||||||
<%= f.input :is_sticky %>
|
<%= f.input :is_sticky %>
|
||||||
<%= f.input :is_locked %>
|
<%= f.input :is_locked %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= f.button :submit, "Submit" %>
|
<%= f.button :submit, "Submit" %>
|
||||||
<%= dtext_preview_button "forum_post", "body" %>
|
<%= dtext_preview_button "forum_post", "body" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-forum-topics">
|
<div id="c-forum-topics">
|
||||||
<div id="a-edit">
|
<div id="a-edit">
|
||||||
<h1>Edit Forum Topic</h1>
|
<h1>Edit Forum Topic</h1>
|
||||||
|
|
||||||
<%= render "form" %>
|
<%= render "form" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -18,11 +18,11 @@
|
|||||||
<% if topic.is_sticky? %>
|
<% if topic.is_sticky? %>
|
||||||
<span class="sticky">Sticky:</span>
|
<span class="sticky">Sticky:</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if topic.updated_at > (CurrentUser.last_forum_read_at || Time.now) %>
|
<% if topic.updated_at > (CurrentUser.last_forum_read_at || Time.now) %>
|
||||||
<span class="new">NEW</span>
|
<span class="new">NEW</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= link_to topic.title, forum_topic_path(topic) %>
|
<%= link_to topic.title, forum_topic_path(topic) %>
|
||||||
|
|
||||||
<% if topic.response_count > Danbooru.config.posts_per_page %>
|
<% if topic.response_count > Danbooru.config.posts_per_page %>
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= numbered_paginator(@forum_topics) %>
|
<%= numbered_paginator(@forum_topics) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
(deleted)
|
(deleted)
|
||||||
<% end %>
|
<% end %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<% if @forum_topic.is_locked? %>
|
<% if @forum_topic.is_locked? %>
|
||||||
<div class="notice">
|
<div class="notice">
|
||||||
<p>This topic has been locked.</p>
|
<p>This topic has been locked.</p>
|
||||||
@@ -14,13 +14,13 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "forum_posts/listing", :forum_posts => @forum_posts %>
|
<%= render "forum_posts/listing", :forum_posts => @forum_posts %>
|
||||||
|
|
||||||
<p><%= link_to "Reply »".html_safe, new_forum_post_path(:topic_id => @forum_topic.id), :id => "new-response-link" %></p>
|
<p><%= link_to "Reply »".html_safe, new_forum_post_path(:topic_id => @forum_topic.id), :id => "new-response-link" %></p>
|
||||||
|
|
||||||
<div style="display: none;" id="topic-response">
|
<div style="display: none;" id="topic-response">
|
||||||
<%= render "forum_posts/form", :forum_post => ForumPost.new(:topic_id => @forum_topic.id) %>
|
<%= render "forum_posts/form", :forum_post => ForumPost.new(:topic_id => @forum_topic.id) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= numbered_paginator(@forum_posts) %>
|
<%= numbered_paginator(@forum_posts) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
scrollTop: $("#forum_post_body").offset().top - 100
|
scrollTop: $("#forum_post_body").offset().top - 100
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= numbered_paginator(@ip_bans) %>
|
<%= numbered_paginator(@ip_bans) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<h1>New IP Ban</h1>
|
<h1>New IP Ban</h1>
|
||||||
|
|
||||||
<%= error_messages_for "ip_ban" %>
|
<%= error_messages_for "ip_ban" %>
|
||||||
|
|
||||||
<%= simple_form_for(@ip_ban) do |f| %>
|
<%= simple_form_for(@ip_ban) do |f| %>
|
||||||
<%= f.input :ip_addr, :label => "IP Address" %>
|
<%= f.input :ip_addr, :label => "IP Address" %>
|
||||||
<%= f.input :reason, :input_html => {:size => "50x5"} %>
|
<%= f.input :reason, :input_html => {:size => "50x5"} %>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<%= f.button :submit, "Submit" %>
|
<%= f.button :submit, "Submit" %>
|
||||||
<%= f.button :submit, "Test" %>
|
<%= f.button :submit, "Test" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<p id="test-results"></p>
|
<p id="test-results"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -25,29 +25,29 @@
|
|||||||
<body>
|
<body>
|
||||||
<header id="top">
|
<header id="top">
|
||||||
<%= render "news_updates/listing" %>
|
<%= render "news_updates/listing" %>
|
||||||
|
|
||||||
<h1><%= link_to Danbooru.config.app_name, "/" %></h1>
|
<h1><%= link_to Danbooru.config.app_name, "/" %></h1>
|
||||||
<nav>
|
<nav>
|
||||||
<%= render "layouts/main_links" %>
|
<%= render "layouts/main_links" %>
|
||||||
<%= yield :secondary_links %>
|
<%= yield :secondary_links %>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<%= render "layouts/more_links" %>
|
<%= render "layouts/more_links" %>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div id="page">
|
<div id="page">
|
||||||
<% if CurrentUser.is_anonymous? && session[:started_at] && session[:started_at] < 1.minute.ago && cookies[:hide_sign_up_notice].blank? %>
|
<% if CurrentUser.is_anonymous? && session[:started_at] && session[:started_at] < 1.minute.ago && cookies[:hide_sign_up_notice].blank? %>
|
||||||
<%= render "users/sign_up_notice" %>
|
<%= render "users/sign_up_notice" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if !CurrentUser.is_anonymous? && !CurrentUser.is_privileged? && cookies[:hide_upgrade_account_notice].blank? && params[:action] != "upgrade_information" %>
|
<% if !CurrentUser.is_anonymous? && !CurrentUser.is_privileged? && cookies[:hide_upgrade_account_notice].blank? && params[:action] != "upgrade_information" %>
|
||||||
<%= render "users/upgrade_notice" %>
|
<%= render "users/upgrade_notice" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if !CurrentUser.is_privileged? && CurrentUser.user.created_at > 2.weeks.ago %>
|
<% if !CurrentUser.is_privileged? && CurrentUser.user.created_at > 2.weeks.ago %>
|
||||||
<%= render "users/tos" %>
|
<%= render "users/tos" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%- if flash[:notice] -%>
|
<%- if flash[:notice] -%>
|
||||||
<div class="ui-corner-all ui-state-highlight" id="notice"><%= flash[:notice] %></div>
|
<div class="ui-corner-all ui-state-highlight" id="notice"><%= flash[:notice] %></div>
|
||||||
<%- else -%>
|
<%- else -%>
|
||||||
@@ -56,11 +56,11 @@
|
|||||||
|
|
||||||
<%= yield :layout %>
|
<%= yield :layout %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<%= yield :page_footer_content %>
|
<%= yield :page_footer_content %>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<%= render "static/footer" %>
|
<%= render "static/footer" %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -5,16 +5,16 @@
|
|||||||
<p>If you supplied an email address when signing up, <%= Danbooru.config.app_name %> can email you your login information. Password details will not be provided and will not be changed.</p>
|
<p>If you supplied an email address when signing up, <%= Danbooru.config.app_name %> can email you your login information. Password details will not be provided and will not be changed.</p>
|
||||||
|
|
||||||
<p>If you didn't supply a valid email address, you are out of luck.</p>
|
<p>If you didn't supply a valid email address, you are out of luck.</p>
|
||||||
|
|
||||||
<%= form_tag(maintenance_user_login_reminder_path, :class => "simple_form") do %>
|
<%= form_tag(maintenance_user_login_reminder_path, :class => "simple_form") do %>
|
||||||
<div class="input email required">
|
<div class="input email required">
|
||||||
<label for="user_email" class="required">Email</label>
|
<label for="user_email" class="required">Email</label>
|
||||||
<%= email_field(:user, :email) %>
|
<%= email_field(:user, :email) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag "Submit" %>
|
<%= submit_tag "Submit" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "sessions/secondary_links" %>
|
<%= render "sessions/secondary_links" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-maintenance-user-password-resets">
|
<div id="c-maintenance-user-password-resets">
|
||||||
<div id="a-edit">
|
<div id="a-edit">
|
||||||
<h1>Reset Password</h1>
|
<h1>Reset Password</h1>
|
||||||
|
|
||||||
<% if @nonce %>
|
<% if @nonce %>
|
||||||
<%= form_tag(maintenance_user_password_reset_path, :method => :put) do %>
|
<%= form_tag(maintenance_user_password_reset_path, :method => :put) do %>
|
||||||
<%= hidden_field_tag :email, params[:email] %>
|
<%= hidden_field_tag :email, params[:email] %>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<p>Invalid key</p>
|
<p>Invalid key</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "sessions/secondary_links" %>
|
<%= render "sessions/secondary_links" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<div id="c-maintenance-user-password-resets">
|
<div id="c-maintenance-user-password-resets">
|
||||||
<div id="a-new">
|
<div id="a-new">
|
||||||
<h1>Reset Password</h1>
|
<h1>Reset Password</h1>
|
||||||
|
|
||||||
<p>If you supplied an email address when signing up, <%= Danbooru.config.app_name %> can reset your password. You will receive an email confirming your request for a new password.</p>
|
<p>If you supplied an email address when signing up, <%= Danbooru.config.app_name %> can reset your password. You will receive an email confirming your request for a new password.</p>
|
||||||
|
|
||||||
<p>If you didn't supply a valid email address, you are out of luck.</p>
|
<p>If you didn't supply a valid email address, you are out of luck.</p>
|
||||||
|
|
||||||
<%= form_tag(maintenance_user_password_reset_path, :class => "simple_form") do %>
|
<%= form_tag(maintenance_user_password_reset_path, :class => "simple_form") do %>
|
||||||
<div class="input email required">
|
<div class="input email required">
|
||||||
<label for="nonce_email" class="required">Email</label>
|
<label for="nonce_email" class="required">Email</label>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= numbered_paginator(@mod_actions) %>
|
<%= numbered_paginator(@mod_actions) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<%= form_tag(moderator_dashboard_path, :method => :get, :class => "simple_form") do %>
|
<%= form_tag(moderator_dashboard_path, :method => :get, :class => "simple_form") do %>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label for="min_date">Minimum Date</label>
|
<label for="min_date">Minimum Date</label>
|
||||||
<%= text_field_tag :min_date, @dashboard.min_date %>
|
<%= text_field_tag :min_date, @dashboard.min_date %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label for="max_level">Max Level</label>
|
<label for="max_level">Max Level</label>
|
||||||
<%= user_level_select_tag(:max_level) %><br>
|
<%= user_level_select_tag(:max_level) %><br>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag "Search" %>
|
<%= submit_tag "Search" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<label for="user_ids">Search IPs</label>
|
<label for="user_ids">Search IPs</label>
|
||||||
<%= text_field_tag "search[ip_addr]", params[:ip_addrs] %>
|
<%= text_field_tag "search[ip_addr]", params[:ip_addrs] %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag "Search" %>
|
<%= submit_tag "Search" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
@@ -12,6 +12,6 @@
|
|||||||
<label for="user_ids">Search User IDs</label>
|
<label for="user_ids">Search User IDs</label>
|
||||||
<%= text_field_tag "search[user_id]", params[:user_ids] %>
|
<%= text_field_tag "search[user_id]", params[:user_ids] %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag "Search" %>
|
<%= submit_tag "Search" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-moderator-invitations">
|
<div id="c-moderator-invitations">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Invitations</h1>
|
<h1>Invitations</h1>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<% @users.each do |user| %>
|
<% @users.each do |user| %>
|
||||||
<li><%= link_to user.name, user_path(user) %></li>
|
<li><%= link_to user.name, user_path(user) %></li>
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
<div id="c-moderator-invitations">
|
<div id="c-moderator-invitations">
|
||||||
<div id="a-new">
|
<div id="a-new">
|
||||||
<h1>New Invitation</h1>
|
<h1>New Invitation</h1>
|
||||||
|
|
||||||
<%= form_tag(moderator_invitations_path, :class => "simple_form") do %>
|
<%= form_tag(moderator_invitations_path, :class => "simple_form") do %>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label>User</label>
|
<label>User</label>
|
||||||
<%= text_field :invitation, :user_name, :value => params[:invitation][:name] %>
|
<%= text_field :invitation, :user_name, :value => params[:invitation][:name] %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label>Level</label>
|
<label>Level</label>
|
||||||
<%= level_select %>
|
<%= level_select %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag %>
|
<%= submit_tag %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-moderator-ip-addrs">
|
<div id="c-moderator-ip-addrs">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>IP Addresses</h1>
|
<h1>IP Addresses</h1>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-moderator-ip-addrs">
|
<div id="c-moderator-ip-addrs">
|
||||||
<div id="a-search">
|
<div id="a-search">
|
||||||
<h1>Search IP Addresses</h1>
|
<h1>Search IP Addresses</h1>
|
||||||
|
|
||||||
<%= form_tag(moderator_ip_addrs_path, :class => "simple_form") do %>
|
<%= form_tag(moderator_ip_addrs_path, :class => "simple_form") do %>
|
||||||
<%= search_field "user_name", :label => "User" %>
|
<%= search_field "user_name", :label => "User" %>
|
||||||
<%= search_field "ip_addr", :label => "IP Addr" %>
|
<%= search_field "ip_addr", :label => "IP Addr" %>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<label for="reason">Reason</label>
|
<label for="reason">Reason</label>
|
||||||
<%= text_area_tag "reason" %>
|
<%= text_area_tag "reason" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag "Delete" %>
|
<%= submit_tag "Delete" %>
|
||||||
<%= submit_tag "Cancel" %>
|
<%= submit_tag "Cancel" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h1>Moderation Queue</h1>
|
<h1>Moderation Queue</h1>
|
||||||
|
|
||||||
<div id="moderation-guideline">
|
<div id="moderation-guideline">
|
||||||
<h1>Deletion Guidelines</h1>
|
<h1>Deletion Guidelines</h1>
|
||||||
<p>
|
<p>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
<li><strong>Score</strong>: <%= post.score %></li>
|
<li><strong>Score</strong>: <%= post.score %></li>
|
||||||
<li>
|
<li>
|
||||||
<strong>Size:</strong>
|
<strong>Size:</strong>
|
||||||
<%= number_to_human_size(post.file_size) %>
|
<%= number_to_human_size(post.file_size) %>
|
||||||
<% if post.is_image? %>
|
<% if post.is_image? %>
|
||||||
(<%= post.image_width %>x<%= post.image_height %>)
|
(<%= post.image_width %>x<%= post.image_height %>)
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
</article>
|
</article>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= numbered_paginator(@posts) %>
|
<%= numbered_paginator(@posts) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
<div id="c-moderator-tags">
|
<div id="c-moderator-tags">
|
||||||
<div id="a-edit">
|
<div id="a-edit">
|
||||||
<h1>Mass Edit</h1>
|
<h1>Mass Edit</h1>
|
||||||
|
|
||||||
<%= form_tag(moderator_tag_path, :method => :put, :class => "simple_form") do %>
|
<%= form_tag(moderator_tag_path, :method => :put, :class => "simple_form") do %>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label>Antecedent</label>
|
<label>Antecedent</label>
|
||||||
<%= text_field :tag, :antecedent, :value => params[:antecedent] %>
|
<%= text_field :tag, :antecedent, :value => params[:antecedent] %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label>Consequent</label>
|
<label>Consequent</label>
|
||||||
<%= text_field :tag, :consequent, :value => params[:consequent] %>
|
<%= text_field :tag, :consequent, :value => params[:consequent] %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<%= submit_tag "Submit" %>
|
<%= submit_tag "Submit" %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-news-updates">
|
<div id="c-news-updates">
|
||||||
<div id="a-new">
|
<div id="a-new">
|
||||||
<h1>Edit Update</h1>
|
<h1>Edit Update</h1>
|
||||||
|
|
||||||
<%= simple_form_for(@news_update) do |f| %>
|
<%= simple_form_for(@news_update) do |f| %>
|
||||||
<%= f.input :message, :hint => "Use HTML for formatting", :input_html => {:size => "30x5"} %>
|
<%= f.input :message, :hint => "Use HTML for formatting", :input_html => {:size => "30x5"} %>
|
||||||
<%= f.button :submit, "Submit" %>
|
<%= f.button :submit, "Submit" %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-news-updates">
|
<div id="c-news-updates">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>News Updates</h1>
|
<h1>News Updates</h1>
|
||||||
|
|
||||||
<table class="striped" width="100%">
|
<table class="striped" width="100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= numbered_paginator(@news_updates) %>
|
<%= numbered_paginator(@news_updates) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-news-updates">
|
<div id="c-news-updates">
|
||||||
<div id="a-new">
|
<div id="a-new">
|
||||||
<h1>New Update</h1>
|
<h1>New Update</h1>
|
||||||
|
|
||||||
<%= simple_form_for(@news_update) do |f| %>
|
<%= simple_form_for(@news_update) do |f| %>
|
||||||
<%= f.input :message, :hint => "Use HTML for formatting", :input_html => {:size => "30x5"} %>
|
<%= f.input :message, :hint => "Use HTML for formatting", :input_html => {:size => "30x5"} %>
|
||||||
<%= f.button :submit, "Submit" %>
|
<%= f.button :submit, "Submit" %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-note-versions">
|
<div id="c-note-versions">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Note Changes</h1>
|
<h1>Note Changes</h1>
|
||||||
|
|
||||||
<table width="100%" class="striped">
|
<table width="100%" class="striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<th width="10%">Edited By</th>
|
<th width="10%">Edited By</th>
|
||||||
<th width="10%">Date</th>
|
<th width="10%">Date</th>
|
||||||
<th width="10%">Options</th>
|
<th width="10%">Options</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @note_versions.each do |note_version| %>
|
<% @note_versions.each do |note_version| %>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-notes">
|
<div id="c-notes">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Notes</h1>
|
<h1>Notes</h1>
|
||||||
|
|
||||||
<table width="100%" class="striped">
|
<table width="100%" class="striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= sequential_paginator(@notes) %>
|
<%= sequential_paginator(@notes) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<div id="c-notes">
|
<div id="c-notes">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Notes</h1>
|
<h1>Notes</h1>
|
||||||
|
|
||||||
<%= @post_set.presenter.post_previews_html(self) %>
|
<%= @post_set.presenter.post_previews_html(self) %>
|
||||||
|
|
||||||
<%= numbered_paginator(@posts, false) %>
|
<%= numbered_paginator(@posts, false) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-notes">
|
<div id="c-notes">
|
||||||
<div id="a-search">
|
<div id="a-search">
|
||||||
<h1>Search Notes</h1>
|
<h1>Search Notes</h1>
|
||||||
|
|
||||||
<%= form_tag(notes_path, :method => :get, :class => "simple_form") do %>
|
<%= form_tag(notes_path, :method => :get, :class => "simple_form") do %>
|
||||||
<%= hidden_field_tag "group_by", "note" %>
|
<%= hidden_field_tag "group_by", "note" %>
|
||||||
<%= search_field "body_matches", :label => "Body" %>
|
<%= search_field "body_matches", :label => "Body" %>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<span id="pool-name-container"><%= text_field_tag "pool_name", "", :size => 20 %></span>
|
<span id="pool-name-container"><%= text_field_tag "pool_name", "", :size => 20 %></span>
|
||||||
<span id="pool-name-hint" class="hint">Search for a pool containing (<%= link_to "see full list", all_select_pool_element_path, :remote => true %>)</span>
|
<span id="pool-name-hint" class="hint">Search for a pool containing (<%= link_to "see full list", all_select_pool_element_path, :remote => true %>)</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<%= submit_tag "Submit" %>
|
<%= submit_tag "Submit" %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<ul id="sortable">
|
<ul id="sortable">
|
||||||
<% @pool.posts(:limit => 1_000).each do |post| %>
|
<% @pool.posts(:limit => 1_000).each do |post| %>
|
||||||
<li class="ui-state-default" id="pool[post_id_array]_<%= post.id %>">
|
<li class="ui-state-default" id="pool[post_id_array]_<%= post.id %>">
|
||||||
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
|
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-pools">
|
<div id="c-pools">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Pool History</h1>
|
<h1>Pool History</h1>
|
||||||
|
|
||||||
<table width="100%" class="striped">
|
<table width="100%" class="striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<% @pools.each do |pool| %>
|
<% @pools.each do |pool| %>
|
||||||
<%= content_tag(:tr, :id => "pool-#{pool.id}") do %>
|
<%= content_tag(:tr, :id => "pool-#{pool.id}") do %>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<%= link_to h(pool.pretty_name), pool_path(pool) %>
|
<%= link_to h(pool.pretty_name), pool_path(pool) %>
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
<%= search_field "name_matches", :label => "Name" %>
|
<%= search_field "name_matches", :label => "Name" %>
|
||||||
<%= search_field "description_matches", :label => "Description" %>
|
<%= search_field "description_matches", :label => "Description" %>
|
||||||
<%= search_field "creator_name", :label => "Creator" %>
|
<%= search_field "creator_name", :label => "Creator" %>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label>Order</label>
|
<label>Order</label>
|
||||||
<%= select "search", "sort", [["Last updated", "updated_at"], ["Name", "name"]] %>
|
<%= select "search", "sort", [["Last updated", "updated_at"], ["Name", "name"]] %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag "Search" %>
|
<%= submit_tag "Search" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
<div id="c-pools">
|
<div id="c-pools">
|
||||||
<div id="a-show">
|
<div id="a-show">
|
||||||
<h1>
|
<h1>
|
||||||
Pool:
|
Pool:
|
||||||
<%= @pool.pretty_name %>
|
<%= @pool.pretty_name %>
|
||||||
<% if @pool.is_deleted? %>
|
<% if @pool.is_deleted? %>
|
||||||
<span class="inactive">(deleted)</span>
|
<span class="inactive">(deleted)</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div id="description">
|
<div id="description">
|
||||||
<%= format_text(@pool.description) %>
|
<%= format_text(@pool.description) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section id="content">
|
<section id="content">
|
||||||
<%= @post_set.presenter.post_previews_html(self) %>
|
<%= @post_set.presenter.post_previews_html(self) %>
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= numbered_paginator(@post_appeals) %>
|
<%= numbered_paginator(@post_appeals) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>Enter a reason:</p>
|
<p>Enter a reason:</p>
|
||||||
|
|
||||||
<%= form_tag(post_flags_path(:format => :js), :remote => true) do %>
|
<%= form_tag(post_flags_path(:format => :js), :remote => true) do %>
|
||||||
<%= hidden_field :post_flag, :post_id %>
|
<%= hidden_field :post_flag, :post_id %>
|
||||||
<%= text_area :post_flag, :reason, :size => "40x5" %>
|
<%= text_area :post_flag, :reason, :size => "40x5" %>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= numbered_paginator(@post_flags) %>
|
<%= numbered_paginator(@post_flags) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-post-versions">
|
<div id="c-post-versions">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Changes</h1>
|
<h1>Changes</h1>
|
||||||
|
|
||||||
<% if @post_versions.all.empty? %>
|
<% if @post_versions.all.empty? %>
|
||||||
<%= render "post_sets/blank" %>
|
<%= render "post_sets/blank" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-post-versions">
|
<div id="c-post-versions">
|
||||||
<div id="a-search">
|
<div id="a-search">
|
||||||
<h1>Search Changes</h1>
|
<h1>Search Changes</h1>
|
||||||
|
|
||||||
<div id="search">
|
<div id="search">
|
||||||
<%= form_tag(post_versions_path, :method => :get, :class => "simple_form") do %>
|
<%= form_tag(post_versions_path, :method => :get, :class => "simple_form") do %>
|
||||||
<%= search_field "updater_name", :label => "User" %>
|
<%= search_field "updater_name", :label => "User" %>
|
||||||
|
|||||||
@@ -13,14 +13,14 @@
|
|||||||
<h1>Tags</h1>
|
<h1>Tags</h1>
|
||||||
<%= @post_set.presenter.tag_list_html(self) %>
|
<%= @post_set.presenter.tag_list_html(self) %>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<%= render "posts/partials/index/related" %>
|
<%= render "posts/partials/index/related" %>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<section id="content">
|
<section id="content">
|
||||||
<menu id="post-sections">
|
<menu id="post-sections">
|
||||||
<li class="active"><a href="#posts" id="show-posts-link">Posts</a></li>
|
<li class="active"><a href="#posts" id="show-posts-link">Posts</a></li>
|
||||||
|
|
||||||
<% if @post_set.has_wiki? %>
|
<% if @post_set.has_wiki? %>
|
||||||
<li><a href="#wiki-except" id="show-wiki-excerpt-link">Wiki</a></li>
|
<li><a href="#wiki-except" id="show-wiki-excerpt-link">Wiki</a></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -30,9 +30,9 @@
|
|||||||
<%= render "wiki_pages/excerpt", :post_set => @post_set %>
|
<%= render "wiki_pages/excerpt", :post_set => @post_set %>
|
||||||
<%= render "posts/partials/index/posts", :post_set => @post_set %>
|
<%= render "posts/partials/index/posts", :post_set => @post_set %>
|
||||||
|
|
||||||
<%= render_rss_advertisement("short", @post_set.has_explicit?) %>
|
<%= render_rss_advertisement("short", @post_set.has_explicit?) %>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<% content_for(:page_title) do %>
|
<% content_for(:page_title) do %>
|
||||||
<% if @post_set.tag_string.present? %>
|
<% if @post_set.tag_string.present? %>
|
||||||
<%= @post_set.humanized_tag_string %> - <%= Danbooru.config.app_name %>
|
<%= @post_set.humanized_tag_string %> - <%= Danbooru.config.app_name %>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "posts/partials/common/secondary_links" %>
|
<%= render "posts/partials/common/secondary_links" %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<!--
|
<!--
|
||||||
- path
|
- path
|
||||||
- tags
|
- tags
|
||||||
-->
|
-->
|
||||||
@@ -8,5 +8,5 @@
|
|||||||
<%= form_tag(path, :method => "get") do %>
|
<%= form_tag(path, :method => "get") do %>
|
||||||
<%= text_field_tag("tags", tags, :size => 20) %>
|
<%= text_field_tag("tags", tags, :size => 20) %>
|
||||||
<%= submit_tag "Go" %>
|
<%= submit_tag "Go" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<option value="edit-tag-script">Edit tag script</option>
|
<option value="edit-tag-script">Edit tag script</option>
|
||||||
<option value="apply-tag-script">Apply tag script</option>
|
<option value="apply-tag-script">Apply tag script</option>
|
||||||
</select>
|
</select>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="posts">
|
<div id="posts">
|
||||||
<%= render_advertisement("horizontal") %>
|
<%= render_advertisement("horizontal") %>
|
||||||
|
|
||||||
<%= post_set.presenter.post_previews_html(self) %>
|
<%= post_set.presenter.post_previews_html(self) %>
|
||||||
|
|
||||||
<%= numbered_paginator(post_set.posts) %>
|
<%= numbered_paginator(post_set.posts) %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<% if @post_set.has_deleted? %>
|
<% if @post_set.has_deleted? %>
|
||||||
<li><%= link_to "Deleted posts", posts_path(:tags => "#{params[:tags]} status:deleted") %></li>
|
<li><%= link_to "Deleted posts", posts_path(:tags => "#{params[:tags]} status:deleted") %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @post_set.is_tag_subscription? %>
|
<% if @post_set.is_tag_subscription? %>
|
||||||
<li><%= link_to "Edit subscriptions", tag_subscriptions_path %></li>
|
<li><%= link_to "Edit subscriptions", tag_subscriptions_path %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
This post is rating locked.
|
This post is rating locked.
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= f.label :blank, "Rating" %>
|
<%= f.label :blank, "Rating" %>
|
||||||
|
|
||||||
<fieldset class="ratings">
|
<fieldset class="ratings">
|
||||||
<%= f.radio_button :rating, :e %>
|
<%= f.radio_button :rating, :e %>
|
||||||
<%= f.label :rating_e, "Explicit" %>
|
<%= f.label :rating_e, "Explicit" %>
|
||||||
@@ -23,21 +23,21 @@
|
|||||||
|
|
||||||
<%= f.radio_button :rating, :s %>
|
<%= f.radio_button :rating, :s %>
|
||||||
<%= f.label :rating_s, "Safe" %>
|
<%= f.label :rating_s, "Safe" %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if CurrentUser.is_builder? %>
|
<% if CurrentUser.is_builder? %>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<%= f.label :blank, "Lock" %>
|
<%= f.label :blank, "Lock" %>
|
||||||
|
|
||||||
<fieldset class="locks">
|
<fieldset class="locks">
|
||||||
<%= f.check_box :is_note_locked %>
|
<%= f.check_box :is_note_locked %>
|
||||||
<%= f.label :is_note_locked, "Notes" %>
|
<%= f.label :is_note_locked, "Notes" %>
|
||||||
|
|
||||||
<%= f.check_box :is_rating_locked %>
|
<%= f.check_box :is_rating_locked %>
|
||||||
<%= f.label :is_rating_locked, "Rating" %>
|
<%= f.label :is_rating_locked, "Rating" %>
|
||||||
|
|
||||||
<% if CurrentUser.is_admin? %>
|
<% if CurrentUser.is_admin? %>
|
||||||
<%= f.check_box :is_status_locked %>
|
<%= f.check_box :is_status_locked %>
|
||||||
<%= f.label :is_status_locked, "Status" %>
|
<%= f.label :is_status_locked, "Status" %>
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
<%= f.label :tag_string, "Tags" %>
|
<%= f.label :tag_string, "Tags" %>
|
||||||
<%= f.text_area :tag_string , :size => "50x3" %>
|
<%= f.text_area :tag_string , :size => "50x3" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= button_tag "Related tags", :id => "related-tags-button", :type => "button" %>
|
<%= button_tag "Related tags", :id => "related-tags-button", :type => "button" %>
|
||||||
<%= button_tag "Artists", :id => "related-artists-button", :type => "button" %>
|
<%= button_tag "Artists", :id => "related-artists-button", :type => "button" %>
|
||||||
<%= button_tag "Characters", :id => "related-characters-button", :type => "button" %>
|
<%= button_tag "Characters", :id => "related-characters-button", :type => "button" %>
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<%= submit_tag "Submit" %>
|
<%= submit_tag "Submit" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="artist-tags-container">
|
<div id="artist-tags-container">
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
<div id="artist-tags">
|
<div id="artist-tags">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="related-tags-container">
|
<div id="related-tags-container">
|
||||||
<h1>Related Tags</h1>
|
<h1>Related Tags</h1>
|
||||||
<div id="related-tags">
|
<div id="related-tags">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<li>Approver: <%= link_to(post.approver.name, user_path(post.approver_id)) %></li>
|
<li>Approver: <%= link_to(post.approver.name, user_path(post.approver_id)) %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<li>
|
<li>
|
||||||
Size: <%= link_to_if Danbooru.config.can_user_see_post?(CurrentUser.user, post), number_to_human_size(post.file_size), post.file_url %>
|
Size: <%= link_to_if Danbooru.config.can_user_see_post?(CurrentUser.user, post), number_to_human_size(post.file_size), post.file_url %>
|
||||||
<% if post.is_image? %>
|
<% if post.is_image? %>
|
||||||
(<%= post.image_width %>x<%= post.image_height %>)
|
(<%= post.image_width %>x<%= post.image_height %>)
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -20,15 +20,15 @@
|
|||||||
<% if post.is_pending? %>
|
<% if post.is_pending? %>
|
||||||
Pending
|
Pending
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if post.is_deleted? %>
|
<% if post.is_deleted? %>
|
||||||
Deleted
|
Deleted
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if post.is_flagged? %>
|
<% if post.is_flagged? %>
|
||||||
Flagged
|
Flagged
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if !post.is_pending? && !post.is_deleted? %>
|
<% if !post.is_pending? && !post.is_deleted? %>
|
||||||
Active
|
Active
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<% if post.is_flagged? && !post.is_deleted? && post.flags.any? %>
|
<% if post.is_flagged? && !post.is_deleted? && post.flags.any? %>
|
||||||
<div class="ui-corner-all ui-state-highlight notice">
|
<div class="ui-corner-all ui-state-highlight notice">
|
||||||
<p>This post was flagged for deletion: </p>
|
<p>This post was flagged for deletion: </p>
|
||||||
|
|
||||||
<%= post_flag_reasons(post) %>
|
<%= post_flag_reasons(post) %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<% if post.is_deleted? && post.flags.any? %>
|
<% if post.is_deleted? && post.flags.any? %>
|
||||||
<div class="ui-corner-all ui-state-highlight notice">
|
<div class="ui-corner-all ui-state-highlight notice">
|
||||||
<p>This post was deleted for the following reasons: </p>
|
<p>This post was deleted for the following reasons: </p>
|
||||||
|
|
||||||
<%= post_flag_reasons(post) %>
|
<%= post_flag_reasons(post) %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
<% if post.is_pending? %>
|
<% if post.is_pending? %>
|
||||||
<div class="ui-corner-all ui-state-highlight notice" id="pending-approval-notice">
|
<div class="ui-corner-all ui-state-highlight notice" id="pending-approval-notice">
|
||||||
This post is pending approval (<%= link_to "learn more", wiki_pages_path(:title => "help:post_moderation") %>)
|
This post is pending approval (<%= link_to "learn more", wiki_pages_path(:title => "help:post_moderation") %>)
|
||||||
|
|
||||||
<% if CurrentUser.is_janitor? && !post.disapproved_by?(CurrentUser.user) %>
|
<% if CurrentUser.is_janitor? && !post.disapproved_by?(CurrentUser.user) %>
|
||||||
<div class="quick-mod">
|
<div class="quick-mod">
|
||||||
<% unless post.is_status_locked? %>
|
<% unless post.is_status_locked? %>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
<% if (post.is_flagged? || post.is_deleted?) && post.appeals.any? %>
|
<% if (post.is_flagged? || post.is_deleted?) && post.appeals.any? %>
|
||||||
<div class="ui-corner-all ui-state-highlight notice">
|
<div class="ui-corner-all ui-state-highlight notice">
|
||||||
<p>This post was appealed:</p>
|
<p>This post was appealed:</p>
|
||||||
<%= post_appeal_reasons(post) %>
|
<%= post_appeal_reasons(post) %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -10,16 +10,16 @@
|
|||||||
<li><%= link_to "Add note", "#", :id => "translate", :title => "Shortcut is CTRL+N" %></li>
|
<li><%= link_to "Add note", "#", :id => "translate", :title => "Shortcut is CTRL+N" %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<li><%= link_to "Find similar", "http://danbooru.iqdb.org/db-search.php?url=http://#{Danbooru.config.hostname}#{post.preview_file_url}" %></li>
|
<li><%= link_to "Find similar", "http://danbooru.iqdb.org/db-search.php?url=http://#{Danbooru.config.hostname}#{post.preview_file_url}" %></li>
|
||||||
|
|
||||||
<% unless post.is_status_locked? %>
|
<% unless post.is_status_locked? %>
|
||||||
<% if !post.is_deleted? && !post.is_pending? %>
|
<% if !post.is_deleted? && !post.is_pending? %>
|
||||||
<li><%= link_to "Flag", new_post_flag_path(:post_id => post.id), :id => "flag" %></li>
|
<li><%= link_to "Flag", new_post_flag_path(:post_id => post.id), :id => "flag" %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if post.is_flagged? || post.is_deleted? %>
|
<% if post.is_flagged? || post.is_deleted? %>
|
||||||
<li><%= link_to "Appeal", new_post_appeal_path(:post_id => post.id), :id => "appeal" %></li>
|
<li><%= link_to "Appeal", new_post_appeal_path(:post_id => post.id), :id => "appeal" %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if CurrentUser.is_janitor? %>
|
<% if CurrentUser.is_janitor? %>
|
||||||
<% if post.is_flagged? || post.is_pending? %>
|
<% if post.is_flagged? || post.is_pending? %>
|
||||||
<li><%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :remote => true, :method => :post, :id => "approve" %></li>
|
<li><%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :remote => true, :method => :post, :id => "approve" %></li>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if CurrentUser.is_admin? %>
|
<% if CurrentUser.is_admin? %>
|
||||||
<li><%= link_to "Expunge", annihilate_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "annihilate", :confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to delete this post?" %></li>
|
<li><%= link_to "Expunge", annihilate_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "annihilate", :confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to delete this post?" %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -10,12 +10,12 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var addthis_config = {"data_track_addressbar": false};
|
var addthis_config = {"data_track_addressbar": false};
|
||||||
var addthis_share = {
|
var addthis_share = {
|
||||||
"url":"<%= j post_path(post, :only_path => false, :host => Danbooru.config.hostname) %>",
|
"url":"<%= j post_path(post, :only_path => false, :host => Danbooru.config.hostname) %>",
|
||||||
"title": "<%= j post.presenter.humanized_essential_tag_string %>"
|
"title": "<%= j post.presenter.humanized_essential_tag_string %>"
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f8dbf8a41066ac7"></script>
|
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f8dbf8a41066ac7"></script>
|
||||||
|
|
||||||
<!-- AddThis Button END -->
|
<!-- AddThis Button END -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
<div id="a-show">
|
<div id="a-show">
|
||||||
<aside id="sidebar">
|
<aside id="sidebar">
|
||||||
<%= render "posts/partials/common/search", :path => posts_path, :tags => params[:tags] %>
|
<%= render "posts/partials/common/search", :path => posts_path, :tags => params[:tags] %>
|
||||||
|
|
||||||
<%= render_advertisement("vertical") %>
|
<%= render_advertisement("vertical") %>
|
||||||
|
|
||||||
<section id="tag-list">
|
<section id="tag-list">
|
||||||
<%= @post.presenter.split_tag_list_html(self) %>
|
<%= @post.presenter.split_tag_list_html(self) %>
|
||||||
</section>
|
</section>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<h1>Information</h1>
|
<h1>Information</h1>
|
||||||
<%= render "posts/partials/show/information", :post => @post %>
|
<%= render "posts/partials/show/information", :post => @post %>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h1>Options</h1>
|
<h1>Options</h1>
|
||||||
<%= render "posts/partials/show/options", :post => @post %>
|
<%= render "posts/partials/show/options", :post => @post %>
|
||||||
@@ -33,11 +33,11 @@
|
|||||||
<% if @post.presenter.has_nav_links?(self) %>
|
<% if @post.presenter.has_nav_links?(self) %>
|
||||||
<%= render "posts/partials/show/nav_links", :post => @post, :position => "top" %>
|
<%= render "posts/partials/show/nav_links", :post => @post, :position => "top" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "posts/partials/show/notices", :post => @post %>
|
<%= render "posts/partials/show/notices", :post => @post %>
|
||||||
|
|
||||||
<%= render_advertisement("horizontal") %>
|
<%= render_advertisement("horizontal") %>
|
||||||
|
|
||||||
<section id="image-container">
|
<section id="image-container">
|
||||||
<div id="note-container"></div>
|
<div id="note-container"></div>
|
||||||
<%= @post.presenter.image_html(self) %>
|
<%= @post.presenter.image_html(self) %>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<% if @post.presenter.has_nav_links?(self) %>
|
<% if @post.presenter.has_nav_links?(self) %>
|
||||||
<%= render "posts/partials/show/nav_links", :post => @post, :position => "bottom" %>
|
<%= render "posts/partials/show/nav_links", :post => @post, :position => "bottom" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<menu id="post-sections">
|
<menu id="post-sections">
|
||||||
<li><a href="#comments">Comments</a></li>
|
<li><a href="#comments">Comments</a></li>
|
||||||
<% if Danbooru.config.can_user_see_post?(CurrentUser.user, @post) %>
|
<% if Danbooru.config.can_user_see_post?(CurrentUser.user, @post) %>
|
||||||
@@ -68,11 +68,11 @@
|
|||||||
<%= render "posts/partials/show/edit", :post => @post %>
|
<%= render "posts/partials/show/edit", :post => @post %>
|
||||||
</section>
|
</section>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<section id="share" style="display: none;">
|
<section id="share" style="display: none;">
|
||||||
<%= render "posts/partials/show/share", :post => @post %>
|
<%= render "posts/partials/show/share", :post => @post %>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<%= render_rss_advertisement("long", @post.rating == "e") %>
|
<%= render_rss_advertisement("long", @post.rating == "e") %>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
<div id="appeal-dialog" title="Appeal post" style="display: none;">
|
<div id="appeal-dialog" title="Appeal post" style="display: none;">
|
||||||
<%= render "post_appeals/new" %>
|
<%= render "post_appeals/new" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="add-to-pool-dialog" title="Add to pool" style="display: none;">
|
<div id="add-to-pool-dialog" title="Add to pool" style="display: none;">
|
||||||
<%= render "pool_elements/new" %>
|
<%= render "pool_elements/new" %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,20 +9,20 @@
|
|||||||
<label for="name">Name</label>
|
<label for="name">Name</label>
|
||||||
<%= text_field_tag :name %>
|
<%= text_field_tag :name %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label for="password">Password</label>
|
<label for="password">Password</label>
|
||||||
<%= password_field_tag :password %>
|
<%= password_field_tag :password %>
|
||||||
|
|
||||||
<%= check_box_tag :remember, "1", true %>
|
<%= check_box_tag :remember, "1", true %>
|
||||||
<label for="remember" id="remember-label">Remember</label>
|
<label for="remember" id="remember-label">Remember</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<%= submit_tag "Submit" %>
|
<%= submit_tag "Submit" %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<!--
|
<!--
|
||||||
- source
|
- source
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<% if source.try(:available?) %>
|
<% if source.try(:available?) %>
|
||||||
<div id="source-info">
|
<div id="source-info">
|
||||||
<p>This looks like a <%= source.site_name %> upload. <%= link_to "Fetch data", source_path(:format => "json", :url => source.referer_url(self)), :id => "fetch-data" %>.</p>
|
<p>This looks like a <%= source.site_name %> upload. <%= link_to "Fetch data", source_path(:format => "json", :url => source.referer_url(self)), :id => "fetch-data" %>.</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>Artist</strong>: <span id="source-artist"></span></li>
|
<li><strong>Artist</strong>: <span id="source-artist"></span></li>
|
||||||
<li><strong>Tags</strong>: <span id="source-tags"></span></li>
|
<li><strong>Tags</strong>: <span id="source-tags"></span></li>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<footer id="page-footer">
|
<footer id="page-footer">
|
||||||
Running Danbooru v<%= Danbooru.config.version %>
|
Running Danbooru v<%= Danbooru.config.version %>
|
||||||
– <%= link_to "Contact", contact_path %>
|
– <%= link_to "Contact", contact_path %>
|
||||||
<% if CurrentUser.user.enable_post_navigation %>
|
<% if CurrentUser.user.enable_post_navigation %>
|
||||||
– <%= link_to "Keyboard shortcuts available", keyboard_shortcuts_path %>
|
– <%= link_to "Keyboard shortcuts available", keyboard_shortcuts_path %>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<div id="c-static">
|
<div id="c-static">
|
||||||
<div id="a-boomkarklet">
|
<div id="a-boomkarklet">
|
||||||
<h1>Bookmarklet</h1>
|
<h1>Bookmarklet</h1>
|
||||||
|
|
||||||
<p><%= link_to "Post to Danbooru", "javascript:location.href='http://#{Danbooru.config.hostname}/uploads/new?url='+encodeURIComponent(location.href)+'&ref='+encodeURIComponent(document.referrer)" %></p>
|
<p><%= link_to "Post to Danbooru", "javascript:location.href='http://#{Danbooru.config.hostname}/uploads/new?url='+encodeURIComponent(location.href)+'&ref='+encodeURIComponent(document.referrer)" %></p>
|
||||||
|
|
||||||
<p>Bookmark this link. Next time you are directly viewing an image (that is, the JPG/PNG/GIF file is in the URL bar) you can open this bookmarklet and you will be taken to the upload page. Depending on the site you are uploading from you may also see some options for fetching metadata.</p>
|
<p>Bookmark this link. Next time you are directly viewing an image (that is, the JPG/PNG/GIF file is in the URL bar) you can open this bookmarklet and you will be taken to the upload page. Depending on the site you are uploading from you may also see some options for fetching metadata.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-static">
|
<div id="c-static">
|
||||||
<div id="a-keyboard-shortcuts">
|
<div id="a-keyboard-shortcuts">
|
||||||
<h1>Keyboard Shortcuts</h1>
|
<h1>Keyboard Shortcuts</h1>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h1>Listing</h1>
|
<h1>Listing</h1>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<li><span class="key">q</span> Search</li>
|
<li><span class="key">q</span> Search</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h1>Post</h1>
|
<h1>Post</h1>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
@@ -94,14 +94,14 @@
|
|||||||
<li><h1>Admin</h1></li>
|
<li><h1>Admin</h1></li>
|
||||||
<li><%= link_to("Mod Actions", mod_actions_path) %></li>
|
<li><%= link_to("Mod Actions", mod_actions_path) %></li>
|
||||||
<li><%= link_to("Jobs", delayed_jobs_path) %></li>
|
<li><%= link_to("Jobs", delayed_jobs_path) %></li>
|
||||||
|
|
||||||
<% if CurrentUser.is_admin? %>
|
<% if CurrentUser.is_admin? %>
|
||||||
<li><%= link_to("Janitor Trials", janitor_trials_path) %></li>
|
<li><%= link_to("Janitor Trials", janitor_trials_path) %></li>
|
||||||
<li><%= link_to("IP Bans", ip_bans_path) %></li>
|
<li><%= link_to("IP Bans", ip_bans_path) %></li>
|
||||||
<li><%= link_to("News Updates", news_updates_path) %></li>
|
<li><%= link_to("News Updates", news_updates_path) %></li>
|
||||||
<li><%= link_to("Alias & Implication Import", new_admin_alias_and_implication_import_path) %></li>
|
<li><%= link_to("Alias & Implication Import", new_admin_alias_and_implication_import_path) %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if Danbooru.config.is_user_advertiser?(CurrentUser.user) %>
|
<% if Danbooru.config.is_user_advertiser?(CurrentUser.user) %>
|
||||||
<li><%= link_to("Advertisements", advertisements_path) %></li>
|
<li><%= link_to("Advertisements", advertisements_path) %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="terms-of-service">
|
<div id="terms-of-service">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h4>Terms of Service</h4>
|
<h4>Terms of Service</h4>
|
||||||
<p>By accessing the "<%= Danbooru.config.app_name %>" website ("Site") you agree to the following terms of service. If you do not agree to these terms, then please do not access the Site.</p>
|
<p>By accessing the "<%= Danbooru.config.app_name %>" website ("Site") you agree to the following terms of service. If you do not agree to these terms, then please do not access the Site.</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>The Site reserves the right to change these terms at any time.</li>
|
<li>The Site reserves the right to change these terms at any time.</li>
|
||||||
@@ -11,13 +11,13 @@
|
|||||||
<li>You will make a best faith effort to upload only high quality anime-related images.</li>
|
<li>You will make a best faith effort to upload only high quality anime-related images.</li>
|
||||||
<li>You have read the <%= link_to "tagging guidelines", wiki_pages_path(:title => "help:tags") %>.</li>
|
<li>You have read the <%= link_to "tagging guidelines", wiki_pages_path(:title => "help:tags") %>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h6>Post/Comment Limiting</h6>
|
<h6>Post/Comment Limiting</h6>
|
||||||
<p>You cannot upload a post or comment during the first week of signing up.</p>
|
<p>You cannot upload a post or comment during the first week of signing up.</p>
|
||||||
<p>After the initial period, you can post up to one comment an hour and a variable number of posts based on how many of your previous uploads were approved or deleted.</p>
|
<p>After the initial period, you can post up to one comment an hour and a variable number of posts based on how many of your previous uploads were approved or deleted.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h6>Prohibited Content</h6>
|
<h6>Prohibited Content</h6>
|
||||||
<p>In addition, you may not use the Site to upload any of the following:</p>
|
<p>In addition, you may not use the Site to upload any of the following:</p>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<h1>Tag Alias Request</h1>
|
<h1>Tag Alias Request</h1>
|
||||||
|
|
||||||
<p>You can request a new tag alias be created. This will create a corresponding forum topic for community review.</p>
|
<p>You can request a new tag alias be created. This will create a corresponding forum topic for community review.</p>
|
||||||
|
|
||||||
<%= form_tag(tag_alias_request_path, :class => "simple_form") do %>
|
<%= form_tag(tag_alias_request_path, :class => "simple_form") do %>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label>Antecedent</label>
|
<label>Antecedent</label>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<%= submit_tag "Submit" %>
|
<%= submit_tag "Submit" %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "tag_aliases/secondary_links" %>
|
<%= render "tag_aliases/secondary_links" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<%= form_tag(general_search_tag_aliases_path, :method => :get) do %>
|
<%= form_tag(general_search_tag_aliases_path, :method => :get) do %>
|
||||||
<%= text_field_tag "query", params[:query] %>
|
<%= text_field_tag "query", params[:query] %>
|
||||||
<%= submit_tag "Search Aliases" %>
|
<%= submit_tag "Search Aliases" %>
|
||||||
<%= submit_tag "Search Implications" %>
|
<%= submit_tag "Search Implications" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<th width="10%">Reference</th>
|
<th width="10%">Reference</th>
|
||||||
<th width="10%">Status</th>
|
<th width="10%">Status</th>
|
||||||
<th width="20%"></th>
|
<th width="20%"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @tag_aliases.each do |tag_alias| %>
|
<% @tag_aliases.each do |tag_alias| %>
|
||||||
@@ -34,18 +34,18 @@
|
|||||||
<td>
|
<td>
|
||||||
<% if CurrentUser.is_admin? %>
|
<% if CurrentUser.is_admin? %>
|
||||||
<%= link_to "Delete", tag_alias_path(tag_alias), :remote => true, :method => :delete, :confirm => "Are you sure you want to delete this alias?" %>
|
<%= link_to "Delete", tag_alias_path(tag_alias), :remote => true, :method => :delete, :confirm => "Are you sure you want to delete this alias?" %>
|
||||||
|
|
||||||
<% if tag_alias.is_pending? %>
|
<% if tag_alias.is_pending? %>
|
||||||
| <%= link_to "Approve", approve_tag_alias_path(tag_alias), :remote => true, :method => :post %>
|
| <%= link_to "Approve", approve_tag_alias_path(tag_alias), :remote => true, :method => :post %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if CurrentUser.is_moderator? %>
|
<% if CurrentUser.is_moderator? %>
|
||||||
| <%= link_to "Fix", tag_alias_correction_path(:tag_alias_id => tag_alias.id) %>
|
| <%= link_to "Fix", tag_alias_correction_path(:tag_alias_id => tag_alias.id) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<%= f.input :consequent_name, :label => "To" %>
|
<%= f.input :consequent_name, :label => "To" %>
|
||||||
<%= f.input :forum_topic_id, :label => "Forum" %>
|
<%= f.input :forum_topic_id, :label => "Forum" %>
|
||||||
<%= f.button :submit %>
|
<%= f.button :submit %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<h1>Tag Implication Request</h1>
|
<h1>Tag Implication Request</h1>
|
||||||
|
|
||||||
<p>You can request a new tag implication be created. This will create a corresponding forum topic for community review.</p>
|
<p>You can request a new tag implication be created. This will create a corresponding forum topic for community review.</p>
|
||||||
|
|
||||||
<%= form_tag(tag_implication_request_path, :class => "simple_form") do %>
|
<%= form_tag(tag_implication_request_path, :class => "simple_form") do %>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label>Antecedent</label>
|
<label>Antecedent</label>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<%= submit_tag "Submit" %>
|
<%= submit_tag "Submit" %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "tag_implications/secondary_links" %>
|
<%= render "tag_implications/secondary_links" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<%= form_tag(general_search_tag_aliases_path, :method => :get) do %>
|
<%= form_tag(general_search_tag_aliases_path, :method => :get) do %>
|
||||||
<%= text_field_tag "query", params[:query] %>
|
<%= text_field_tag "query", params[:query] %>
|
||||||
<%= submit_tag "Search Implications" %>
|
<%= submit_tag "Search Implications" %>
|
||||||
<%= submit_tag "Search Aliases" %>
|
<%= submit_tag "Search Aliases" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<th width="10%">Reference</th>
|
<th width="10%">Reference</th>
|
||||||
<th width="10%">Status</th>
|
<th width="10%">Status</th>
|
||||||
<th width="15%"></th>
|
<th width="15%"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @tag_implications.each do |tag_implication| %>
|
<% @tag_implications.each do |tag_implication| %>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<%= f.input :consequent_name, :label => "To" %>
|
<%= f.input :consequent_name, :label => "To" %>
|
||||||
<%= f.input :forum_topic_id, :label => "Forum" %>
|
<%= f.input :forum_topic_id, :label => "Forum" %>
|
||||||
<%= f.button :submit %>
|
<%= f.button :submit %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<li><%= link_to "Listing", tag_subscriptions_path %></li>
|
<li><%= link_to "Listing", tag_subscriptions_path %></li>
|
||||||
<li><%= link_to "New", new_tag_subscription_path %></li>
|
<li><%= link_to "New", new_tag_subscription_path %></li>
|
||||||
<li><%= link_to "Help", wiki_pages_path(:title => "help:tag_subscriptions") %></li>
|
<li><%= link_to "Help", wiki_pages_path(:title => "help:tag_subscriptions") %></li>
|
||||||
|
|
||||||
<% if @tag_subscription && !@tag_subscription.new_record? && @tag_subscription.editable_by?(CurrentUser.user) %>
|
<% if @tag_subscription && !@tag_subscription.new_record? && @tag_subscription.editable_by?(CurrentUser.user) %>
|
||||||
<li>|</li>
|
<li>|</li>
|
||||||
<li><%= link_to "Show", tag_subscription_path(@tag_subscription) %></li>
|
<li><%= link_to "Show", tag_subscription_path(@tag_subscription) %></li>
|
||||||
|
|||||||
@@ -27,9 +27,9 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<p class="info">You can create up to <%= Danbooru.config.max_tag_subscriptions %> subscriptions with up to 20 tags each.</p>
|
<p class="info">You can create up to <%= Danbooru.config.max_tag_subscriptions %> subscriptions with up to 20 tags each.</p>
|
||||||
|
|
||||||
<%= sequential_paginator(@tag_subscriptions) %>
|
<%= sequential_paginator(@tag_subscriptions) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<div id="c-tag-subscriptions">
|
<div id="c-tag-subscriptions">
|
||||||
<div id="a-new">
|
<div id="a-new">
|
||||||
<h1>New Tag Subscription</h1>
|
<h1>New Tag Subscription</h1>
|
||||||
|
|
||||||
<%= error_messages_for "tag_subscription" %>
|
<%= error_messages_for "tag_subscription" %>
|
||||||
|
|
||||||
<%= render "form" %>
|
<%= render "form" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,16 +5,16 @@
|
|||||||
<%= render "posts/partials/index/mode_menu" %>
|
<%= render "posts/partials/index/mode_menu" %>
|
||||||
<%= render "posts/partials/index/blacklist" %>
|
<%= render "posts/partials/index/blacklist" %>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<section id="content">
|
<section id="content">
|
||||||
<h1>Tag Subscriptions [<%= link_to "edit", tag_subscriptions_path %>]</h1>
|
<h1>Tag Subscriptions [<%= link_to "edit", tag_subscriptions_path %>]</h1>
|
||||||
|
|
||||||
<%= @post_set.presenter.post_previews_html(self) %>
|
<%= @post_set.presenter.post_previews_html(self) %>
|
||||||
|
|
||||||
<%= numbered_paginator(@posts) %>
|
<%= numbered_paginator(@posts) %>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<%= render "posts/partials/common/secondary_links" %>
|
<%= render "posts/partials/common/secondary_links" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-tags">
|
<div id="c-tags">
|
||||||
<div id="a-edit">
|
<div id="a-edit">
|
||||||
<h1>Tag: <%= @tag.name %></h1>
|
<h1>Tag: <%= @tag.name %></h1>
|
||||||
|
|
||||||
<%= simple_form_for(@tag) do |f| %>
|
<%= simple_form_for(@tag) do |f| %>
|
||||||
<%= f.input :category, :collection => Danbooru.config.canonical_tag_category_mapping.to_a, :include_blank => false %>
|
<%= f.input :category, :collection => Danbooru.config.canonical_tag_category_mapping.to_a, :include_blank => false %>
|
||||||
<%= f.button :submit, "Submit" %>
|
<%= f.button :submit, "Submit" %>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div id="c-tags">
|
<div id="c-tags">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<table class="striped">
|
<table class="striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Count</th>
|
<th>Count</th>
|
||||||
|
|||||||
@@ -6,22 +6,22 @@
|
|||||||
<%= text_field "search", "name_matches" %>
|
<%= text_field "search", "name_matches" %>
|
||||||
<span class="hint">Use * for wildcard</span>
|
<span class="hint">Use * for wildcard</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label for="search_category">Category</label>
|
<label for="search_category">Category</label>
|
||||||
<%= select "search", "category", [""] + Danbooru.config.canonical_tag_category_mapping.to_a %>
|
<%= select "search", "category", [""] + Danbooru.config.canonical_tag_category_mapping.to_a %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label for="search_hide_empty">Hide Empty</label>
|
<label for="search_hide_empty">Hide Empty</label>
|
||||||
<%= select "search", "hide_empty", ["yes", "no"] %>
|
<%= select "search", "hide_empty", ["yes", "no"] %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<label for="search_sort">Sort</label>
|
<label for="search_sort">Sort</label>
|
||||||
<%= select "search", "sort", %w(date name count) %>
|
<%= select "search", "sort", %w(date name count) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag "Search" %>
|
<%= submit_tag "Search" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-tags">
|
<div id="c-tags">
|
||||||
<div id="a-show">
|
<div id="a-show">
|
||||||
<h1>Tag: <%= @tag.name %></h1>
|
<h1>Tag: <%= @tag.name %></h1>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Count: <%= @tag.post_count %></li>
|
<li>Count: <%= @tag.post_count %></li>
|
||||||
<li>Category: <%= @tag.category_name %></li>
|
<li>Category: <%= @tag.category_name %></li>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<!--
|
<!--
|
||||||
- post
|
- post
|
||||||
-->
|
-->
|
||||||
<% if post %>
|
<% if post %>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= numbered_paginator(@uploads) %>
|
<%= numbered_paginator(@uploads) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-uploads">
|
<div id="c-uploads">
|
||||||
<div id="a-new">
|
<div id="a-new">
|
||||||
<h1>Upload</h1>
|
<h1>Upload</h1>
|
||||||
|
|
||||||
<div id="upload-guide-notice">
|
<div id="upload-guide-notice">
|
||||||
<p>Before uploading, please read the <%= link_to "how to upload guide", wiki_pages_path(:title => "howto:upload") %>.</p>
|
<p>Before uploading, please read the <%= link_to "how to upload guide", wiki_pages_path(:title => "howto:upload") %>.</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -9,9 +9,9 @@
|
|||||||
<%= render "image" %>
|
<%= render "image" %>
|
||||||
<%= render "post", :post => @post %>
|
<%= render "post", :post => @post %>
|
||||||
<%= render "sources/info", :source => @source %>
|
<%= render "sources/info", :source => @source %>
|
||||||
|
|
||||||
<%= error_messages_for "upload" %>
|
<%= error_messages_for "upload" %>
|
||||||
|
|
||||||
<%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => 'form'}) do |f| %>
|
<%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => 'form'}) do |f| %>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<%= f.label :file %>
|
<%= f.label :file %>
|
||||||
@@ -24,10 +24,10 @@
|
|||||||
<%= button_tag "Similar", :id => "similar-button", :type => "button" %>
|
<%= button_tag "Similar", :id => "similar-button", :type => "button" %>
|
||||||
<%= button_tag "Artist", :id => "find-artist-button", :type => "button" %>
|
<%= button_tag "Artist", :id => "find-artist-button", :type => "button" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<%= f.label :rating_q, "Rating" %>
|
<%= f.label :rating_q, "Rating" %>
|
||||||
|
|
||||||
<fieldset class="ratings">
|
<fieldset class="ratings">
|
||||||
<%= f.radio_button :rating, :e %>
|
<%= f.radio_button :rating, :e %>
|
||||||
<%= f.label :rating_e, "Explicit", :title => "Hardcore porn, visible genitals, gore" %>
|
<%= f.label :rating_e, "Explicit", :title => "Hardcore porn, visible genitals, gore" %>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<%= f.radio_button :rating, :q %>
|
<%= f.radio_button :rating, :q %>
|
||||||
<%= f.label :rating_q, "Questionable", :title => "Nudity, anything erotic" %>
|
<%= f.label :rating_q, "Questionable", :title => "Nudity, anything erotic" %>
|
||||||
|
|
||||||
<%= f.radio_button :rating, :s %>
|
<%= f.radio_button :rating, :s %>
|
||||||
<%= f.label :rating_s, "Safe", :title => "Everything else" %>
|
<%= f.label :rating_s, "Safe", :title => "Everything else" %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
@@ -44,19 +44,19 @@
|
|||||||
<%= f.label :parent_id, "Parent ID" %>
|
<%= f.label :parent_id, "Parent ID" %>
|
||||||
<%= f.text_field :parent_id %>
|
<%= f.text_field :parent_id %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<div>
|
<div>
|
||||||
<%= f.label :tag_string, "Tags" %>
|
<%= f.label :tag_string, "Tags" %>
|
||||||
<%= f.text_area :tag_string, :size => "60x4" %>
|
<%= f.text_area :tag_string, :size => "60x4" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= button_tag "Related tags", :id => "related-tags-button", :type => "button" %>
|
<%= button_tag "Related tags", :id => "related-tags-button", :type => "button" %>
|
||||||
<%= button_tag "Artists", :id => "related-artists-button", :type => "button" %>
|
<%= button_tag "Artists", :id => "related-artists-button", :type => "button" %>
|
||||||
<%= button_tag "Characters", :id => "related-characters-button", :type => "button" %>
|
<%= button_tag "Characters", :id => "related-characters-button", :type => "button" %>
|
||||||
<%= button_tag "Copyrights", :id => "related-copyrights-button", :type => "button" %>
|
<%= button_tag "Copyrights", :id => "related-copyrights-button", :type => "button" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<%= submit_tag "Submit", :class => "large" %>
|
<%= submit_tag "Submit", :class => "large" %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-user-feedbacks">
|
<div id="c-user-feedbacks">
|
||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>User Feedback</h1>
|
<h1>User Feedback</h1>
|
||||||
|
|
||||||
<table class="striped" width="100%">
|
<table class="striped" width="100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="c-user-feedbacks">
|
<div id="c-user-feedbacks">
|
||||||
<div id="a-show">
|
<div id="a-show">
|
||||||
<h1>User Feedback For <%= @user_feedback.user_name %></h1>
|
<h1>User Feedback For <%= @user_feedback.user_name %></h1>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>Creator</strong> <%= @user_feedback.creator.name %></li>
|
<li><strong>Creator</strong> <%= @user_feedback.creator.name %></li>
|
||||||
<li><strong>Date</strong> <%= @user_feedback.created_at %></li>
|
<li><strong>Date</strong> <%= @user_feedback.created_at %></li>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user