-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathshow.html.erb
More file actions
44 lines (38 loc) · 1.49 KB
/
show.html.erb
File metadata and controls
44 lines (38 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<% content_for(:ogp) do%>
<meta property="og:url" content="<%= request.original_url %>" />
<meta property="og:type" content="article" />
<meta property="og:title" content="<%= full_title(@talk.title) %>" />
<meta property="og:description" content="<%= @talk.abstract[0, 100] %>" />
<% if @talk.speakers.length != 0 %>
<meta property="og:image" content="<%= image_url @talk.speakers[0].avatar_or_dummy_url %>" />
<% end %>
<% end %>
<% provide(:title, @talk.title) %>
<div class="container white_background talk-page">
<div class="row my-3">
<div class="col-12 col-lg-8 main-pane">
<% if @conference.cfp_result_visible %>
<div class="alert alert-info">
<%= link_to 'CFPは終了しました。採択結果はこちら', talks_path %>
</div>
<% end %>
<%= render 'proposals/partial_show/col_main_pane', talk: @talk, conference: @conference %>
</div>
<div class="col-12 col-lg-4 sub-pane mt-3 mt-lg-0">
<%= render 'proposals/partial_show/col_sub_pane', talk: @talk %>
</div>
<% unless @conference.cfp_result_visible %>
<div class="col-12 p-3 other-talks">
<%= render 'proposals/partial_show/col_other_proposals', conference: @conference %>
</div>
<% end %>
</div>
</div>
<% if current_user %>
<script>
window.talk_id = "<%= @talk.id %>";
window.talk_name = "<%= @talk.title %>";
</script>
<%= javascript_include_tag 'talks.js' %>
<% end %>
<%= javascript_include_tag 'vote_cfp.js' %>