Sha256: fa3d6aab32f5d3c049a6dc23e40d9d73f8c556a90af9b03bb2c77884509917c3

Contents?: true

Size: 1003 Bytes

Versions: 1

Compression:

Stored size: 1003 Bytes

Contents

class TokyoMetro::App::Renderer::StationFacility::Platform::Info::MultipleRailwayLines::Whole < TokyoMetro::App::Renderer::StationFacility::Platform::Info::MetaClass::Whole

  include ::TokyoMetro::App::Renderer::StationFacility::Platform::Info::MultipleRailwayLines::Common

  # 乗車位置情報のタブを作成
  def render_tab
    h.render inline: <<-HAML , type: :haml , locals: { this: self , onclick: onclick }
%li{ class: [ "tab_for_" + this.tab_name , :platform_info_tab , :clearfix ] }<
  %div{ class: [ :railway_line_name , :clearfix ] , onclick: raw( onclick ) }
    - this.railway_lines.each do | railway_line |
      - railway_line_decorated = railway_line.decorate
      %div{ class: railway_line_decorated.css_class_name }
        = railway_line_decorated.render_railway_line_code( small: true )
    = this.render_railway_line_text_name
    HAML
  end

  private

  def onclick
    "changeStationFacilityPlatformInfoTabByPageLink( '#{ tab_name }' , true ) ; return false ;"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/app/renderer/station_facility/platform/info/multiple_railway_lines/whole.rb