Sha256: 6fc04f50e2f91df561314f7289703f7e7f3061fafc6124ff2dfa89d9d1283430

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

- head = login? ? current_user.code : DEFAULT_HEADER
%div{"data-context" => "a#default", "data-hash" => "crumbs", "data-id" => "menu", "data-role" => "panel"}
  #main{"data-role" => "page"}
    %div{"data-role" => "header", "data-theme" => "b", "data-backbtn"=>"false"}
      %h1= head
    %div{"data-role" => "content"}
      %ul{"data-role" => "listview", "data-theme" => "g"}
        %li
          %a{"data-panel" => "main", :href => "/mindapp"} Home
        = render "/mindapp/menu_mm"
        - if login?
          %li
            %a{:href=>"/mindapp/pending", "data-rel"=>"dialog", "data-panel" => "main"} Pending Jobs
          %li
            %a{"data-panel" => "main", :href => logout_path, "data-ajax"=>"false"} Sign Out
        - else
          %li
            %a{:href=>new_session_path, "data-rel"=>"dialog", "data-panel" => "main"} Sign In
          %li
            %a{:href=>new_identity_path, "data-rel"=>"dialog", "data-panel" => "main"} Sign Up
        %li
          = link_to "Refresh", "#", :onclick=>"window.location.replace('/')"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mindapp-0.0.1 lib/generators/mindapp/templates/app/views/mindapp/_menu.haml