stuff
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %>
|
||||
<%= stylesheet_link_tag "compiled/default" %>
|
||||
<%= stylesheet_link_tag "smoothness/jquery-ui-1.8.5.custom.css" %>
|
||||
<%= javascript_include_tag "compiled/default" %>
|
||||
<%= javascript_include_tag :defaults, :cache => true %>
|
||||
<%= Danbooru.config.custom_html_header_content %>
|
||||
<%= yield :html_header %>
|
||||
</head>
|
||||
|
||||
6
app/views/post_appeals/create.js.erb
Normal file
6
app/views/post_appeals/create.js.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
var errors = <%= @post_appeal.errors.full_messages.to_json.html_safe %>;
|
||||
if (errors.length > 0) {
|
||||
Danbooru.j_error(errors.join("; "));
|
||||
} else {
|
||||
Danbooru.j_alert("Appeal", "Post appeal");
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
var errors = <%= @unapproval.errors.full_messages.to_json.html_safe %>;
|
||||
var errors = <%= @post_flag.errors.full_messages.to_json.html_safe %>;
|
||||
if (errors.length > 0) {
|
||||
Danbooru.j_error(errors.join("; "));
|
||||
} else {
|
||||
Danbooru.j_alert("Flag", "Post flagged");
|
||||
$("a#approve").show();
|
||||
$("a#disapprove").show();
|
||||
$("a#flag").hide();
|
||||
}
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
<p>Enter a reason:</p>
|
||||
|
||||
<%= simple_form_for(@post_flag, :remote => true, :format => :js) do |f| %>
|
||||
<%= hidden_field_tag "post_flag[post_id]", @post_flag.post_id %>
|
||||
<%= f.input :post_id, :as => :hidden %>
|
||||
<%= f.text_field :reason %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
$("a#delete").hide();
|
||||
$("a#undelete").show();
|
||||
$("img#delete-wait").hide();
|
||||
|
||||
@@ -4,12 +4,6 @@
|
||||
<% if post.approver %>
|
||||
<li>Approver: <%= link_to(post.approver.name, user_path(post.approver_id)) %></li>
|
||||
<% end %>
|
||||
<% if post.is_flagged? %>
|
||||
<li>Flagged: <%= post_flag_reason(post) %></li>
|
||||
<% end %>
|
||||
<% if (post.is_flagged? || post.is_deleted?) && post.appeals.any? %>
|
||||
<li>Appealed: <%= post_appeal_reason(post) %></li>
|
||||
<% end %>
|
||||
<li>
|
||||
Size: <%= number_to_human_size(post.file_size) %>
|
||||
<% if post.is_image? %>
|
||||
@@ -27,7 +21,7 @@
|
||||
<% end %>
|
||||
|
||||
<% if post.is_flagged? %>
|
||||
<abbr title="Unapproved">U</abbr>
|
||||
<abbr title="Flagged">F</abbr>
|
||||
<% end %>
|
||||
|
||||
<% if !post.is_pending? && !post.is_deleted? %>
|
||||
|
||||
13
app/views/posts/partials/show/_notices.html.erb
Normal file
13
app/views/posts/partials/show/_notices.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<% if post.is_flagged? %>
|
||||
<div class="ui-corner-all ui-state-error notice">
|
||||
<span class="ui-icon ui-icon-alert"></span>
|
||||
This post has been flagged for deletion: <%= post_flag_reasons(post) %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if post.is_deleted? && post.appeals.any? %>
|
||||
<div class="ui-corner-all ui-state-highlight notice">
|
||||
<span class="ui-icon ui-icon-info"></span>
|
||||
This post has been appealed: <%= post_appeal_reasons(post) %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -31,6 +31,8 @@
|
||||
|
||||
<section id="content">
|
||||
<h1>Post</h1>
|
||||
|
||||
<%= render :partial => "posts/partials/show/notices", :locals => {:post => @post} %>
|
||||
|
||||
<section id="image">
|
||||
<h2>Image</h2>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="sessions">
|
||||
<div id="new">
|
||||
<section>
|
||||
<h2>Sign In</h2>
|
||||
<h3>Sign In</h3>
|
||||
<%= form_tag(session_path) do %>
|
||||
<%= hidden_field_tag "url", params[:url] %>
|
||||
<table width="100%">
|
||||
@@ -30,7 +30,7 @@
|
||||
</section>
|
||||
|
||||
<aside>
|
||||
<h2>Help</h2>
|
||||
<h3>Help</h3>
|
||||
<ul>
|
||||
<li><%= link_to "I don't have an account", new_user_path %></li>
|
||||
<li><%= link_to "I forgot my password", reset_password_path %></li>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="users">
|
||||
<div class="new">
|
||||
<h1>Registration</h1>
|
||||
<h3>Registration</h3>
|
||||
|
||||
<div id="p1">
|
||||
<p><%= Danbooru.config.app_name %> is ad-sponsored and does not require an account to view. But in order to start uploading, editing, or creating content on this site, you will need to register. <em>Make sure you read and agree to the <%= link_to "terms of service", terms_of_service_path %> before registering. <strong>This site is open to web crawlers, therefore any name you choose will be public!</strong></em></p>
|
||||
|
||||
Reference in New Issue
Block a user