1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/app/views/social_bot/project.html.erb

35 lines
1.2 KiB
Plaintext
Raw Normal View History

<%
if @project.project_image
image = @project.project_image.attachment.medium
width, height = image.dimensions
end
%>
2016-07-28 17:44:58 +02:00
<!DOCTYPE html>
<html lang="<%= I18n.locale %>">
2016-07-28 17:44:58 +02:00
<head>
<meta charset="utf-8">
<!-- Facebook Open Graph -->
2016-07-28 17:44:58 +02:00
<meta property="og:title" content="<%= @project.name %>"/>
<meta property="og:description" content="<%= strip_tags(@project.description) %>"/>
<% if @project.project_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 %>
<meta property="fb:app_id" content="<%= Setting.get('facebook_app_id') %>" />
<meta property="og:url" content="<%= root_url+'#!/projects/'+@project.slug %>" />
<!-- Twitter Cards-->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="<%= Setting.get('twitter_analytics') %>">
<meta name="twitter:title" content="<%= @project.name %>">
<meta name="twitter:description" content="<%= strip_tags(@project.description) %>">
<% if @project.project_image %>
<meta name="twitter:image" content="<%= root_url+image.url %>">
<% end %>
2016-07-28 17:44:58 +02:00
</head>
2020-05-27 12:29:45 +02:00
</html>