member plugin init edit

This commit is contained in:
chris committed 2013-02-21 17:53:08 +08:00
commit 680d7908b9
234 files changed
+2085 -3308

No files matched your search

@@ -225,7 +225,7 @@ class Panel::PersonalHonor::BackEnd::HonorsController < OrbitBackendController
def delete
if params[:ids]
honors = Honor.any_in(:_id => params[:ids]).delete_all
honors = Honor.any_in(:_id => params[:ids]).destroy_all
end
redirect_to panel_personal_honor_back_end_honors_url(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options])
end
@@ -201,7 +201,7 @@ class Panel::PersonalHonor::Plugin::HonorsController < OrbitBackendController
def delete
if params[:ids]
honors = Honor.any_in(:_id => params[:ids]).delete_all
honors = Honor.any_in(:_id => params[:ids]).destroy_all
end
redirect_to panel_personal_honor_plugin_honors_url(:direction => params[:direction], :sort => params[:sort], :sort_options => params[:sort_options])
end
+1 -1
View File
@@ -35,7 +35,7 @@ class Honor
before_validation :add_http
validates :url, :format => /^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix, :unless => Proc.new{self.url.blank?}
validates :url, :format => /^(http|https):\/\/(([a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5})|((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))(:[0-9]{1,5})?(\/.*)?/i, :unless => Proc.new{self.url.blank?}
def self.search( category_id = nil )
+1 -2
View File
@@ -1,11 +1,10 @@
module PersonalHonor
OrbitApp.registration "PersonalHonor",:type=> 'ModuleApp' do
OrbitApp.registration "Honor",:type=> 'ModuleApp' do
module_label 'module_name.personal_honor'
base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true,:path=>"panel/personal_honor/plugin/profile",:admin_path=>"/panel/personal_honor/back_end/honors",:i18n=>'module_name.personal_honor'
end
end