neuigkeiten Themen view fix

This commit is contained in:
Andreas Stephanides
2015-02-25 11:42:12 +01:00
parent 564c355d2d
commit ad375d6c10
4 changed files with 37 additions and 19 deletions

View File

@@ -1,6 +1,8 @@
<% if can? :show, small %>
<a name="thema_<%=small.id%>" href="#<%=small.id%>">
<h2><%= link_to small.title,small %> <%= link_to fa_icon("pencil"), verwalten_thema_path(small) if can? :edit, small %> </h2>
<div itemscope itemtype="http://schema.org/Article">
<meta itemprop="sameAs" content="<%= thema_url(thema, {theme:nil, locale:nil})%>"/>
<h2><span itemprop="name"><%= link_to small.title,small %></span> <%= link_to fa_icon("pencil"), verwalten_thema_path(small) if can? :edit, small %> </h2>
</a>
<%= image_tag small.titlepics.first.datei.url unless small.titlepics.first.nil? %>
<% if small.is_outdated? %>
@@ -68,3 +70,4 @@
<% else %>
Error
<% end %>
</div>