Kill trailing whitespace in erb files

This commit is contained in:
小太
2013-03-19 23:11:58 +11:00
parent aef86bda04
commit 1a03a86592
119 changed files with 271 additions and 271 deletions

View File

@@ -1,9 +1,9 @@
<div id="c-comments">
<div id="a-edit">
<h1>Edit Comment</h1>
<h1>Edit Comment</h1>
<%= error_messages_for "comment" %>
<%= simple_form_for(@comment) do |f| %>
<%= dtext_field "comment", "body" %>
<%= f.button :submit, "Submit" %>

View File

@@ -1,7 +1,7 @@
<div id="c-comments">
<div id="a-index">
<h1>Comments</h1>
<div class="comments-for-post">
<div class="list-of-comments">
<% @comments.each do |comment| %>
@@ -15,7 +15,7 @@
<% end %>
</div>
</div>
<%= numbered_paginator(@comments) %>
</div>
</div>

View File

@@ -1,11 +1,11 @@
<div id="c-comments">
<div id="a-index">
<h1>Comments</h1>
<% if @posts.empty? %>
<%= render "post_sets/blank" %>
<% end %>
<% @posts.select {|x| Danbooru.config.can_user_see_post?(CurrentUser.user, x)}.each do |post| %>
<div class="post post-preview" data-tags="<%= post.tag_string %>" data-uploader="<%= post.uploader_name %>" data-rating="<%= post.rating %>" data-flags="<%= post.status %>" data-score="<%= post.score %>" data-parent-id="<%= post.parent_id %>" data-has-children="<%= post.has_children? %>" data-id="<%= post.id %>" data-width="<%= post.image_width %>" data-height="<%= post.image_height %>">
<div class="preview">
@@ -15,7 +15,7 @@
<div class="clearfix"></div>
</div>
<% end %>
<%= numbered_paginator(@posts) %>
</div>
</div>

View File

@@ -18,9 +18,9 @@
<%= render :partial => "comments/partials/show/comment", :collection => comments %>
<% end %>
</div>
<div class="clearfix"></div>
<div class="new-comment">
<p><%= link_to "Post comment", new_comment_path, :class => "expand-comment-response" %></p>
<%= render "comments/partials/new/form", :post => post %>

View File

@@ -6,4 +6,4 @@
<%= dtext_field "comment", "body", :input_id => "comment_response_for_#{post.id}", :preview_id => "dtext-preview-for-#{post.id}" %>
<%= dtext_preview_button "comment", "body", :input_id => "comment_response_for_#{post.id}", :preview_id => "dtext-preview-for-#{post.id}" %>
<%= submit_tag "Post" %> <%= check_box "comment", "do_not_bump_post", :id => "comment_do_not_bump_post_#{post.id}" %> <label for="comment_do_not_bump_post_<%= post.id %>">No bump</label>
<% end %>
<% end %>

View File

@@ -8,7 +8,7 @@
<div class="content">
<div class="body prose">
<%= format_text(comment.body) %>
<% if comment.updater_id.present? && (comment.updater_id != comment.creator_id || comment.created_at != comment.updated_at) %>
<p class="info">Updated by <%= link_to comment.updater_name, user_path(comment.updater_id) %> <%= time_ago_in_words_tagged(comment.updated_at) %></p>
<% end %>

View File

@@ -1,10 +1,10 @@
<div id="c-comments">
<div id="a-search">
<h1>Search Comments</h1>
<%= form_tag(comments_path, :method => :get, :class => "simple_form") do %>
<%= hidden_field_tag "group_by", "comment" %>
<%= search_field "body_matches", :label => "Body" %>
<%= search_field "creator_name", :label => "User" %>
<%= search_field "post_tags_match", :label => "Tags", :hint => "Meta-tags not supported" %>