%meta{ :charset => "utf-8" }/ %meta(name="viewport" content="width=device-width, initial-scale=1.0") %link{:rel => "icon", :type => "image/gif", :href => "/favicon.gif"}/ %title= $title // Semantic-ui - record_css '/plugins/semantic-ui/dist/semantic.min.css' - record_css '/plugins/nvd3/css/nv.d3.css' -# record_css '/plugins/jquery-ui/css/custom-theme/jquery-ui-1.8.14.custom.css' - record_css '/stylesheets/app' = serve_css // Third party frameworks :javascript var user = #{user ? '"' + user + '"' : '"none"'} var main_url = window.location.toString(); var production = #{production? ? "true" : "false"}; - record_js '/js/defer' - record_js "/plugins/mithril/js/mithril.js" -# record_js "/plugins/requirejs/js/require.js" = serve_js -#:javascript requirejs.config({baseUrl: '/js-find'}) - %w(jquery-2.1.1 jquery.cookie jquery.form).each do |jquery_file| - record_js File.join('/plugins/jquery/js/', jquery_file) - record_js '/plugins/jquery-ui/js/jquery-ui-1.8.14.custom.min.js' - record_js '/plugins/jquery.tablesorter/jquery.tablesorter.min.js' - record_js '/plugins/jquery.scrollTo/jquery.scrollTo' - record_js '/plugins/semantic-ui/dist/semantic.min.js' - record_js '/plugins/FileSaver/js/FileSaver.js' - record_js '/plugins/color-js/color.js' - record_js '/plugins/d3js/js/d3js.min.js' - record_js '/plugins/nvd3/js/nv.d3.js' - record_js '/plugins/svg-pan-zoom/js/svg-pan-zoom.js' - record_js '/plugins/cola/js/cola.js' - record_js '/plugins/mithril-node-render/js/index.js' - %w(helpers _md5 _ajax_replace _ellipsis).each do |file| - record_js "/js-find/#{ file }" -# %w(dom_update workflow fragment menu favourites page_type modal reveal actions table list map hide).each do |file| - %w(dom_update fragment actions table list map reveal).each do |file| - record_js "/js-find/rbbt/#{ file }" - %w(rbbt rbbt.basic rbbt.exception rbbt.job rbbt.page rbbt.entity rbbt.entity_list rbbt.entity_map rbbt.views rbbt.favourites rbbt.knowledge_base rbbt.aesthetics rbbt.plots rbbt.modal).each do |file| - record_js "/js-find/#{ file }" - record_js "/js-find/app"