Class: Kuhsaft::TwoColumnBrick
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from BrickList
#allowed_brick_types, #brick_types, #collect_fulltext, included, #to_brick_item_id, #to_brick_list_id, #uploader?
Methods inherited from Brick
#available_display_styles, #backend_label, #brick_list_type, #has_siblings?, #parents, #set_position, #to_edit_childs_partial_path, #to_edit_partial_path, #to_style_id, #update_fulltext
Class Method Details
.partitionings ⇒ Object
35
36
37
|
# File 'app/models/kuhsaft/two_column_brick.rb', line 35
def self.partitionings
[Partition.new('70/30', 0), Partition.new('50/50', 1), Partition.new('30/70', 2)]
end
|
Instance Method Details
#partitioning ⇒ Object
31
32
33
|
# File 'app/models/kuhsaft/two_column_brick.rb', line 31
def partitioning
super || 0
end
|
#renders_own_childs? ⇒ Boolean
Use own rendering implementation to show columns side by side
27
28
29
|
# File 'app/models/kuhsaft/two_column_brick.rb', line 27
def renders_own_childs?
true
end
|
#to_style_class ⇒ Object
39
40
41
|
# File 'app/models/kuhsaft/two_column_brick.rb', line 39
def to_style_class
[super, 'row-fluid'].join(' ')
end
|
#user_can_add_childs? ⇒ Boolean
Childs should only contain ColumnBricks, therefore we don’t want the user to mess with it
12
13
14
|
# File 'app/models/kuhsaft/two_column_brick.rb', line 12
def user_can_add_childs?
false
end
|
#user_can_delete? ⇒ Boolean
16
17
18
|
# File 'app/models/kuhsaft/two_column_brick.rb', line 16
def user_can_delete?
true
end
|
#user_can_save? ⇒ Boolean
20
21
22
|
# File 'app/models/kuhsaft/two_column_brick.rb', line 20
def user_can_save?
true
end
|