houdini/app/views/events/stats.html.erb

40 lines
1.6 KiB
Text
Raw Normal View History

2020-06-12 20:03:43 +00:00
<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
<%= content_for(:title) {"#{@event.name} - #{@event.nonprofit.name}".html_safe} %>
2019-08-19 17:55:38 +00:00
<%= content_for(:meta_description) {@event.summary} %>
<%= content_for(:stylesheets) {stylesheet_link_tag 'events/stats/page'} %>
<% content_for(:footer_hidden) {'hidden'} %>
<% content_for(:fixed_position_cta_hidden) {'hidden'} %>
<%= content_for :facebook_tags do %>
<meta property="og:title" content="<%= raw @event.name %>" />
<meta property="og:description" content="<%= raw @event.summary %>" />
<meta property="og:image" content="<%= @event.main_image.attached? ? rails_storage_proxy_url(@event.main_image_by_size(:normal)) : "" %>" />
<% end %>
<%= content_for :twitter_tags do %>
<meta property="twitter:title" content="<%= raw @event.name %>" />
<meta property="twitter:description" content="<%= raw @event.summary %>" />
<meta property="twitter:image" content="<%= @event.main_image.attached? ? rails_storage_proxy_url(@event.main_image_by_size(:normal)) : "" %>" />
<% end %>
<%= content_for :javascripts do %>
<script>
app.event_id = <%= @event.id %>
app.hide_activities = <%= @event.hide_activity_feed %>
app.event_background_image = '<%= @event_background_image %>'
</script>
2019-12-04 22:22:48 +00:00
<%= javascript_pack_tag 'i18n', 'page__events__stats' %>
<% end %>
<%= content_for :head do %>
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="canonical" href='<%= @url %>' />
<% end %>
<main>
<h1><a href="<%= @url %>"><%= @event.name %></a></h1>
<div id='container'>
</main>