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,4 +1,4 @@
<!--
<!--
- post_set
-->

View File

@@ -3,7 +3,7 @@
<%= simple_form_for(@wiki_page) do |f| %>
<%= f.input :title, :as => :string %>
<%= dtext_field "wiki_page", "body" %>
<% if CurrentUser.is_janitor? %>

View File

@@ -7,7 +7,7 @@
<% if @wiki_page %>
<li>|</li>
<li><%= link_to "Posts (#{Post.fast_count(@wiki_page.title)})", posts_path(:tags => @wiki_page.title) %></li>
<% unless @wiki_page.new_record? %>
<% unless @wiki_page.new_record? %>
<li><%= link_to "History", wiki_page_versions_path(:search => {:wiki_page_id => @wiki_page.id}) %></li>
<% if CurrentUser.is_member? %>
<li><%= link_to "Edit", edit_wiki_page_path(@wiki_page) %></li>

View File

@@ -7,7 +7,7 @@
</section>
<%= render "wiki_pages/recent_changes" %>
<section id="blacklist-box">
<h1>Blacklisted</h1>
<ul id="blacklist-list">

View File

@@ -1,7 +1,7 @@
<div id="c-wiki-pages">
<div id="a-edit">
<%= render "sidebar" %>
<section id="content">
<h1>Edit Wiki</h1>
<%= render "form" %>
@@ -9,7 +9,7 @@
</div>
</div>
<%= render "secondary_links" %>
<%= render "secondary_links" %>
<% content_for(:page_title) do %>
Edit Wiki Page - <%= Danbooru.config.app_name %>

View File

@@ -4,7 +4,7 @@
<section id="content">
<h1>Wiki</h1>
<table class="striped" width="100%">
<thead>
<tr>
@@ -18,7 +18,7 @@
<td class="tag-category-<%= wiki_page.category_name %>"><%= link_to wiki_page.pretty_title, wiki_page_path(wiki_page, :noredirect => 1) %></td>
<td><%= wiki_page.updated_at.strftime("%Y-%m-%d %I:%M") %> by <%= h link_to wiki_page.creator.name, user_path(wiki_page.creator) %></td>
</tr>
<% end %>
<% end %>
</tbody>
</table>

View File

@@ -1,18 +1,18 @@
<div id="c-wiki-pages">
<div id="a-new">
<%= render "sidebar" %>
<section id="content">
<h1>New Wiki Page</h1>
<%= render "form" %>
<div id="wiki-page-posts">
<h2>Posts</h2>
<%= @wiki_page.post_set.presenter.post_previews_html(self) %>
</div>
<div class="clearfix"></div>
</section>
</div>
</div>

View File

@@ -4,12 +4,12 @@
<%= search_field "title", :hint => "Use * for wildcard searches" %>
<%= search_field "creator_name" %>
<%= search_field "body_matches", :label => "Body" %>
<div class="input">
<label for="search_sort">Sort</label>
<%= select "search", "sort", ["Name", "Date"] %>
</div>
<%= submit_tag "Search" %>
<% end %>
</div>

View File

@@ -1,20 +1,20 @@
<div id="c-wiki-pages">
<div id="a-show">
<%= render "sidebar" %>
<section id="content">
<h1 id="wiki-page-title">
<%= @wiki_page.pretty_title %>
<% if @wiki_page.is_locked? %>
(locked)
<% end %>
</h1>
<div id="wiki-page-body" class="prose">
<%= format_text(@wiki_page.body) %>
<% if @wiki_page.presenter.antecedent_tag_alias %>
<p class="hint">This tag has been aliased to <%= link_to @wiki_page.presenter.antecedent_tag_alias.consequent_name, posts_path(:tags => @wiki_page.presenter.antecedent_tag_alias.consequent_name) %>.</p>
<% end %>
@@ -23,7 +23,7 @@
<p class="hint">The following tags are aliased to this tag: <%= raw @wiki_page.presenter.consequent_tag_aliases.map {|x| link_to(x.antecedent_name, posts_path(:tags => x.antecedent_name))}.join(", ") %>.</p>
<% end %>
</div>
<div id="wiki-page-posts">
<%= @wiki_page.post_set.presenter.post_previews_html(self) %>
</div>