2016-10-11 16:07:34 +02:00
|
|
|
<%
|
|
|
|
if @event.event_image
|
|
|
|
image = @event.event_image.attachment.medium
|
|
|
|
width, height = image.dimensions
|
|
|
|
end
|
|
|
|
%>
|
2016-07-28 17:44:58 +02:00
|
|
|
|
|
|
|
<!DOCTYPE html>
|
2016-08-01 16:19:50 +02:00
|
|
|
<html lang="<%= I18n.locale %>">
|
2016-07-28 17:44:58 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2016-08-01 15:45:56 +02:00
|
|
|
|
|
|
|
<!-- Facebook Open Graph -->
|
2016-08-01 16:19:50 +02:00
|
|
|
<meta property="og:title" content="<%= @event.title %>"/>
|
2018-01-09 15:02:45 +01:00
|
|
|
<meta property="og:description" content="<%= strip_tags(@event.description) %>"/>
|
2016-10-11 16:07:34 +02:00
|
|
|
<% if @event.event_image %>
|
|
|
|
<meta property="og:image" content="<%= root_url+image.url %>"/>
|
|
|
|
<meta property="og:image:width" content="<%= width%>" />
|
|
|
|
<meta property="og:image:height" content="<%=height%>" />
|
|
|
|
<% end %>
|
2020-05-27 12:29:45 +02:00
|
|
|
<meta property="fb:app_id" content="<%= Setting.get('facebook_app_id') %>" />
|
2016-08-01 16:19:50 +02:00
|
|
|
<meta property="og:url" content="<%= root_url+'#!/events/'+@event.id.to_s %>" />
|
2016-08-01 15:45:56 +02:00
|
|
|
|
|
|
|
<!-- Twitter Cards-->
|
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
2020-05-27 15:39:39 +02:00
|
|
|
<meta name="twitter:site" content="<%= Setting.get('twitter_analytics') %>">
|
2016-08-01 16:19:50 +02:00
|
|
|
<meta name="twitter:title" content="<%= @event.title %>">
|
2017-09-26 15:48:47 +02:00
|
|
|
<meta name="twitter:description" content="<%= strip_tags(@event.description) %>">
|
2016-10-11 16:07:34 +02:00
|
|
|
<% if @event.event_image %>
|
|
|
|
<meta name="twitter:image" content="<%= root_url+image.url %>">
|
|
|
|
<% end %>
|
2016-08-01 15:45:56 +02:00
|
|
|
|
2016-07-28 17:44:58 +02:00
|
|
|
</head>
|
2020-05-27 12:29:45 +02:00
|
|
|
</html>
|