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:
Todd Werth
2014-12-12 14:12:38 -08:00
parent e82db1496b
commit 2cc0644fd7
2 changed files with 13 additions and 16 deletions

View File

@@ -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

View File

@@ -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