fetprofile picture url

This commit is contained in:
Andreas Stephanides
2014-11-13 10:33:19 +01:00
parent fd4bd81e96
commit 5ee1b68d6e

View File

@@ -1,8 +1,13 @@
<%= content_for :header do %> <%= content_for :header do %>
<title>Fetsite - <%= @fetprofile.name %></title> <title>Fetsite - <%= @fetprofile.name %></title>
<% unless @fetprofile.picture.url.nil?
picture_url=URI(root_url)
picture_url.path=@fetprofile.picture.portrait.url
end
%>
<% set_meta_tags :og => { <% set_meta_tags :og => {
:image => @fetprofile.picture.portrait.url.to_s, :image => picture_url.to_s,
:title => @fetprofile.name.to_s , :title => @fetprofile.name.to_s ,
:type => "profile", :type => "profile",
:url=>fetprofile_url(@fetprofile,:theme=>nil), :url=>fetprofile_url(@fetprofile,:theme=>nil),