fix image container html

This commit is contained in:
Albert Yi
2018-10-31 16:14:06 -07:00
parent 9a12fc45d3
commit e334c34836
3 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ class TagSetPresenter < Presenter
html = ""
if ordered_tags.present?
html << '<ul itemscope itemtype="http://schema.org/ImageObject">'
html << '<ul>'
ordered_tags.each do |tag|
html << build_list_item(tag, current_query: current_query, show_extra_links: show_extra_links, name_only: name_only)
end

View File

@@ -1,4 +1,4 @@
<ul itemscope itemtype="http://schema.org/ImageObject">
<ul>
<li>ID: <%= post.id %></li>
<li>Top Tagger: <%= link_to_user(post.keeper) %></li>
<% if CurrentUser.is_moderator? %>

View File

@@ -47,11 +47,11 @@
<%= render "posts/partials/show/notices", :post => @post %>
<section itemscope itemtype="http://schema.org/ImageObject" id="image-container" <%= PostPresenter.data_attributes(@post) %>>
<%= content_tag(:section, PostPresenter.data_attributes(@post).merge(id: "image-container")) do -%>
<div id="note-container"></div>
<div id="note-preview"></div>
<%= @post.presenter.image_html(self) %>
</section>
<% end -%>
<% if CurrentUser.is_member? %>
<%= content_tag(:div, class: "fav-buttons fav-buttons-#{@post.is_favorited?}") do %>