mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Adding a sidebar tab
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
window.ForgotSidebarCtrl = Darkswarm.controller "ForgotSidebarCtrl", ($scope, $http, $location) ->
|
||||
$scope.active = ->
|
||||
$location.path() == '/forgot'
|
||||
|
||||
$scope.select = ->
|
||||
$location.path("/forgot")
|
||||
@@ -1,3 +1,3 @@
|
||||
window.SidebarCtrl = Darkswarm.controller "SidebarCtrl", ($scope, $location) ->
|
||||
$scope.active = ->
|
||||
$location.path() in ["/login", "/signup"]
|
||||
$location.path() in ["/login", "/signup", "/forgot"]
|
||||
|
||||
@@ -17,3 +17,6 @@
|
||||
@include panel($bg, $padding, $adjust)
|
||||
.content
|
||||
background: white
|
||||
|
||||
.tabs dd a
|
||||
padding: 0.5em 1em
|
||||
|
||||
5
app/views/shared/_forgot_sidebar.html.haml
Normal file
5
app/views/shared/_forgot_sidebar.html.haml
Normal file
@@ -0,0 +1,5 @@
|
||||
%tab#forgot{"ng-controller" => "ForgotSidebarCtrl",
|
||||
heading: "Forgot Password?",
|
||||
active: "active()",
|
||||
select: "select()"}
|
||||
Well you're a bit stupid then
|
||||
@@ -3,4 +3,5 @@
|
||||
%tabset
|
||||
= render partial: "shared/login_sidebar"
|
||||
= render partial: "shared/signup_sidebar"
|
||||
= render partial: "shared/forgot_sidebar"
|
||||
= yield :sidebar
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#sign-up-content{"ng-controller" => "SignupSidebarCtrl", "ng-show" => "active()"}
|
||||
%tab#sign-up-content{"ng-controller" => "SignupSidebarCtrl",
|
||||
heading: "Signup",
|
||||
active: "active()",
|
||||
|
||||
Reference in New Issue
Block a user