diff --git a/app/assets/javascripts/utility.js b/app/assets/javascripts/utility.js
index 379dd828f..5cc0f0134 100644
--- a/app/assets/javascripts/utility.js
+++ b/app/assets/javascripts/utility.js
@@ -4,19 +4,13 @@
}
Danbooru.notice = function(msg) {
- $('#notice').html(msg).show();
+ $('#notice').html(msg).addClass("ui-state-highlight").removeClass("ui-state-error").show();
}
- Danbooru.j_alert = function(title, msg) {
- this.notice(msg);
- // $('
-
+
This post has been flagged for deletion: <%= post_flag_reasons(post) %>
<% end %>
+<% if post.is_pending? %>
+
+ 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) %>
+
+ <%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :method => :post, :remote => true %>
+ | <%= link_to "Disapprove", moderator_post_disapproval_path(:post_id => post.id), :method => :post, :remote => true %>
+
+ <% end %>
+
+<% end %>
+
<% if post.appeals.any? %>
-
This post has been appealed: <%= post_appeal_reasons(post) %>
+<% end %>
+
+<% if post.parent_id %>
+
+ This post belongs to a <%= link_to "parent", post_path(post.parent_id) %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
+
+<% end %>
+
+<% if post.has_children? %>
+
+ This post has <%= link_to "children", posts_path(:tags => "parent:#{post.id}") %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
+
<% end %>
\ No newline at end of file
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 235992646..8c18d4c1f 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -5,6 +5,9 @@ en:
hello: "Hello world"
activerecord:
attributes:
+ post:
+ approver: "You"
+ approver_id: "You"
post_flag:
creator: "You"
creator_id: "You"