Merge pull request #249 from gopesht/fix_tracks_alignment

Tracks aligned based on count
This commit is contained in:
James Mason 2014-06-17 08:52:53 -07:00
commit af7be2b295
2 changed files with 5 additions and 5 deletions

View file

@ -1,8 +1,8 @@
%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