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.
orbit-4-1/app/controllers/admin/plugins_controller.rb

28 lines
612 B
Ruby

class Admin::PluginsController < ApplicationController
layout "new_admin"
def index
@plugins = OrbitApp::Plugin::Registration.all
if(!params[:show_plugin_profile].nil?)
@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
@right_partial = "admin/users_new_interface/plugin_summary"
end
else
@right_partial = "admin/users_new_interface/plugin_summary"
end
end
end