Skip to content

Commit

Permalink
Don't show attachment type
Browse files Browse the repository at this point in the history
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 committed Jan 12, 2025
1 parent b6499da commit bac6b49
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 bac6b49

Please sign in to comment.