mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
Use auth directive for Login button
Use the auth directive instead of the AuthenticationCtrl for the Login button in the menu and on checkout.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
%section{"ng-show" => "!enabled"}
|
||||
.row
|
||||
.small-12.columns.text-center{"ng-controller" => "AuthenticationCtrl"}
|
||||
.small-12.columns.text-center
|
||||
%h3.pad-top
|
||||
= t :checkout_headline
|
||||
.row.pad-top
|
||||
.small-5.columns.text-center{"ng-controller" => "AuthenticationCtrl"}
|
||||
%button.primary.expand{"ng-click" => "open()"}
|
||||
.small-5.columns.text-center
|
||||
%button.primary.expand{"auth" => "login"}
|
||||
= t :label_login
|
||||
.small-2.columns.text-center
|
||||
%p.pad-top= "-#{t :action_or}-"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
%li#login-link{"ng-controller" => "AuthenticationCtrl"}
|
||||
%a{"ng-click" => "open()"}
|
||||
%li#login-link
|
||||
%a{"auth" => "login"}
|
||||
%i.ofn-i_017-locked
|
||||
%span
|
||||
= t 'label_login'
|
||||
|
||||
Reference in New Issue
Block a user