class ApijsFiles
Created L/21/05/2012 Updated D/03/05/2020
Copyright 2008-2021 | Fabrice Creuzot (luigifab) <code~luigifab~fr> www.luigifab.fr/redmine/apijs
This program is free software, you can redistribute it or modify it under the terms of the GNU General Public License (GPL) as published by the free software foundation, either version 2 of the license, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but without any warranty, without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License (GPL) for more details.
Public Instance Methods
view_layouts_base_body_bottom(context)
click to toggle source
# File lib/apijs_files.rb, line 43 def view_layouts_base_body_bottom(context) if Setting.plugin_redmine_apijs['browser'] == '1' controller = context[:controller] Thread.current[:request] = controller.request if Rails::VERSION::MAJOR >= 3 controller.render partial: 'browser', locals: {pos: 'bottom'} else return controller.send(:render_to_string, partial: 'application/browser', locals: {pos: 'bottom'}) # Redmine 1.4 end end end
view_layouts_base_body_top(context)
click to toggle source
# File lib/apijs_files.rb, line 35 def view_layouts_base_body_top(context) if Setting.plugin_redmine_apijs['browser'] == '1' controller = context[:controller] Thread.current[:request] = controller.request controller.render partial: 'browser', locals: {pos: 'top'} end end
view_layouts_base_html_head(context)
click to toggle source
# File lib/apijs_files.rb, line 20 def view_layouts_base_html_head(context) rtl = l(:direction) == 'rtl' if Setting.plugin_redmine_apijs['enabled'] == '1' #stylesheet_link_tag(langrtl && rtl ? 'apijs-screen-rtl.min.css' : 'apijs-screen.min.css', :plugin => 'redmine_apijs', :media => 'screen') + stylesheet_link_tag('apijs-screen.min.css', plugin: 'redmine_apijs', media: 'screen') + stylesheet_link_tag(rtl ? 'apijs-redmine-rtl.min.css' : 'apijs-redmine.min.css', plugin: 'redmine_apijs', media: 'screen') + stylesheet_link_tag('apijs-print.min.css', plugin: 'redmine_apijs', media: 'print') + javascript_include_tag('apijs.min.js', plugin: 'redmine_apijs') + javascript_include_tag('apijs-redmine.min.js', plugin: 'redmine_apijs') else stylesheet_link_tag(rtl ? 'apijs-redmine-rtl.min.css' : 'apijs-redmine.min.css', plugin: 'redmine_apijs', media: 'screen') end end