style for front end

This commit is contained in:
Fu Matthew authored and Matt K. Fu committed 2013-04-17 11:05:57 +08:00
1 parent 5178ce3bde
commit 69a49a69aa
3 files changed
+20 -2

No files matched your search

+15 -2
View File
@@ -33,15 +33,20 @@ module OrbitApp
end
def to_module_app_format #For ModuleApp to fetch data
@frontend_pages.collect{|t| [t.get_i18n,t.name]}
result = {}
@frontend_pages.collect do |t|
result[t.name] = {:i18n=>t.get_i18n,:style=>t.get_style}
end
result
end
end
class AppPage
attr_reader :name
attr_reader :style
def initialize(name,&block)
@style
@name = name
@frontend_i18n = 'rulingcom.errors.init.app_page_noname'
block.arity < 1 ? instance_eval(&block) : block.call(self) if block_given?
@@ -59,6 +64,14 @@ module OrbitApp
end
def get_style
@style
end
def style(ary)# []
@style = ary
end
protected
end# of AppPage