Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
50b6eb6b
Commit
50b6eb6b
authored
Mar 20, 2015
by
Stephane Glondu
Browse files
Simplification of site_login_box
parent
f14a8673
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/web/web_templates.ml
View file @
50b6eb6b
...
...
@@ -74,13 +74,15 @@ let make_login_box style auth links =
]
)
let
site_login_box
auth
=
let
module
L
=
struct
let
login
x
=
Eliom_service
.
preapply
site_login
x
let
logout
=
Eliom_service
.
preapply
site_logout
()
end
in
let
links
=
(
module
L
:
AUTH_LINKS
)
in
fun
()
->
make_login_box
admin_background
auth
links
module
Site_links
=
struct
let
login
x
=
Eliom_service
.
preapply
site_login
x
let
logout
=
Eliom_service
.
preapply
site_logout
()
end
let
site_links
=
(
module
Site_links
:
AUTH_LINKS
)
let
site_login_box
auth
()
=
make_login_box
admin_background
auth
site_links
let
base
~
title
~
login_box
~
content
?
(
footer
=
div
[]
)
()
=
Lwt
.
return
(
html
~
a
:
[
a_dir
`Ltr
;
a_xml_lang
"en"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment