From a246187d41cc7f707881762a238440756cd05945 Mon Sep 17 00:00:00 2001 From: scottbot Date: Wed, 19 May 2010 20:56:55 -0400 Subject: Added scoring to profiles --- template/profile.st | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'template/profile.st') diff --git a/template/profile.st b/template/profile.st index 0fe12c9..482665b 100644 --- a/template/profile.st +++ b/template/profile.st @@ -66,6 +66,13 @@
$endif$ + $if(score_ent)$ +
+

score

+ $score_ent$ +
+ $endif$ + $if(is_home)$
edit profile
-- cgit v1.2.3-70-g09d2 From 90de261feb9aabc17c3839848cf203e2404b4196 Mon Sep 17 00:00:00 2001 From: scottbot Date: Wed, 19 May 2010 21:02:54 -0400 Subject: Add numeric score to profile --- src/site.clj | 1 + template/profile.st | 1 + 2 files changed, 2 insertions(+) (limited to 'template/profile.st') diff --git a/src/site.clj b/src/site.clj index 11b6859..5f4463b 100644 --- a/src/site.clj +++ b/src/site.clj @@ -473,6 +473,7 @@ ORDER BY created_on DESC; (.setAttribute st "dumps" dumps)) (if (> (count raw-dumps) *dumps-per-page*) (.setAttribute st "next" (inc offset))) + (.setAttribute st "score" score) (.setAttribute st "score_ent" (score-to-entity score)) (if (not= offset 0) (.setAttribute st "prev" (max (dec offset) 0))) diff --git a/template/profile.st b/template/profile.st index 482665b..5744691 100644 --- a/template/profile.st +++ b/template/profile.st @@ -69,6 +69,7 @@ $if(score_ent)$

score

+ $score$ $score_ent$
$endif$ -- cgit v1.2.3-70-g09d2 From 462d127bb4073bc3941a03757065b1ea40d8f3a3 Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Wed, 19 May 2010 21:19:09 -0400 Subject: Change chat palette behavior to always display button --- static/js/pichat.js | 31 +++++-------------------------- template/profile.st | 17 ++++++++--------- 2 files changed, 13 insertions(+), 35 deletions(-) (limited to 'template/profile.st') diff --git a/static/js/pichat.js b/static/js/pichat.js index da68baa..ac89dc4 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -436,8 +436,6 @@ function initChat() { messageList = $("#messageList")[0] - if (!isEmptyObject(RawFavs)) paletteButtonShow() - initChatThumb() scrollToEnd() @@ -578,29 +576,6 @@ function initChatThumb(){ }) } -function paletteButtonHideAnim(){ - $("#msginputrapper").stop().animate({"marginRight": "374px"}, 'fast') - $("#msgSubmit").stop().animate({"right": "260px"}, 'fast') - $("#palette-button").stop().animate({"width": "0px"}, 'fast', 'swing', function(){ $("#palette-button").css("display", "none") }) -} -function paletteButtonHide(){ - $("#msginputrapper").css("marginRight", "374px") - $("#msgSubmit").css("right", "260px") - $("#palette-button").css("width", "0px") - $("#palette-button").css("display", "none") -} -function paletteButtonShowAnim(){ - $("#msginputrapper").stop().animate({"marginRight": "415px"}, 'fast') - $("#msgSubmit").stop().animate({"right": "300px"}, 'fast') - $("#palette-button").css("display", "inline-block") - $("#palette-button").stop().animate({"width": "40px"}, 'fast') -} -function paletteButtonShow(){ - $("#msginputrapper").css("marginRight", "415px") - $("#msgSubmit").css("right", "300px") - $("#palette-button").css("display", "inline-block") - $("#palette-button").css("width", "40px") -} function paletteToChat(img){ var chatText = $("#msgInput").val() @@ -639,7 +614,11 @@ function paletteBuildImageThumbs(){ function paletteShow(){ $("#palette").css("display", "block") - paletteBuildImageThumbs() + if (isEmptyObject(RawFavs)) { + $('#palette-thumbs').html('

This is where all the stuff you FAV goes!

To FAV a post click the little heart next to a users name.

Everything you fav gets saved to your profile.. Have fun!

'); + } else { + paletteBuildImageThumbs(); + } } function paletteHide(){ $("#palette").css("display", "none") diff --git a/template/profile.st b/template/profile.st index 5744691..9b7cbac 100644 --- a/template/profile.st +++ b/template/profile.st @@ -30,8 +30,12 @@ $dumps:{ d | $profile_dump(dump=d)$ }$
-

$nick$

- +

$nick$


+ $if(score_ent)$ + + $score$ + $score_ent$ + $endif$ $if(isadmin)$
Mute $nick$!
@@ -66,13 +70,8 @@
$endif$ - $if(score_ent)$ -
-

score

- $score$ - $score_ent$ -
- $endif$ + + $if(is_home)$
-- cgit v1.2.3-70-g09d2