views/partials/navbar.haml in proxes-0.6.1 vs views/partials/navbar.haml in proxes-0.7.0
- old
+ new
@@ -7,10 +7,10 @@
%button.navbar-toggle.collapsed{ 'type' => 'button', 'data-toggle' => 'collapse', 'data-target' => '#navbar', 'aria-expanded' => 'false', 'aria-controls' => 'navbar' }
%span.sr-only Toggle navigation
%span.icon-bar.bar1
%span.icon-bar.bar2
%span.icon-bar.bar3
- -if current_user
+ -if authenticated?
%form.nav.navbar-top-links.navbar-form.navbar-right{ action: '/_proxes/auth/identity', method: 'post' }
%a.btn.btn-default{ href: "/_proxes/users/profile" } My Account
%input{ name: '_method', value: 'DELETE', type: 'hidden' }
%button.btn.btn-default{ type: 'submit' }
/ %i.ti-panel