Merge pull request #170 from gopesht/add_tracks_to_program_component

Added tracks to program component
This commit is contained in:
James Mason 2014-05-29 12:07:09 -07:00
commit 7311b0c40e
3 changed files with 13 additions and 1 deletions

View file

@ -74,7 +74,7 @@ class Conference < ActiveRecord::Base
# Checks if the user is registered to the conference
#
# ====Args
# * +user+ -> The user we check for
# * +user+ -> The user we check for
# ====Returns
# * +nil+ -> If the user doesn't exist
# * +false+ -> If the user is registered

View file

@ -13,3 +13,6 @@
%span You can find the complete schedule in our
%span
= link_to 'Master Schedule', conference_schedule_path(@conference.short_title), target: '_blank'
-if !@conference.tracks.blank?
= render 'tracks'

View file

@ -0,0 +1,9 @@
%div.row
%div.col-md-12
%h2 Tracks
- @conference.tracks.each do |t|
%div.col-md-4
%h4
= t.name
%p
= t.description