init personal plugin
This commit is contained in:
parent
9e65a5882e
commit
eb2c6d6f19
|
@ -0,0 +1,4 @@
|
||||||
|
en:
|
||||||
|
module_name:
|
||||||
|
activity: "Activity"
|
||||||
|
personal_activity: "Activity"
|
|
@ -0,0 +1,4 @@
|
||||||
|
zh_tw:
|
||||||
|
module_name:
|
||||||
|
activity: "教師參與展演活動"
|
||||||
|
personal_activity: "教師參與展演活動"
|
|
@ -0,0 +1,22 @@
|
||||||
|
module PersonalActivity
|
||||||
|
class Engine < ::Rails::Engine
|
||||||
|
initializer "personal_activity" do
|
||||||
|
OrbitApp.registration "PersonalActivity",:type=> 'ModuleApp' do
|
||||||
|
module_label 'module_name.personal_activity'
|
||||||
|
base_url File.expand_path File.dirname(__FILE__)
|
||||||
|
personal_plugin :enable => true, :sort_number => '6', :app_name=>"Activity", :intro_app_name=>"PersonalActivityIntro",:path=>"/plugin/personal_activity/profile",:front_path=>"/profile",:admin_path=>"/admin/activities",:i18n=>'module_name.personal_activity', :module_app_name=>'PersonalActivity', :one_line_title => true, :field_modifiable => true, :analysis => true, :analysis_path => "/admin/activities/analysis"
|
||||||
|
|
||||||
|
version "0.1"
|
||||||
|
desktop_enabled true
|
||||||
|
organization "Rulingcom"
|
||||||
|
author "RD dep"
|
||||||
|
intro "I am intro"
|
||||||
|
update_info 'some update_info'
|
||||||
|
|
||||||
|
frontend_enabled
|
||||||
|
data_count 1..10
|
||||||
|
icon_class_no_sidebar "icons-user"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,23 @@
|
||||||
|
$:.push File.expand_path("../lib", __FILE__)
|
||||||
|
|
||||||
|
# Maintain your gem's version:
|
||||||
|
require "personal_activity/version"
|
||||||
|
|
||||||
|
# Describe your gem and declare its dependencies:
|
||||||
|
Gem::Specification.new do |s|
|
||||||
|
s.name = "personal_activity"
|
||||||
|
s.version = PersonalActivity::VERSION
|
||||||
|
s.authors = ["Ruling Digital Inc."]
|
||||||
|
s.email = ["orbit@rulingcom.com"]
|
||||||
|
s.homepage = "http://www.rulingcom.com"
|
||||||
|
s.summary = "Summary of PersonalActivity."
|
||||||
|
s.description = "Description of PersonalActivity."
|
||||||
|
s.license = "MIT"
|
||||||
|
|
||||||
|
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
|
||||||
|
s.test_files = Dir["test/**/*"]
|
||||||
|
|
||||||
|
#s.add_dependency "rails", "~> 4.1.16"
|
||||||
|
|
||||||
|
#s.add_development_dependency "sqlite3"
|
||||||
|
end
|
Loading…
Reference in New Issue