Add Brief intro. for all personal plugins
Add Share Setting for Personal Plugins ( if have old data must be add default value "field: is_hidden => false " ) Apply New UI to Member Plugin Edit Page Personal Plugin Summary fix Academic Info. list fix
This commit is contained in:
1 parent
b487740035
commit
a067bcd304
159 files changed
+5145
-3453
No files matched your search
@@ -14,6 +14,13 @@ module OrbitApp
|
||||
@@registrations << DataSheet.new(name,args,:base_path=>base_path)
|
||||
end
|
||||
|
||||
def find_by_app_name(name)
|
||||
@@registrations.each{|t|
|
||||
return t if t.app_name == name
|
||||
}
|
||||
return nil
|
||||
end
|
||||
|
||||
def find_by_key(key)
|
||||
@@registrations.each{|t|
|
||||
return t if t.name == key
|
||||
@@ -46,6 +53,8 @@ module OrbitApp
|
||||
def initialize(name,partial=nil,*args ,&block)
|
||||
@base_path = args[0][:base_path]
|
||||
@name = partial[0][:i18n].nil? ? name : lambda{ I18n.t(partial[0][:i18n]) }
|
||||
@app_name = partial[0][:app_name]
|
||||
@intro_app_name = partial[0][:intro_app_name]
|
||||
@partial_path = ''
|
||||
@front_partial_path = ''
|
||||
@admin_partial_path = ''
|
||||
@@ -59,6 +68,14 @@ module OrbitApp
|
||||
block.arity < 1 ? instance_eval(&block) : block.call(self) if block_given?
|
||||
end
|
||||
|
||||
def app_name
|
||||
return @app_name
|
||||
end
|
||||
|
||||
def intro_app_name
|
||||
return @intro_app_name
|
||||
end
|
||||
|
||||
def profile_partial_path
|
||||
return @partial_path
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user