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:
Maikel Linke
2016-03-18 16:22:41 +11:00
parent 2a9e35355e
commit 41970ecf07
2 changed files with 5 additions and 5 deletions

View File

@@ -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}-"

View File

@@ -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'