-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path_training.html.erb
35 lines (35 loc) · 1.05 KB
/
_training.html.erb
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
<tr>
<% speakers = data.program.speakers.select {|spk| training.speakers.include? spk.ident} %>
<td>
<% speakers.each do |speaker| %>
<% if speakers.length > 1 %>
<%= image_tag "speakers/#{speaker.image}", class: "spkPic_multiple" %>
<% else %>
<%= image_tag "speakers/#{speaker.image}", class: "spkPic2" %>
<% end %>
<% end %>
</td>
<td class="abstract" id="<%= training.slug %>">
<h4>
<a href="#<%= training.slug %>" class=plainlink><%= training.title %></a>
</h4>
<h5><% if training.focus %> <%= training.focus %>, <% end %>By
<% speakers.each_with_index do |speaker, idx| %>
<% if idx != 0 %> , <% end %>
<% if speaker.twitter %>
<%= link_to speaker.name, "http://www.twitter.com/#{speaker.twitter}" %>
<% else %>
<%= link_to speaker.name, "http://github.com/#{speaker.github}" %>
<% end %>
<% end %>
</h5>
<p>
<%= training.abstract %>
</p>
</td>
</tr>
<tr>
<td colspan="2">
<hr />
</td>
</tr>