mirror of
https://github.com/zhigang1992/rmq.git
synced 2026-01-12 22:51:53 +08:00
Updated table template to make it simpler, no need for extra stylesheet for the view, it just makes it overly complicated
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
module <%= @name_camel_case %>CellStylesheet
|
||||
def <%= @name %>_cell_height
|
||||
80
|
||||
end
|
||||
|
||||
def <%= @name %>_cell(st)
|
||||
# Style overall cell here
|
||||
st.background_color = color.random
|
||||
end
|
||||
|
||||
def cell_label(st)
|
||||
st.color = color.black
|
||||
end
|
||||
end
|
||||
@@ -1,7 +1,5 @@
|
||||
class <%= @name_camel_case %>ControllerStylesheet < ApplicationStylesheet
|
||||
|
||||
include <%= @name_camel_case %>CellStylesheet
|
||||
|
||||
def setup
|
||||
# Add stylesheet specific setup stuff here.
|
||||
# Add application specific setup stuff in application_stylesheet.rb
|
||||
@@ -10,4 +8,17 @@ class <%= @name_camel_case %>ControllerStylesheet < ApplicationStylesheet
|
||||
def table(st)
|
||||
st.background_color = color.gray
|
||||
end
|
||||
|
||||
def <%= @name %>_cell_height
|
||||
80
|
||||
end
|
||||
|
||||
def <%= @name %>_cell(st)
|
||||
# Style overall cell here
|
||||
st.background_color = color.random
|
||||
end
|
||||
|
||||
def cell_label(st)
|
||||
st.color = color.black
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user