2015-09-08 16:19:48 +02:00
|
|
|
!!!
|
|
|
|
%html
|
|
|
|
%head
|
|
|
|
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
|
|
|
|
%title Tab
|
|
|
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
|
|
|
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
|
|
|
= csrf_meta_tags
|
|
|
|
%body
|
2015-09-09 17:34:49 +02:00
|
|
|
.pure-menu.pure-menu-horizontal
|
|
|
|
%ul.pure-menu-list
|
|
|
|
- if current_user
|
|
|
|
%li.pure-menu-item
|
|
|
|
= link_to current_user.name.capitalize, current_user, class: "pure-menu-link"
|
|
|
|
%li.pure-menu-item
|
|
|
|
= link_to "New Transaction", new_transaction_path, class: "pure-menu-link"
|
|
|
|
- else
|
|
|
|
= link_to "Sign in", user_omniauth_authorize_path(:zeuswpi), class: "pure-menu-link" unless current_user
|
|
|
|
= render 'partials/flash'
|
2015-09-08 16:19:48 +02:00
|
|
|
= yield
|