34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
|
|
-if input.nbr_columns == 1 and admin == "dd"
|
|
-input.blocks.each do |block|
|
|
.block
|
|
=render :partial => "admin/blocks/block", :locals => {:block => block, :sortable => false}
|
|
.clear
|
|
|
|
-else
|
|
|
|
=raw '</div></div>' if !admin and input.portlet.block.blockable.class.to_s != "BlockContent"
|
|
|
|
- css_class = ""
|
|
- css_class = "gradient_background" if input.style == 2
|
|
- css_class = "orange_background" if input.style == 3
|
|
|
|
|
|
=raw "<div class='#{css_class}'>" if !admin
|
|
|
|
=raw "<div class='center'>" if input.style > 1 or input.style < 10
|
|
.row
|
|
-for i in 1..input.nbr_columns.to_i
|
|
%div{:class => "columns span_"+eval("input.row#{i}").to_s}
|
|
-if admin
|
|
=render :partial => "admin/blocks/block", :locals => {:admin => false,:block => input.blocks[i-1], :sortable => false}
|
|
-else
|
|
=render :partial => "public/blocks/block", :locals => {:admin => false, :block => input.blocks[i-1], :sortable => false}
|
|
.clear
|
|
|
|
=raw "</div>" if input.style > 1 or input.style < 10
|
|
=raw "</div>" if !admin
|
|
=raw '<div class="large"><div class="center">' if !admin and input.portlet.block.blockable.class.to_s != "BlockContent"
|
|
|
|
|
|
|