mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54:03 +00:00
Merge pull request #170 from gopesht/add_tracks_to_program_component
Added tracks to program component
This commit is contained in:
commit
7311b0c40e
3 changed files with 13 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
9
app/views/conference/_tracks.html.haml
Normal file
9
app/views/conference/_tracks.html.haml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue