From a1b3326b73f60ac0d06fa2fe4472708dc275b187 Mon Sep 17 00:00:00 2001 From: benji Date: Wed, 9 Sep 2015 17:43:50 +0200 Subject: [PATCH] Add pure css grids --- app/views/layouts/application.html.haml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 18bdf90..0f335a3 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -7,14 +7,17 @@ = javascript_include_tag 'application', 'data-turbolinks-track' => true = csrf_meta_tags %body - .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' - = yield + .pure-g + .pure-u-1 + .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 + .pure-u-1 + = render 'partials/flash' + = yield