Skip to content

Small part of hydra billing private office (aka HUPO, see https://hydra-billing.com if you can understand Russian)

License

Notifications You must be signed in to change notification settings

hydra-billing/hupo-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small part of Hydra User Private Office application (aka HUPO)

It hosts here for convenience only.

Widget is just a specific model for interface customization. At present settings of every widget are stored in YML files. But in future they can be transparently moved to DB.

Example

Put widget class in app/widgets.

class SupportWidget < HupoWidget::Base
  singleton! # Only one widget of this type allowed
end

Create corresponding YML-file in config/widgets.

common:
  vc_support_phone: 777-55-33

Now you have model object.

widget = SupportWidget.instance

widget['vc_support_phone'] # "777-55-33"
widget.as_json # {vc_support_phone: "777-55-33"}

Simple!

About

Small part of hydra billing private office (aka HUPO, see https://hydra-billing.com if you can understand Russian)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages