From 3ae913a707e224069ea2678a2e1fc9c6eee04bd3 Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 17 Aug 2018 18:55:21 -0500 Subject: [PATCH] html: convert html comments to erb comments. Avoid emitting useless comments in the html. --- app/views/artists/_summary.html.erb | 6 ++---- app/views/dtext/_form.html.erb | 9 +-------- app/views/post_appeals/_new.html.erb | 2 +- app/views/post_flags/_new.html.erb | 2 +- app/views/posts/partials/common/_search.html.erb | 5 +---- app/views/posts/partials/index/_excerpt.html.erb | 4 +--- app/views/posts/show.html.erb | 2 +- app/views/sources/_info.html.erb | 4 +--- app/views/uploads/_post.html.erb | 4 +--- 9 files changed, 10 insertions(+), 28 deletions(-) diff --git a/app/views/artists/_summary.html.erb b/app/views/artists/_summary.html.erb index 620ae94d6..bcbeaad23 100644 --- a/app/views/artists/_summary.html.erb +++ b/app/views/artists/_summary.html.erb @@ -1,6 +1,4 @@ - +<%# artist %> <% end %> <% end %> - \ No newline at end of file + diff --git a/app/views/dtext/_form.html.erb b/app/views/dtext/_form.html.erb index c2f2fcc13..2fd129d4d 100644 --- a/app/views/dtext/_form.html.erb +++ b/app/views/dtext/_form.html.erb @@ -1,11 +1,4 @@ - +<%# name, input_id, input_name, preview_id, value, type %>
diff --git a/app/views/post_appeals/_new.html.erb b/app/views/post_appeals/_new.html.erb index 181b8b5e6..c06e3705f 100644 --- a/app/views/post_appeals/_new.html.erb +++ b/app/views/post_appeals/_new.html.erb @@ -1,6 +1,6 @@ <%= format_text(WikiPage.titled(Danbooru.config.appeal_notice_wiki_page).first.try(&:body)) %> - +<%# XXX dtext_field expects there to be a `post_appeal` instance variable. %> <% @post_appeal = post_appeal %> <%= simple_form_for(@post_appeal, format: :js, remote: true) do |f| %> <%= f.hidden_field :post_id %> diff --git a/app/views/post_flags/_new.html.erb b/app/views/post_flags/_new.html.erb index 25c9a1371..da735b3b7 100644 --- a/app/views/post_flags/_new.html.erb +++ b/app/views/post_flags/_new.html.erb @@ -1,6 +1,6 @@ <%= format_text(WikiPage.titled(Danbooru.config.flag_notice_wiki_page).first.try(&:body)) %> - +<%# XXX dtext_field expects there to be a `post_flag` instance variable. %> <% @post_flag = post_flag %> <%= simple_form_for(@post_flag, format: :js, remote: true) do |f| %> <%= f.hidden_field :post_id %> diff --git a/app/views/posts/partials/common/_search.html.erb b/app/views/posts/partials/common/_search.html.erb index aa2f80fd7..ff46efd4a 100644 --- a/app/views/posts/partials/common/_search.html.erb +++ b/app/views/posts/partials/common/_search.html.erb @@ -1,7 +1,4 @@ - +<%# path, tags %>