.navbar{:id => "main-menu", :class => 'navbar-inverse'} .navbar-inner %ul.nav{:id => 'tabs'} %li.active %a#block-mode-button{:href => "#block-tab"}< %i.icon-folder-close ブロック %li %a#ruby-mode-button{:href => "#ruby-tab"}< %i.icon-pencil Ruby = form_tag(source_codes_load_path, id: "file-form", class: "navbar-form pull-right", method: "post", multipart: true) do %input#load-file{:type => 'file', :name => 'source_code[file]', :style => 'display: none'} %input#filename{:type => 'text', :class => 'span4', :placeholder => 'プログラムの名前を入れてね(例:01.rb)'} = link_to '', source_codes_download_path, id: 'download-link', style: 'display: none', 'data-method' => 'delete' - if standalone? %button#run-button{:class => "btn btn-primary"}< %i.icon-play 実行 - else %button#download-button{:class => "btn btn-primary"}< %i.icon-download-alt ダウンロード .btn-group %a#submenu-button{:class => "dropdown-toggle btn btn-primary", :"data-toggle" => "dropdown", :href => "#"} %i.icon-reorder %ul#submenu.dropdown-menu{:class => "pull-right"} %li - if standalone? - load_id = 'load-local-button' - else - load_id = 'load-button' %a{:id => "#{load_id}"} %h4 %i.icon-folder-open ロード - if standalone? %li %a#save-button %h4 %i.icon-hdd セーブ %li %a#check-button %h4 %i.icon-check チェック %li %a#reset-button %h4 %i.icon-off リセット - if standalone? %li - if session[:username] %a#signout-button %h4 %i.icon-eject ログアウト - else %a#signout-button{style: "display: none"} %h4 %i.icon-eject ログアウト - if standalone? - if session[:username] %button#signin-button{class: "btn btn-danger", style: "display: none"}< %i.icon-user ログイン %button#username-button{class: "btn btn-success"}< %i.icon-user %span#username-label< = session[:username] - else %button#signin-button{class: "btn btn-danger"}< %i.icon-user ログイン %button#username-button{class: "btn btn-success", style: "display: none"}< %i.icon-user %span#username-label #messages #modes-container{:class => 'tab-content'} #block-tab{:class => 'tab-pane active modes-tab-pane'} = render 'block_tab' #ruby-tab{:class => 'tab-pane modes-tab-pane'} #text-editor = render 'signin_modal'