html: convert html comments to erb comments.
Avoid emitting useless comments in the html.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
<!--
|
||||
artist
|
||||
-->
|
||||
<%# artist %>
|
||||
<ul>
|
||||
<li><strong>Status</strong> <%= artist.status %></li>
|
||||
|
||||
@@ -43,4 +41,4 @@
|
||||
</ul>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
<!--
|
||||
- name
|
||||
- input_id
|
||||
- input_name
|
||||
- preview_id
|
||||
- value
|
||||
- type
|
||||
-->
|
||||
<%# name, input_id, input_name, preview_id, value, type %>
|
||||
<div class="input text optional <%= classes %>">
|
||||
<label class="text optional" for="<%= input_id %>"><%= name %></label>
|
||||
|
||||
|
||||
@@ -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. -->
|
||||
<%# 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 %>
|
||||
|
||||
@@ -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. -->
|
||||
<%# 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 %>
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
<!--
|
||||
- path
|
||||
- tags
|
||||
-->
|
||||
<%# path, tags %>
|
||||
|
||||
<section id="search-box">
|
||||
<h1>Search</h1>
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<!--
|
||||
- post_set
|
||||
-->
|
||||
<%# post_set %>
|
||||
|
||||
<div id="excerpt" style="display: none;">
|
||||
<% if post_set.has_artist? %>
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
<meta name="report-server" content="<%= Danbooru.config.reportbooru_server %>">
|
||||
<% end %>
|
||||
|
||||
<!-- Twitter properties -->
|
||||
<%# Twitter properties %>
|
||||
<% if @post.twitter_card_supported? %>
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:site" content="<%= Danbooru.config.twitter_site %>">
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<!--
|
||||
- source
|
||||
-->
|
||||
<%# source %>
|
||||
|
||||
<div id="source-info">
|
||||
<p><%= link_to "Fetch source data", source_path(:format => "json"), :id => "fetch-data-manual" %></p>
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<!--
|
||||
- post
|
||||
-->
|
||||
<%# post %>
|
||||
<% if post %>
|
||||
<h2 style="margin-bottom: 1em;">
|
||||
This post was probably already uploaded (<%= link_to "post ##{post.id}", post_path(post), :target => "_blank" %>)
|
||||
|
||||
Reference in New Issue
Block a user