adds internal support for notice-specific styles (#1148)

This commit is contained in:
Toks
2013-04-05 21:18:29 -04:00
parent eff0041729
commit a953189031

View File

@@ -1,5 +1,5 @@
<% 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 notice-flagged">
<p>This post was flagged for deletion: </p>
<%= post_flag_reasons(post) %>
@@ -7,7 +7,7 @@
<% end %>
<% if post.is_deleted? && post.flags.empty? %>
<div class="ui-corner-all ui-state-highlight notice">
<div class="ui-corner-all ui-state-highlight notice notice-deleted">
<% if post.is_banned? %>
This post was deleted because it was requested by the artist
<% else %>
@@ -17,7 +17,7 @@
<% end %>
<% 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 notice-deleted">
<p>This post was deleted for the following reasons: </p>
<%= post_flag_reasons(post) %>
@@ -25,7 +25,7 @@
<% end %>
<% 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 notice-pending" id="pending-approval-notice">
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) %>
@@ -40,26 +40,26 @@
<% end %>
<% 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 notice-appealed">
<p>This post was appealed:</p>
<%= post_appeal_reasons(post) %>
</div>
<% end %>
<% if post.parent_id %>
<div class="ui-corner-all ui-state-highlight notice">
<div class="ui-corner-all ui-state-highlight notice notice-child">
This post belongs to a <%= link_to "parent", post_path(post.parent_id) %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
</div>
<% end %>
<% if post.has_children? %>
<div class="ui-corner-all ui-state-highlight notice">
<div class="ui-corner-all ui-state-highlight notice notice-parent">
This post has <%= link_to "children", posts_path(:tags => "parent:#{post.id}") %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
</div>
<% end %>
<% if post.has_large? && CurrentUser.default_image_size == "large" %>
<div class="ui-corner-all ui-state-highlight notice" id="image-resize-notice">
<div class="ui-corner-all ui-state-highlight notice notice-resized" id="image-resize-notice">
Resized to <%= number_to_percentage post.resize_percentage, :precision => 0 %> of original (<%= link_to "view original", post.file_url, :id => "image-resize-link" %>)
</div>
<% end %>