OSC / ood-fileexplorer

[MOVED] The Open OnDemand File Explorer
https://osc.github.io/Open-OnDemand/
MIT License
4 stars 1 forks source link

Remove editor button if unavailable. #112

Closed brianmcmichael closed 8 years ago

brianmcmichael commented 8 years ago

If the editor has not been configured, remove the button from the view.

ericfranz commented 8 years ago

A simple way to do this:

Add a class to the body tag "editor" and then do something like editor_btn { display: hidden; } body.editor editor_btn { display: block; }.

The class is added to the body in the template if the option is enabled / available. Similar thing for #111

brianmcmichael commented 8 years ago

fixed by https://github.com/OSC/cloudcmd/pull/32