Skip to content

Instantly share code, notes, and snippets.

@phamonyut
Created October 18, 2015 09:25
Show Gist options
  • Save phamonyut/617a9e31c7ab3bd2e600 to your computer and use it in GitHub Desktop.
Save phamonyut/617a9e31c7ab3bd2e600 to your computer and use it in GitHub Desktop.
doctype html
html
head
title
| Shopper2
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
= javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags
body
header.navbar.navbar-default
.container
.navbar-header
= link_to 'Shopper', root_path, class: 'navbar-brand'
.collapse.navbar-collapse
ul.nav.navbar-nav.navbar-right
li.dropdown
- if user_signed_in?
a.dropdown-toggle href="#" data-toggle='dropdown'
span.glyphicon.glyphicon-user>
span.caret<
ul.dropdown-menu
li
= link_to 'ออกจากระบบ', destroy_user_session_path, method: :delete
.container
.row
.col-sm-12
= yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment