Sha256: dc33964c351d69a846d4764da650e9d07e8ed3e187f66bfb1d871d2f5b834409

Contents?: true

Size: 721 Bytes

Versions: 20

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
    current_preferences["toolbox_name"] || "default"
  end

  # css name of Toolbox
  def toolbox_css_name
    current_preferences["toolbox_css_name"] ||
      current_preferences["toolbox_name"] ||
      "default"
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
smalruby-editor-0.4.1-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.4.2-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.4.2 app/helpers/application_helper.rb
smalruby-editor-0.4.1 app/helpers/application_helper.rb
smalruby-editor-0.4.0-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.4.0 app/helpers/application_helper.rb
smalruby-editor-0.3.5-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.3.5 app/helpers/application_helper.rb
smalruby-editor-0.3.4-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.3.4 app/helpers/application_helper.rb
smalruby-editor-0.3.3-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.3.3 app/helpers/application_helper.rb
smalruby-editor-0.3.2-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.3.2 app/helpers/application_helper.rb
smalruby-editor-0.3.1-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.3.1 app/helpers/application_helper.rb
smalruby-editor-0.3.0-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.3.0 app/helpers/application_helper.rb
smalruby-editor-0.2.7-x86-mingw32 app/helpers/application_helper.rb
smalruby-editor-0.2.7 app/helpers/application_helper.rb