Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit b9645b5

Browse files
committed
Show session video and session links
1 parent 0d34e93 commit b9645b5

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

app/assets/stylesheets/not_a_conf/style.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,8 +1698,14 @@ ul.navbar-nav > li.header-ticket:hover > a:after {
16981698

16991699
.schedule-slot-speaker-link + .schedule-slot-speaker-link {
17001700
right: -20px;
1701+
transition: right 0.1s ease-in-out;
17011702
}
17021703

1704+
.schedule-slot-info:hover .schedule-slot-speaker-link + .schedule-slot-speaker-link {
1705+
right: -70px;
1706+
}
1707+
1708+
17031709
.schedule-slot-speakers {
17041710
width: 58px;
17051711
height: 58px;
@@ -3371,3 +3377,11 @@ label {
33713377
margin-right: 0px;
33723378
}
33733379
}
3380+
3381+
.schedule-media {
3382+
color: #000000;
3383+
3384+
&:hover {
3385+
color: #ea531c;
3386+
}
3387+
}

app/views/themes/not_a_conf/events/_schedule.html.erb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<% session.speakers.each do |speaker| %>
1818
<% if speaker.photo.attached? %>
1919
<span class="schedule-slot-speaker-link">
20-
<%= image_tag speaker.photo.variant(resize: '58'), class: 'schedule-slot-speakers' %>
20+
<%= attachment_image_tag speaker.photo, size: 58, class: 'schedule-slot-speakers' %>
2121
</span>
2222
<% end %>
2323
<% end %>
@@ -31,6 +31,16 @@
3131
<% if session.description? %>
3232
<p class="schedule-slot-desc"><%= session.description %></p>
3333
<% end %>
34+
<% if session.video_url? %>
35+
<%= link_to session.video_url, target: '_blank', class: 'schedule-media' do %>
36+
<i class="fa fa-file-video-o"></i> Video
37+
<% end %>
38+
<% end %>
39+
<% if session.slides_url? %>
40+
<%= link_to session.slides_url, target: '_blank', class: 'schedule-media' do %>
41+
<i class="fa fa-file-o"></i> Slides
42+
<% end %>
43+
<% end %>
3444
</div>
3545
</div>
3646
</div>

0 commit comments

Comments
 (0)