unmk2 / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

Documentation to Add Page or menu item #530

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reason: adaptation 

Description: would you consider producing documentation on how to add a page or 
menu item to the user side control panel.

I have tried simply duplicating code in 
/opt/ovz-web-panel/app/views/layouts/admin.html.erb example:

            cls: 'menu-item',
            text: '<%= tjs('admin.menu.help.support') %>',
            href: '<%= escape_javascript(AppConfig.help.support_url) %>',
            icon: '<%= image_path 'bug.png' %>',
            leaf: true

however this stops the panel from loading, I have also tried to add a folder in 
/app/views/admin/ and placed a basic html file in it however it simply 
redirects back to dashboard when attempting to access it.

It would really help in making slight modifications/ improvements without 
having to pull apart the code in great detail.

Original issue reported on code.google.com by backtog...@gmail.com on 30 Jan 2014 at 8:50