forked from bofh/fetsite
neuigkeiten Themen view fix
This commit is contained in:
@@ -1,27 +1,32 @@
|
||||
<div class="media">
|
||||
<div class="media" itemscope itemtype="http://schema.org/Article">
|
||||
<meta itemprop="sameAs" content="<%= rubrik_neuigkeit_path(neuigkeit.rubrik,neuigkeit, {theme: nil,locale: nil})%>"/>
|
||||
<div class="pull-left" href="#">
|
||||
<p><br><%= image_tag neuigkeit.picture.thumb.url unless neuigkeit.picture.url.nil? %>
|
||||
</p>
|
||||
<p><br>
|
||||
<% unless neuigkeit.picture.url.nil? %><%= image_tag neuigkeit.picture.thumb.url %> <meta imageprop="thumbnailUrl" content="<%= neuigkeit.picture.thumb.url%>"/>
|
||||
<% end %> </p>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<div>
|
||||
<small><%= ff_icon(neuigkeit.rubrik.icon) unless neuigkeit.rubrik.icon.nil? or neuigkeit.rubrik.icon.empty? %> <%= neuigkeit.rubrik.name %></small>
|
||||
<% unless neuigkeit.has_calentries? %> <small class="pull-right"> <%= I18n.t("neuigkeit.am")+" "+ I18n.l(neuigkeit.try(:datum).try(:to_date)) unless neuigkeit.try(:datum).try(:to_date).nil? %></small> <% end %>
|
||||
<small><%= ff_icon(neuigkeit.rubrik.icon) unless neuigkeit.rubrik.icon.nil? or neuigkeit.rubrik.icon.empty? %> <span itemprop="articleSection"><%= neuigkeit.rubrik.name %></span></small>
|
||||
<% unless neuigkeit.has_calentries? %> <small class="pull-right"><% unless neuigkeit.try(:datum).try(:to_date).nil? %>
|
||||
<%= I18n.t("neuigkeit.am") %>
|
||||
<span itemprop="datePublished" datetime="<%= neuigkeit.try(:datum).to_formatted_s(:iso8601)%>"> <%= I18n.l(neuigkeit.try(:datum).try(:to_date))%> </span>
|
||||
<% end %> </small> <% else %> <meta itemprop="datePublished" content="<%= neuigkeit.try(:datum).to_formatted_s(:iso8601) %>"/> <% end %>
|
||||
</div>
|
||||
<h1>
|
||||
<h1 itemprop="name">
|
||||
<%= neuigkeit.title%>
|
||||
</h1>
|
||||
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%>
|
||||
</h1><div itemprop="description">
|
||||
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%></div>
|
||||
</div>
|
||||
<% if neuigkeit.has_calentries? %>
|
||||
<div class="pull-right" href="#">
|
||||
<%= fa_icon("calendar 2x") %>
|
||||
<% unless neuigkeit.calentries.upcoming.empty? %>
|
||||
<%= neuigkeit.calentries.upcoming.first.text %>
|
||||
<% else unless neuigkeit.calentries.recent.empty? %>
|
||||
<%= neuigkeit.calentries.recent.first.text %>
|
||||
<% end %><% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="pull-right" href="#">
|
||||
<%= fa_icon("calendar 2x") %>
|
||||
<% unless neuigkeit.calentries.upcoming.empty? %>
|
||||
<%= neuigkeit.calentries.upcoming.first.text %>
|
||||
<% else unless neuigkeit.calentries.recent.empty? %>
|
||||
<%= neuigkeit.calentries.recent.first.text %>
|
||||
<% end %><% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -70,7 +70,7 @@ end
|
||||
<%= render ce unless ce.nil? %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="fb-like" data-href"<%= rubrik_neuigkeit_url(@rubrik,@neuigkeit)%>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
|
||||
<div class="fb-like" data-href"<%= rubrik_neuigkeit_url(@rubrik,@neuigkeit,{themes: nil, locale: nil})%>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
|
||||
|
||||
<% unless @neuigkeit.meeting.nil? %>
|
||||
<%= render @neuigkeit.meeting %>
|
||||
|
||||
Reference in New Issue
Block a user