Skip to content

Commit

Permalink
Attachment types (#276)
Browse files Browse the repository at this point in the history
* Don't show attachment type

Pretalx is not aware and all types are set to slides anyway (except
video, which is a link, not an attachment)
  • Loading branch information
johanvdw authored Jan 12, 2025
1 parent b6499da commit edc30ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions content/schedule/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ <h1><%= size %> Events</h1>
<td><%= e[:start_time] %></td>
<td><%= e[:end_time] %></td>
<td>
<% e[:attachments].each do |a| %>
<a href="<%=($item_by_id.fetch(a[:identifier])).path %>"><%= a[:type] %></a>
<% e[:attachments].each_with_index do |a, index| %>
<a href="<%=($item_by_id.fetch(a[:identifier])).path %>" title="<%=a[:title] %>">[<%= index + 1 %>]</a>
<% end %>
</td>
<td>
Expand Down
2 changes: 1 addition & 1 deletion layouts/schedule/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3>Attachments</h3>
'download'
end
%>
<li><i class="icon-<%= icon %>"></i> <a href="<%= ai.path %>"><%= title %> (<%= ai[:type] %>)</a></li>
<li><i class="icon-<%= icon %>"></i> <a href="<%= ai.path %>"><%= title %></a></li>
<% end %>
</ul>
<% end %>
Expand Down

0 comments on commit edc30ed

Please sign in to comment.