Module: LatoView::Interface::Images
- Included in:
- LatoView::Interface
- Defined in:
- lib/lato_view/interface/images.rb
Overview
This module contains function for images.
Instance Method Summary collapse
-
#view_getApplicationLogo ⇒ Object
This function return the url of application logo.
-
#view_getLoginLogo ⇒ Object
This function return the url of login logo.
-
#view_getSidebarLogo ⇒ Object
This function return the url of sidebar logo.
Instance Method Details
#view_getApplicationLogo ⇒ Object
This function return the url of application logo.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/lato_view/interface/images.rb', line 44 def view_getApplicationLogo return VIEW_APPLOGO if defined? VIEW_APPLOGO dir = "#{Rails.root}/app/assets/images/lato/" if File.exist?("#{dir}/logo.svg") return "lato/logo.svg" end if File.exist?("#{dir}/logo.png") return "lato/logo.png" end if File.exist?("#{dir}/logo.jpg") return "lato/logo.jpg" end if File.exist?("#{dir}/logo.gif") return "lato/logo.gif" end return false end |
#view_getLoginLogo ⇒ Object
This function return the url of login logo.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/lato_view/interface/images.rb', line 25 def view_getLoginLogo return VIEW_LOGINLOGO if defined? VIEW_LOGINLOGO dir = "#{Rails.root}/app/assets/images/lato/" if File.exist?("#{dir}/login_logo.svg") return "lato/login_logo.svg" end if File.exist?("#{dir}/login_logo.png") return "lato/login_logo.png" end if File.exist?("#{dir}/login_logo.jpg") return "lato/login_logo.jpg" end if File.exist?("#{dir}/login_logo.gif") return "lato/login_logo.gif" end return view_getApplicationLogo end |
#view_getSidebarLogo ⇒ Object
This function return the url of sidebar logo.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/lato_view/interface/images.rb', line 6 def return VIEW_SIDEBARLOGO if defined? VIEW_SIDEBARLOGO dir = "#{Rails.root}/app/assets/images/lato/" if File.exist?("#{dir}/sidebar_logo.svg") return "lato/sidebar_logo.svg" end if File.exist?("#{dir}/sidebar_logo.png") return "lato/sidebar_logo.png" end if File.exist?("#{dir}/sidebar_logo.jpg") return "lato/sidebar_logo.jpg" end if File.exist?("#{dir}/sidebar_logo.gif") return "lato/sidebar_logo.gif" end return view_getApplicationLogo end |