X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;ds=inline;f=index.yaws;h=7d88a7cfc9583fcd219b2c5dc64a10ca10bd84d8;hb=c8e862a96eedcf1b996035b6b0e8a0c36e9a0cde;hp=7de72c840ef204da2e387f1fa46d83217f3b620c;hpb=e56ca5b899d3b39c76a9056077729c04c695666b;p=euphorik.git
diff --git a/index.yaws b/index.yaws
index 7de72c8..7d88a7c 100755
--- a/index.yaws
+++ b/index.yaws
@@ -1,52 +1,113 @@
-
-
+
-
+
+ out(A) ->
+ {header, {content_type,
+ case string:str((A#arg.headers)#headers.user_agent, "MSIE") of
+ 0 -> "text/html"; %"application/xhtml+xml"; % TODO : jquery.lightbox ne support pas application/xhtml+xml
+ _ -> "text/html"
+ end
+ }}.
+
+
+
euphorik.ch
+ % prédéfinit la feuille de style
out(A) ->
+ CSS = case euphorik_bd:css_from_user_cookie(yaws_api:find_cookie_val("cookie", A)) of
+ undefined -> "styles/1/euphorik.css";
+ C -> C
+ end,
{ehtml, {link ,
[
{id, "cssPrincipale" },
{rel, "stylesheet"},
- {href,
- euphorik_bd:css_from_user_cookie(yaws_api:find_cookie_val("cookie", A))
- },
+ {href, CSS},
{type, "text/css"},
{media, "screen"}
], []}
}.
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ % permet de prédéfinir la "class" du logo pour un ekMaster...
+ out(A) ->
+ Est_ek_master = euphorik_bd:is_ek_master_from_cookie(yaws_api:find_cookie_val("cookie", A)),
+ {ehtml, {'div', [{id, "logo"}] ++ if Est_ek_master -> [{class, "ekMaster"}]; true -> [] end}}.
+
+
-
-
+
-
\ No newline at end of file
+