Commit f3f35ffb authored by Alexandre Delanoë's avatar Alexandre Delanoë

[NAV|FIX] Login/signup link.

parent 638ebb8f
...@@ -93,7 +93,6 @@ _loginAction = prism LoginA \action -> ...@@ -93,7 +93,6 @@ _loginAction = prism LoginA \action ->
_-> Left action _-> Left action
_addCorpusState:: Lens' AppState AC.State _addCorpusState:: Lens' AppState AC.State
_addCorpusState = lens (\s -> s.addCorpusState) (\s ss -> s{addCorpusState = ss}) _addCorpusState = lens (\s -> s.addCorpusState) (\s ss -> s{addCorpusState = ss})
...@@ -281,8 +280,6 @@ sidebarnavSpec = simpleSpec performAction render ...@@ -281,8 +280,6 @@ sidebarnavSpec = simpleSpec performAction render
] ]
] ]
] ]
---------------------------------------------------------------------------
---------------------------------------------------------------------------
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
, divDropdownRight , divDropdownRight
] ]
...@@ -290,48 +287,24 @@ sidebarnavSpec = simpleSpec performAction render ...@@ -290,48 +287,24 @@ sidebarnavSpec = simpleSpec performAction render
] ]
] ]
--divDropdownRight :: Render AppState props Action
divDropdownRight :: ReactElement divDropdownRight :: ReactElement
divDropdownRight = ul [className "nav navbar-nav pull-right"] divDropdownRight = ul [className "nav navbar-nav pull-right"]
[ [
-- TODO if logged in : enable dropdown -- TODO if logged in : enable dropdown to logout
--li [className "dropdown"] li [className "dropdown"]
--[ [
a [ a [ aria {hidden : true}
className "dropdown-toggle navbar-text"
, _data {toggle : "dropdown"}
-- , onClick \_ -> dispatch $ Login
, role "button"
, title "Username"
]
-- FIXME not sure about the className "login"
[ i [ className "login" ] []
, span [ aria {hidden : true}
-- TODO if logged in
--, className "glyphicon glyphicon-user"
-- else
, className "glyphicon glyphicon-log-in" , className "glyphicon glyphicon-log-in"
, href "#/login"
, style {color:"white"} , style {color:"white"}
-- TODO hover: bold
] ]
[]
-- TODO if logged in -- TODO if logged in
--, text " username" --, text " username"
-- else -- else
, text " Login / Signup" [text " Login / Signup"]
] ]
-- , ul [className "dropdown-menu"]
-- [
-- , li [ className"divider"]
-- []
-- , li []
-- -- TODO if logged in show logout
-- [ a [tabIndex (-1), href "/auth/login" ]
-- [ span [className "glyphicon glyphicon-log-in",aria {hidden : true}] []
-- , text " Logout"
-- ]
-- ]
-- ]
--]
] ]
layoutSpec :: forall eff props. Spec (E eff) AppState props Action layoutSpec :: forall eff props. Spec (E eff) AppState props Action
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment