Previously the link functionality (open in window or tab) of those talks was done via javascript. Because of that they couldn't be selected via right click to be opened in a tab, copied or bookmarked. By embedding the talk items into a link element and adding some css to hide the link effects, like hover and underline, we get the desired behaviour without changing it's appearance.
32 lines
1.2 KiB
Text
32 lines
1.2 KiB
Text
<td style="width: <%= 95 / @rooms.length %>%; cursor:pointer"
|
|
rowspan ="<%= span[room.id] %>"
|
|
class="event" role="button">
|
|
<a class="unstyled-link" href="<%= url_for(conference_proposal_path(@conference.short_title, event[0].id)) %>" >
|
|
<%- if speaker = event[0].speakers.first %>
|
|
<%= image_tag speaker.gravatar_url, :class => "img-circle pull-right",
|
|
:alt => speaker.name,
|
|
:title => speaker.name,
|
|
:style => "padding:8px;" %>
|
|
<%- end %>
|
|
<h5>
|
|
<span class="fa fa-comment"></span>
|
|
<%= event[0].title %>
|
|
<% unless event[0].subtitle.blank? %>
|
|
<span class="schedule-subtitle">
|
|
<%= event[0].subtitle %>
|
|
<span>
|
|
<% end %>
|
|
</h5>
|
|
<span class="schedule-speaker">
|
|
<span class="fa fa-user"></span>
|
|
<%= "#{speaker.name}" %>
|
|
</span>
|
|
<% if event[0].track%>
|
|
<span class="schedule-track">
|
|
<span class="fa fa-road"></span>
|
|
<span class="label" style="background-color:<%= event[0].track.color if event[0].track %>"><%= event[0].track.name %></span>
|
|
</span>
|
|
<% end -%>
|
|
</a>
|
|
</td>
|
|
|