class PanelPicture < ActiveRecord::Base
+ include Element
+ include ElementInspire
belongs_to :panel
belongs_to :picture
end
end
+ def self.list_opt_for_panel
+ {
+ :panel_pictures => {
+ :picture => {:artist => {}, :license => {}}
+ }
+ }
+ end
+
+ def self.show_opt_for_panel
+ {
+ :panel_pictures => {
+ :picture => {:artist => {}, :license => {}}
+ }
+ }
+ end
+
+ def self.json_opt_for_panel
+ {
+ :picture => {:artist => {}, :license => {}}
+ }
+ end
+
+ def self.has_picture?
+ true
+ end
+
def visible? roles
if MagicNumber['run_mode'] == 0
return false unless guest_role_check(roles)
self.panel.remove_element(self, au)
end
- def copy from_panel
- r = PanelPicture.new self.attributes
- r.panel_id = from_panel.id
- r.t = r.panel.new_t
- r.z = r.panel.new_z
- r
- end
-
def scenario
if caption.blank?
''