orbit-4-2/app/helpers/admin/plugins_helper.rb

31 lines
743 B
Ruby
Raw Normal View History

module Admin::PluginsHelper
def render_plugin_list
ret = ''
ret << "<div class=\"subnav\">"
ret << "<div id=\"module-nav\">"
ret << "<div class=\"arrow_next pull-right\"><i class=\"icon-chevron-right\"></i></div>"
ret << "<div class=\"arrow_prev pull-left\"><i class=\"icon-chevron-left\"></i></div>"
ret << "<div class=\"module-nav-view\">"
ret << "<ul class=\"nav nav-pills\">"
@plugins.each do |plugin|
ret << "<li>"
ret << (link_to eval("#{plugin.title}") , eval("panel_#{plugin.title}_back_end_#{plugin.object}s_path")) rescue nil
ret << "</li>"
end
ret << "</ul>"
ret << "</div>"
ret << "</div>"
ret << "</div>"
ret.html_safe
end
end