Merge pull request #249 from gopesht/fix_tracks_alignment
Tracks aligned based on count
This commit is contained in:
commit
af7be2b295
2 changed files with 5 additions and 5 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
%div.row
|
%div.row.text-center
|
||||||
%div.col-md-12
|
%div.col-md-12
|
||||||
%h2 Tracks
|
%h2 Tracks
|
||||||
- @conference.tracks.each do |t|
|
- @conference.tracks.each do |t|
|
||||||
%div.col-md-4
|
%div{ class: (@conference.tracks.count.to_i <= 2 ? "col-md-#{12/@conference.tracks.count.to_i}" : "col-md-4") }
|
||||||
%h4
|
%h4
|
||||||
= t.name
|
= t.name
|
||||||
%p
|
%p
|
||||||
= t.description
|
= t.description
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
- unless @conference.description.blank?
|
- unless @conference.description.blank?
|
||||||
%p= @conference.description
|
%p= @conference.description
|
||||||
%section{ id: 'program' }
|
%section{ id: 'program' }
|
||||||
.pad
|
.pad
|
||||||
= render 'program'
|
= render 'program'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue