[% USE Api2; USE Dumper; SET CPANEL.CPVAR.dprefix = "../"; SET security_id = "../../../"; SET PageScripts = [ "${security_id}3rdparty/cloudlinux/cl-message-handler.js", "${security_id}3rdparty/cloudlinux/alt-selector.js", "${security_id}3rdparty/cloudlinux/alt-ruby-selector.js" ]; SET interpreters = Api2.exec('LVEInfo', 'getRubyInterpreters', {}); SET home_dir = Api2.exec('LVEInfo', 'getHomeDir', {}); SET selector = Api2.exec('LVEInfo', 'rubySelector', {}); SET list_domains = Api2.exec("Email", "listmaildomains"); SET is_ruby_enabled = Api2.exec('LVEInfo', 'isRubyEnabled', {}); %] [% css_code = PROCESS css_block %] [% js_code = PROCESS js_block %] [% WRAPPER '_assets/master.html.tt' app_key = 'lverubysel' # file attribute from dynamicuiconf page_title = "Setup Ruby App" # title of your window include_legacy_stylesheets = 1 include_legacy_scripts = 1 page_js = js_code page_styles = css_code -%] [% IF is_ruby_enabled.0 %]
[% INCLUDE 'ruby-selector-check.tmpl' %]
Setup new application
Ruby version
App Directory [% home_dir.0 %]/
App Domain/URI
[% INCLUDE "ruby-selector.tmpl" return_=selector %]
[% INCLUDE _assets/return_link.html.tt return_location='../index.html' return_link_text=locale.maketext('Go Back') %] [% ELSE %] Disabled [% END %] [% END # wrapper %] [% BLOCK css_block %] [% END # css_block END %] [% BLOCK js_block %] [% END # js_block END %] [%- # Page specific javascript files -%] [%- FOR source IN PageScripts %] [% END -%]