mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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
|
||||
%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
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
- unless @conference.description.blank?
|
||||
%p= @conference.description
|
||||
%section{ id: 'program' }
|
||||
%section{ id: 'program' }
|
||||
.pad
|
||||
= render 'program'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue