fix image container html
This commit is contained in:
@@ -19,7 +19,7 @@ class TagSetPresenter < Presenter
|
|||||||
html = ""
|
html = ""
|
||||||
|
|
||||||
if ordered_tags.present?
|
if ordered_tags.present?
|
||||||
html << '<ul itemscope itemtype="http://schema.org/ImageObject">'
|
html << '<ul>'
|
||||||
ordered_tags.each do |tag|
|
ordered_tags.each do |tag|
|
||||||
html << build_list_item(tag, current_query: current_query, show_extra_links: show_extra_links, name_only: name_only)
|
html << build_list_item(tag, current_query: current_query, show_extra_links: show_extra_links, name_only: name_only)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<ul itemscope itemtype="http://schema.org/ImageObject">
|
<ul>
|
||||||
<li>ID: <%= post.id %></li>
|
<li>ID: <%= post.id %></li>
|
||||||
<li>Top Tagger: <%= link_to_user(post.keeper) %></li>
|
<li>Top Tagger: <%= link_to_user(post.keeper) %></li>
|
||||||
<% if CurrentUser.is_moderator? %>
|
<% if CurrentUser.is_moderator? %>
|
||||||
|
|||||||
@@ -47,11 +47,11 @@
|
|||||||
|
|
||||||
<%= render "posts/partials/show/notices", :post => @post %>
|
<%= 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-container"></div>
|
||||||
<div id="note-preview"></div>
|
<div id="note-preview"></div>
|
||||||
<%= @post.presenter.image_html(self) %>
|
<%= @post.presenter.image_html(self) %>
|
||||||
</section>
|
<% end -%>
|
||||||
|
|
||||||
<% if CurrentUser.is_member? %>
|
<% if CurrentUser.is_member? %>
|
||||||
<%= content_tag(:div, class: "fav-buttons fav-buttons-#{@post.is_favorited?}") do %>
|
<%= content_tag(:div, class: "fav-buttons fav-buttons-#{@post.is_favorited?}") do %>
|
||||||
|
|||||||
Reference in New Issue
Block a user