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>

View File

@@ -23,6 +23,14 @@
<p id="notice"><%= notice %></p>
<% link_to "Zurück", @thema.themengruppe %>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/de_DE/sdk.js#xfbml=1&appId=120379864660921&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<% thema=@thema %><div class="content-wrap content-column" >
@@ -44,6 +52,8 @@
</ul>
</div>
<div class="fb-like" data-href"<%= thema_url(@thema,{theme: nil, locale: nil})%>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
<br>
<div class="">