mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 14:11:10 +00:00
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
|
||||
%h2 Tracks
|
||||
- @conference.tracks.each do |t|
|
||||
%div.col-md-4
|
||||
%h4
|
||||
%div{ class: (@conference.tracks.count.to_i <= 2 ? "col-md-#{12/@conference.tracks.count.to_i}" : "col-md-4") }
|
||||
%h4
|
||||
= t.name
|
||||
%p
|
||||
= t.description
|
||||
= t.description
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue