forked from bofh/fetsite
remove markup from neuigkeit snippet
This commit is contained in:
@@ -1,23 +1,20 @@
|
|||||||
<div class="media" itemscope itemtype="http://schema.org/Article">
|
<div class="media">
|
||||||
<meta itemprop="sameAs" content="<%= rubrik_neuigkeit_path(neuigkeit.rubrik,neuigkeit, {theme: nil,locale: nil})%>"/>
|
|
||||||
<meta itemprop="url" content="<%= rubrik_neuigkeit_path(neuigkeit.rubrik,neuigkeit, {theme: nil,locale: nil})%>"/>
|
|
||||||
|
|
||||||
<div class="pull-left" href="#">
|
<div class="pull-left" href="#">
|
||||||
<p><br>
|
<p><br>
|
||||||
<% unless neuigkeit.picture_robust.url.nil? %><%= image_tag neuigkeit.picture_robust.thumb.url %> <meta imageprop="thumbnailUrl" content="<%= neuigkeit.picture_robust.thumb.url%>"/>
|
<% unless neuigkeit.picture_robust.url.nil? %><%= image_tag neuigkeit.picture_robust.thumb.url %>
|
||||||
<% end %> </p>
|
<% end %> </p>
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<div>
|
<div>
|
||||||
<small><%= ff_icon(neuigkeit.rubrik.icon) unless neuigkeit.rubrik.icon.nil? or neuigkeit.rubrik.icon.empty? %> <span itemprop="articleSection"><%= neuigkeit.rubrik.name %></span></small>
|
<small><%= ff_icon(neuigkeit.rubrik.icon) unless neuigkeit.rubrik.icon.nil? or neuigkeit.rubrik.icon.empty? %> <span><%= neuigkeit.rubrik.name %></span></small>
|
||||||
<% unless neuigkeit.has_calentries? %> <small class="pull-right"><% unless neuigkeit.try(:datum).try(:to_date).nil? %>
|
<% unless neuigkeit.has_calentries? %> <small class="pull-right"><% unless neuigkeit.try(:datum).try(:to_date).nil? %>
|
||||||
<%= I18n.t("neuigkeit.am") %>
|
<%= I18n.t("neuigkeit.am") %>
|
||||||
<span itemprop="datePublished" datetime="<%= neuigkeit.try(:datum).to_formatted_s(:iso8601) unless neuigkeit.try(:datum).nil? %>"> <%= I18n.l(neuigkeit.try(:datum).try(:to_date))%> </span>
|
<span datetime="<%= neuigkeit.try(:datum).to_formatted_s(:iso8601) unless neuigkeit.try(:datum).nil? %>"> <%= I18n.l(neuigkeit.try(:datum).try(:to_date))%> </span>
|
||||||
<% end %> </small> <% else %> <meta itemprop="datePublished" content="<%= neuigkeit.try(:datum).to_formatted_s(:iso8601) unless neuigkeit.try(:datum).nil? %>"/> <% end %>
|
<% end %> </small> <% else %> <% end %>
|
||||||
</div>
|
</div>
|
||||||
<h1 itemprop="name">
|
<h1 >
|
||||||
<%= neuigkeit.title%>
|
<%= neuigkeit.title%>
|
||||||
</h1><div itemprop="description">
|
</h1><div>
|
||||||
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%></div>
|
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%></div>
|
||||||
</div>
|
</div>
|
||||||
<% if neuigkeit.has_calentries? %>
|
<% if neuigkeit.has_calentries? %>
|
||||||
|
|||||||
Reference in New Issue
Block a user