Class: TokyoMetro::App::Renderer::SideMenu::Problems

Inherits:
Factory::Decorate::MetaClass show all
Defined in:
lib/tokyo_metro/app/renderer/side_menu/problems.rb

Defined Under Namespace

Classes: Header

Instance Method Summary collapse

Instance Method Details

#renderObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/tokyo_metro/app/renderer/side_menu/problems.rb', line 3

def render
  h.render inline: <<-HAML , type: :haml , locals: h_locals
%div{ id: :problems }
= ::TokyoMetro::App::Renderer::SideMenu::Problems::Header.new( request ).render
%ul{ class: [ :info_text , :problems ] }
  - contents_ja.each do | info |
    %li{ class: :text_ja }<
      = info
  %li{ class: [ :to_do , :text_en ] }<
    - if open_another_window
      = link_to( "" , link_to_list_of_tasks_to_do , target: :_blank )
    - else
      = link_to( "" , link_to_list_of_tasks_to_do )
    = "To Do"
  HAML
end