#コマ
class Panel < Peta::Content
+ load_manifest
belongs_to :author
has_many :scroll_panels
has_many :sheet_panels
self.publish > 0
end
+ # ground_picture element template
+ def style_wh
+ {
+ 'width' => self.width.to_s + 'px', 'height' => self.height.to_s + 'px'
+ }
+ end
+
def tag_id c = nil
'panel' + self.tag_panel_id + c.to_s
end