Sha256: 34ee2ac79752103c2682ac930f7d81506b593d947cf574d592026b18afde519c

Contents?: true

Size: 721 Bytes

Versions: 8

Compression:

Stored size: 721 Bytes

Contents

# -*- coding: utf-8 -*-
module ApplicationHelper
  def modal_css_class
    "modal hide#{raspberrypi? ? '' : ' fade'}"
  end

  # default locale name for Blockly messages
  def blockly_message_default_locale_name
    'en_us'
  end

  # Blocklyのメッセージのlocaleの名前を返す
  #
  # Blocklyではenがen_usであるため
  def blockly_message_locale_name
    if I18n.locale.to_s == 'en'
      'en_us'
    else
      I18n.locale
    end
  end

  # name of Toolbox
  def toolbox_name
    SmalrubyEditor::Config.toolbox_name || 'default'
  end

  # css name of Toolbox
  def toolbox_css_name
    SmalrubyEditor::Config.toolbox_css_name ||
      SmalrubyEditor::Config.toolbox_name ||
      'default'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
smalruby-editor-0.2.6-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.2.6 app/helpers/application_helper.rb
smalruby-editor-0.2.5-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.2.5 app/helpers/application_helper.rb
smalruby-editor-0.2.4-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.2.4 app/helpers/application_helper.rb
smalruby-editor-0.2.3-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.2.3 app/helpers/application_helper.rb