From eb51bce12f0e866d09ce7df2e619820d76061af3 Mon Sep 17 00:00:00 2001 From: sostler Date: Sun, 24 Jan 2010 18:27:05 -0500 Subject: commit --- src/site.clj | 3 +- template/profile.st | 121 +++++++++++++++++++++++++++------------------------- 2 files changed, 64 insertions(+), 60 deletions(-) diff --git a/src/site.clj b/src/site.clj index 4f6ca71..9d66735 100755 --- a/src/site.clj +++ b/src/site.clj @@ -132,6 +132,7 @@ @(room :messages))))) (defn process-user [u] + (prn u) (if (u :avatar) {"nick" (u :nick) "avatar" (encode-html-entities (u :avatar))} @@ -217,7 +218,7 @@ (defn login [session params] (let [nick (params :nick) hash (params :hash) - db-user (authorize-nick-hash nick hash)] + db-user (authorize-nick-hash nick hash)] (if db-user [(populate-session-from-db db-user) (resp-success "OK")] diff --git a/template/profile.st b/template/profile.st index 6204e27..e407ce1 100755 --- a/template/profile.st +++ b/template/profile.st @@ -2,94 +2,97 @@ $nick$'s dump.fm $head()$ - - - - - + + - - + jQuery(document).ready(function() { + jQuery(".linkify").each(function() { + var text = jQuery(this).text(); + jQuery(this).html(linkify(text)); + }); + }); + $banner()$
-
-
+
-
+

+
- -
- - $if(dumps)$ + $if(dumps)$ $dumps:{ d | $logged_dump(dump=d)$ }$ - $else$ -

 

-

 

-

 

 

-

 

-

 

-

This is your user log, it's where all the images you post are saved.
- To get started join Room A and post a few pictures.

-

 

-

 

-

 

 

-

 

-

 

- $endif$ -

 

-
-
+ $else$ +

 

+

 

+

 

 

+

 

+

 

+

This is your user log, it's where all the images you post + are saved.
+ To get started join Room A and post a + few pictures.

+

 

+

 

+

 

 

+

 

+

 

+ $endif$ +

 

+
+
$if(next)$ <- OLD DUMPS $endif$
-
+
   $if(prev)$ NEW DUMPS -> $endif$ -

-
+

+
+
-
- -
- -

$nick$

+
+

$nick$

- $if(avatar)$ - - $else$ - No avatar - $endif$ + $if(avatar)$ + + $else$ + No avatar + $endif$ - $if(is_home)$ -
$avatar$
- $endif$ + $if(is_home)$ +
$avatar$
+ $endif$ -

contact info

-
$contact$
-
+

contact info

+
+ $contact$ +
+
-

personal info

-
$bio$
-


+

personal info

+
+ $bio$ +
+


-
+
+ $footer()$ +
-- cgit v1.2.3-70-g09d2