neuigkeiten show fix

This commit is contained in:
Andreas Stephanides
2014-10-19 15:44:19 +02:00
parent 64f6c86e0f
commit 94d9653ae2
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<%= content_for :header do %>
<title>Fetsite - <%= @neuigkeit.title %> (<%= @neuigkeit.rubrik.name %>)</title>
<% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) %>
<% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) unless @neuigkeit.author.fetprofile.nil? %>
<% set_meta_tags :og => {
:image => @neuigkeit.picture.url.to_s,
:title => @neuigkeit.title.to_s + " (" + @neuigkeit.rubrik.name.to_s + ")",