Kill trailing whitespace in erb files
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
<h1>Tags</h1>
|
||||
<%= @post_set.presenter.tag_list_html(self) %>
|
||||
</section>
|
||||
|
||||
|
||||
<%= render "posts/partials/index/related" %>
|
||||
</aside>
|
||||
|
||||
<section id="content">
|
||||
<menu id="post-sections">
|
||||
<li class="active"><a href="#posts" id="show-posts-link">Posts</a></li>
|
||||
|
||||
|
||||
<% if @post_set.has_wiki? %>
|
||||
<li><a href="#wiki-except" id="show-wiki-excerpt-link">Wiki</a></li>
|
||||
<% end %>
|
||||
@@ -30,9 +30,9 @@
|
||||
<%= render "wiki_pages/excerpt", :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>
|
||||
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
<% if @post_set.tag_string.present? %>
|
||||
<%= @post_set.humanized_tag_string %> - <%= Danbooru.config.app_name %>
|
||||
@@ -42,7 +42,7 @@
|
||||
<% end %>
|
||||
|
||||
<%= render "posts/partials/common/secondary_links" %>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!--
|
||||
<!--
|
||||
- path
|
||||
- tags
|
||||
-->
|
||||
@@ -8,5 +8,5 @@
|
||||
<%= form_tag(path, :method => "get") do %>
|
||||
<%= text_field_tag("tags", tags, :size => 20) %>
|
||||
<%= submit_tag "Go" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</section>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<% end %>
|
||||
<option value="edit-tag-script">Edit tag script</option>
|
||||
<option value="apply-tag-script">Apply tag script</option>
|
||||
</select>
|
||||
</select>
|
||||
</form>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="posts">
|
||||
<%= render_advertisement("horizontal") %>
|
||||
|
||||
|
||||
<%= post_set.presenter.post_previews_html(self) %>
|
||||
|
||||
<%= numbered_paginator(post_set.posts) %>
|
||||
<%= numbered_paginator(post_set.posts) %>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<% if @post_set.has_deleted? %>
|
||||
<li><%= link_to "Deleted posts", posts_path(:tags => "#{params[:tags]} status:deleted") %></li>
|
||||
<% end %>
|
||||
|
||||
|
||||
<% if @post_set.is_tag_subscription? %>
|
||||
<li><%= link_to "Edit subscriptions", tag_subscriptions_path %></li>
|
||||
<% end %>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
This post is rating locked.
|
||||
<% else %>
|
||||
<%= f.label :blank, "Rating" %>
|
||||
|
||||
|
||||
<fieldset class="ratings">
|
||||
<%= f.radio_button :rating, :e %>
|
||||
<%= f.label :rating_e, "Explicit" %>
|
||||
@@ -23,21 +23,21 @@
|
||||
|
||||
<%= f.radio_button :rating, :s %>
|
||||
<%= f.label :rating_s, "Safe" %>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% if CurrentUser.is_builder? %>
|
||||
<div class="input">
|
||||
<%= f.label :blank, "Lock" %>
|
||||
|
||||
|
||||
<fieldset class="locks">
|
||||
<%= f.check_box :is_note_locked %>
|
||||
<%= f.label :is_note_locked, "Notes" %>
|
||||
|
||||
<%= f.check_box :is_rating_locked %>
|
||||
<%= f.label :is_rating_locked, "Rating" %>
|
||||
|
||||
|
||||
<% if CurrentUser.is_admin? %>
|
||||
<%= f.check_box :is_status_locked %>
|
||||
<%= f.label :is_status_locked, "Status" %>
|
||||
@@ -63,7 +63,7 @@
|
||||
<%= f.label :tag_string, "Tags" %>
|
||||
<%= f.text_area :tag_string , :size => "50x3" %>
|
||||
</div>
|
||||
|
||||
|
||||
<%= button_tag "Related tags", :id => "related-tags-button", :type => "button" %>
|
||||
<%= button_tag "Artists", :id => "related-artists-button", :type => "button" %>
|
||||
<%= button_tag "Characters", :id => "related-characters-button", :type => "button" %>
|
||||
@@ -71,7 +71,7 @@
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
<%= submit_tag "Submit" %>
|
||||
<%= submit_tag "Submit" %>
|
||||
</div>
|
||||
|
||||
<div id="artist-tags-container">
|
||||
@@ -79,7 +79,7 @@
|
||||
<div id="artist-tags">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="related-tags-container">
|
||||
<h1>Related Tags</h1>
|
||||
<div id="related-tags">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<li>Approver: <%= link_to(post.approver.name, user_path(post.approver_id)) %></li>
|
||||
<% end %>
|
||||
<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? %>
|
||||
(<%= post.image_width %>x<%= post.image_height %>)
|
||||
<% end %>
|
||||
@@ -20,15 +20,15 @@
|
||||
<% if post.is_pending? %>
|
||||
Pending
|
||||
<% end %>
|
||||
|
||||
|
||||
<% if post.is_deleted? %>
|
||||
Deleted
|
||||
<% end %>
|
||||
|
||||
|
||||
<% if post.is_flagged? %>
|
||||
Flagged
|
||||
<% end %>
|
||||
|
||||
|
||||
<% if !post.is_pending? && !post.is_deleted? %>
|
||||
Active
|
||||
<% end %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<% if post.is_flagged? && !post.is_deleted? && post.flags.any? %>
|
||||
<div class="ui-corner-all ui-state-highlight notice">
|
||||
<p>This post was flagged for deletion: </p>
|
||||
|
||||
|
||||
<%= post_flag_reasons(post) %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -15,7 +15,7 @@
|
||||
<% if post.is_deleted? && post.flags.any? %>
|
||||
<div class="ui-corner-all ui-state-highlight notice">
|
||||
<p>This post was deleted for the following reasons: </p>
|
||||
|
||||
|
||||
<%= post_flag_reasons(post) %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -23,7 +23,7 @@
|
||||
<% if post.is_pending? %>
|
||||
<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") %>)
|
||||
|
||||
|
||||
<% if CurrentUser.is_janitor? && !post.disapproved_by?(CurrentUser.user) %>
|
||||
<div class="quick-mod">
|
||||
<% unless post.is_status_locked? %>
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
<% if (post.is_flagged? || post.is_deleted?) && post.appeals.any? %>
|
||||
<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) %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -10,16 +10,16 @@
|
||||
<li><%= link_to "Add note", "#", :id => "translate", :title => "Shortcut is CTRL+N" %></li>
|
||||
<% end %>
|
||||
<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? %>
|
||||
<% if !post.is_deleted? && !post.is_pending? %>
|
||||
<li><%= link_to "Flag", new_post_flag_path(:post_id => post.id), :id => "flag" %></li>
|
||||
<% end %>
|
||||
|
||||
|
||||
<% if post.is_flagged? || post.is_deleted? %>
|
||||
<li><%= link_to "Appeal", new_post_appeal_path(:post_id => post.id), :id => "appeal" %></li>
|
||||
<% end %>
|
||||
|
||||
|
||||
<% if CurrentUser.is_janitor? %>
|
||||
<% 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>
|
||||
@@ -34,7 +34,7 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
|
||||
<% 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>
|
||||
<% end %>
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
<script type="text/javascript">
|
||||
var addthis_config = {"data_track_addressbar": false};
|
||||
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 %>"
|
||||
};
|
||||
</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>
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<div id="a-show">
|
||||
<aside id="sidebar">
|
||||
<%= render "posts/partials/common/search", :path => posts_path, :tags => params[:tags] %>
|
||||
|
||||
|
||||
<%= render_advertisement("vertical") %>
|
||||
|
||||
|
||||
<section id="tag-list">
|
||||
<%= @post.presenter.split_tag_list_html(self) %>
|
||||
</section>
|
||||
@@ -13,7 +13,7 @@
|
||||
<h1>Information</h1>
|
||||
<%= render "posts/partials/show/information", :post => @post %>
|
||||
</section>
|
||||
|
||||
|
||||
<section>
|
||||
<h1>Options</h1>
|
||||
<%= render "posts/partials/show/options", :post => @post %>
|
||||
@@ -33,11 +33,11 @@
|
||||
<% if @post.presenter.has_nav_links?(self) %>
|
||||
<%= render "posts/partials/show/nav_links", :post => @post, :position => "top" %>
|
||||
<% end %>
|
||||
|
||||
|
||||
<%= render "posts/partials/show/notices", :post => @post %>
|
||||
|
||||
|
||||
<%= render_advertisement("horizontal") %>
|
||||
|
||||
|
||||
<section id="image-container">
|
||||
<div id="note-container"></div>
|
||||
<%= @post.presenter.image_html(self) %>
|
||||
@@ -46,7 +46,7 @@
|
||||
<% if @post.presenter.has_nav_links?(self) %>
|
||||
<%= render "posts/partials/show/nav_links", :post => @post, :position => "bottom" %>
|
||||
<% end %>
|
||||
|
||||
|
||||
<menu id="post-sections">
|
||||
<li><a href="#comments">Comments</a></li>
|
||||
<% if Danbooru.config.can_user_see_post?(CurrentUser.user, @post) %>
|
||||
@@ -68,11 +68,11 @@
|
||||
<%= render "posts/partials/show/edit", :post => @post %>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
|
||||
<section id="share" style="display: none;">
|
||||
<%= render "posts/partials/show/share", :post => @post %>
|
||||
</section>
|
||||
|
||||
|
||||
<%= render_rss_advertisement("long", @post.rating == "e") %>
|
||||
</section>
|
||||
</div>
|
||||
@@ -84,7 +84,7 @@
|
||||
<div id="appeal-dialog" title="Appeal post" style="display: none;">
|
||||
<%= render "post_appeals/new" %>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="add-to-pool-dialog" title="Add to pool" style="display: none;">
|
||||
<%= render "pool_elements/new" %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user