orbit-4-2/app/controllers/admin/plugins_controller.rb

26 lines
534 B
Ruby
Raw Permalink Normal View History

2014-03-20 07:08:54 +00:00
class Admin::PluginsController < OrbitMemberController
def index
@plugins = OrbitApp::Plugin::Registration.all
if(!params[:show_plugin_profile].nil?)
@right_partial = OrbitApp::Plugin::Registration.find_by_app_name(params[:show_plugin_profile]).admin_partial_path
if !@right_partial.blank?
respond_to do |format|
format.html { redirect_to( @right_partial ) }
end
else
@right_partial = ""
end
else
@right_partial = ""
end
end
end