Skip to content

Commit

Permalink
devrooms: add call for papers links from database
Browse files Browse the repository at this point in the history
  • Loading branch information
kergon committed Dec 4, 2020
1 parent 9a3e1af commit 0bcf942
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions layouts/schedule/track.html
Expand Up @@ -147,6 +147,15 @@
</tbody>
</table>

<%
cfp = item[:conference_call_for_papers_url]
if cfp
%>
<div class="well well-small track-cfp">
<p>Read the Call for Papers at <a href="<%= cfp %>"><%= cfp %></a>.</p>
</div>
<% end %>

<%
description = $item_by_id["/schedule/devrooms/#{item[:slug]}/"]
if description
Expand Down
2 changes: 1 addition & 1 deletion lib/helpers/pentabarf.rb
Expand Up @@ -705,7 +705,7 @@ def dblist(q, params = [])
'maintrack'
end

slugify!(model(t, [:name, :title, :type, :conference_track_id, :conference_track, :rank]), :name)
slugify!(model(t, [:name, :title, :type, :conference_track_id, :conference_track, :rank, :conference_call_for_papers_url]), :name)
end
end
log(:high, "loaded #{list.size} tracks", Time.now - time_before)
Expand Down

0 comments on commit 0bcf942

Please sign in to comment.