OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
e
[pettanr/pettanr.git]
/
app
/
models
/
panel.rb
diff --git
a/app/models/panel.rb
b/app/models/panel.rb
index
2429e8a
..
1c81e69
100644
(file)
--- a/
app/models/panel.rb
+++ b/
app/models/panel.rb
@@
-68,6
+68,13
@@
class Panel < Peta::Content
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