fixes #134: Appeal option missing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
var errors = <%= @post_appeal.errors.full_messages.to_json.html_safe %>;
|
||||
var errors = "<%= j @post_appeal.errors.full_messages.join("; ") %>";
|
||||
if (errors.length > 0) {
|
||||
Danbooru.j_error(errors.join("; "));
|
||||
Danbooru.j_error(errors);
|
||||
} else {
|
||||
Danbooru.j_alert("Appeal", "Post appeal");
|
||||
Danbooru.j_alert("Appeal", "Post appealed");
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if post.is_deleted? && post.appeals.any? %>
|
||||
<% if 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) %>
|
||||
|
||||
@@ -91,6 +91,7 @@
|
||||
<meta name="post-id" content="<%= @post.id %>">
|
||||
<meta name="post-is-approvable" content="<%= @post.is_approvable? %>">
|
||||
<meta name="post-is-deleted" content="<%= @post.is_deleted? %>">
|
||||
<meta name="post-is-flagged" content="<%= @post.is_flagged? %>">
|
||||
<meta name="config-medium-width" content="<%= Danbooru.config.medium_image_width %>">
|
||||
<meta name="config-large-width" content="<%= Danbooru.config.large_image_width %>">
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user