This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2012-09-13 10:13:34 +00:00
|
|
|
class Admin::PluginsController < ApplicationController
|
|
|
|
|
|
|
|
layout "new_admin"
|
|
|
|
|
|
|
|
def index
|
|
|
|
|
2013-02-20 09:25:20 +00:00
|
|
|
@plugins = OrbitApp::Plugin::Registration.all
|
2012-10-15 07:30:48 +00:00
|
|
|
|
|
|
|
if(!params[:show_plugin_profile].nil?)
|
2013-02-20 03:12:08 +00:00
|
|
|
|
|
|
|
@right_partial = OrbitApp::Plugin::Registration.find_by_key(params[:show_plugin_profile]).admin_partial_path
|
|
|
|
|
|
|
|
if !@right_partial.blank?
|
|
|
|
respond_to do |format|
|
|
|
|
format.html { redirect_to( @right_partial ) }
|
|
|
|
end
|
|
|
|
else
|
2013-03-07 09:59:53 +00:00
|
|
|
@right_partial = ""
|
2013-02-20 03:12:08 +00:00
|
|
|
end
|
|
|
|
|
2012-10-15 07:30:48 +00:00
|
|
|
else
|
2013-03-07 09:59:53 +00:00
|
|
|
@right_partial = ""
|
2012-10-15 07:30:48 +00:00
|
|
|
end
|
2012-09-13 10:13:34 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|