Project

General

Profile

« Previous | Next » 

Revision fa8353d8

Added by Walden Raines over 8 years ago

Fixes #11625: refactor the ace editor to make it reusable.

Make the ace editor reusable and include it on the global parameters
page.

http://projects.theforeman.org/issues/11625

View differences:

app/helpers/provisioning_templates_helper.rb
template.template_kind
end
def include_javascript
javascript 'provisioning_template', 'ace/ace',
'ace/theme-twilight', 'ace/theme-dawn', 'ace/theme-clouds', 'ace/theme-textmate',
'ace/mode-diff', 'diff', 'ace/mode-ruby', 'ace/keybinding-vim', 'ace/keybinding-emacs'
end
def show_default?
rights = Taxonomy.enabled_taxonomies.select { |taxonomy| User.current.can?("create_#{taxonomy}".to_sym) }
rights.all? && !rights.blank?

Also available in: Unified diff