Commit 638ebb8f authored by Alexandre Delanoë's avatar Alexandre Delanoë

[COSMETICS] link to login missing.

parent b81a66c8
...@@ -27,6 +27,7 @@ data Action ...@@ -27,6 +27,7 @@ data Action
= NoOp = NoOp
| Documentation | Documentation
| Enter | Enter
| Login
| SignUp | SignUp
...@@ -41,6 +42,10 @@ performAction Enter _ _ = void do ...@@ -41,6 +42,10 @@ performAction Enter _ _ = void do
lift $ setHash "/search" lift $ setHash "/search"
T.modifyState \state -> state T.modifyState \state -> state
performAction Login _ _ = void do
lift $ setHash "/login"
T.modifyState \state -> state
performAction SignUp _ _ = void do performAction SignUp _ _ = void do
T.modifyState \state -> state T.modifyState \state -> state
......
...@@ -18,9 +18,10 @@ import PageRouter (Routes(..)) ...@@ -18,9 +18,10 @@ import PageRouter (Routes(..))
import Prelude hiding (div) import Prelude hiding (div)
import React (ReactElement) import React (ReactElement)
import React.DOM (a, div, i, img, li, span, text, ul, map') import React.DOM (a, div, i, img, li, span, text, ul, map')
import React.DOM.Props (_data, _id, aria, className, href, role, src, style, tabIndex, target, title) import React.DOM.Props (_data, _id, aria, className, href, role, src, style, tabIndex, target, title, onClick)
import Thermite (PerformAction, Render, Spec, _render, defaultRender, focus, modifyState, simpleSpec, withState) import Thermite (PerformAction, Render, Spec, _render, defaultRender, focus, modifyState, simpleSpec, withState)
import DocView as DV import DocView as DV
import Landing as Landing
import SearchForm as S import SearchForm as S
import UserPage as UP import UserPage as UP
...@@ -219,7 +220,11 @@ sidebarnavSpec = simpleSpec performAction render ...@@ -219,7 +220,11 @@ sidebarnavSpec = simpleSpec performAction render
render :: Render AppState props Action render :: Render AppState props Action
render dispatch _ state _ = render dispatch _ state _ =
[ [
div [ _id "dafixedtop", className "navbar navbar-inverse navbar-fixed-top", role "navigation"] div [ _id "dafixedtop"
, className "navbar navbar-inverse navbar-fixed-top"
, role "navigation"
]
[ div [className "container"] [ div [className "container"]
[ divLogo [ divLogo
-- divDropdownLeft -- divDropdownLeft
...@@ -236,7 +241,9 @@ sidebarnavSpec = simpleSpec performAction render ...@@ -236,7 +241,9 @@ sidebarnavSpec = simpleSpec performAction render
, href "#", role "button" , href "#", role "button"
, title "Informations about Gargantext" , title "Informations about Gargantext"
] ]
[ span [ aria {hidden : true}, className "glyphicon glyphicon-info-sign" ] [] [ span [ aria {hidden : true}
, className "glyphicon glyphicon-info-sign"
] []
, text " Info" , text " Info"
] ]
, ul [className "dropdown-menu"] , ul [className "dropdown-menu"]
...@@ -292,7 +299,8 @@ divDropdownRight = ul [className "nav navbar-nav pull-right"] ...@@ -292,7 +299,8 @@ divDropdownRight = ul [className "nav navbar-nav pull-right"]
a [ a [
className "dropdown-toggle navbar-text" className "dropdown-toggle navbar-text"
, _data {toggle : "dropdown"} , _data {toggle : "dropdown"}
, href "#", role "button" -- , onClick \_ -> dispatch $ Login
, role "button"
, title "Username" , title "Username"
] ]
...@@ -370,7 +378,3 @@ dispatchAction dispatcher _ UserPage = do ...@@ -370,7 +378,3 @@ dispatchAction dispatcher _ UserPage = do
_ <- dispatcher $ UserPageA $ UP.NoOp _ <- dispatcher $ UserPageA $ UP.NoOp
pure unit pure unit
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