Tracks aligned based on count
This commit is contained in:
parent
3cf41b51c2
commit
75333d7c60
1 changed files with 4 additions and 4 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue