Sha256: 14d08c92655214ba05fa8545dbfd4215d558dfaf6172d272fb5d22913f35855c

Contents?: true

Size: 412 Bytes

Versions: 81

Compression:

Stored size: 412 Bytes

Contents

module MultipleFileEditorHelper
  def highlight_modes
    Language.all.map { |it| { extension: it.extension, highlight_mode: it.highlight_mode } }
  end

  def multifile_locales
    :insert_file_name.try { |it| { it => t(it) } }
  end

  def multifile_hidden_inputs
    hidden_field_tag('highlight-modes', highlight_modes.to_json) +
    hidden_field_tag('multifile-locales', multifile_locales.to_json)
  end
end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
mumuki-laboratory-7.12.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.11.1 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.11.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.10.5 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.10.4 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.10.3 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.10.2 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.10.1 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.10.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.9.2 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.9.1 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.9.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.7.6 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.7.5 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.7.4 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.8.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.7.3 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.7.2 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.7.1 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.7.0 app/helpers/multiple_file_editor_helper.rb