summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-03-28 11:27:25 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-03-28 11:27:25 +0200
commit5e750b5259c25fd5d56c65ade5276d35235c054f (patch)
tree9ec73364651380f18513d73d729270eba6471f3f /src
parent285529a532743d52af94d3d571178a413dd944c8 (diff)
Add BrowserID login button to universal login box.
Diffstat (limited to 'src')
-rw-r--r--src/mulk/benki/webutil.clj8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mulk/benki/webutil.clj b/src/mulk/benki/webutil.clj
index 7eeb294..a1a0bb5 100644
--- a/src/mulk/benki/webutil.clj
+++ b/src/mulk/benki/webutil.clj
@@ -40,4 +40,10 @@
(if *user*
[:div {:class "logged-in-as"}
(:first_name user) " " (:last_name user)]
- [:div {:class "not-logged-in"} [:a {:href (link :login)} "Log in"]])))
+ [:div {:class "not-logged-in"}
+ "Browser ID "
+ [:a#browserid {:href "#"}
+ [:img {:src (resolve-uri "/3rdparty/browserid/sign_in_orange.png")
+ :alt "Sign in"}]]
+ [:div "or:"]
+ [:a {:href (link :login)} "Sign in normally"]])))