From: Chip Black Date: Fri, 28 Jan 2011 09:58:37 +0000 (-0800) Subject: Add a way of seeing other users' chatter X-Git-Tag: v1.0-ish~4 X-Git-Url: http://git.bytex64.net/?a=commitdiff_plain;h=db45aeacb003f72b853abbccd6f722770732438b;p=blerg.git Add a way of seeing other users' chatter --- diff --git a/www/css/blerg.css b/www/css/blerg.css index 4ff8277..66aeeb8 100644 --- a/www/css/blerg.css +++ b/www/css/blerg.css @@ -144,3 +144,7 @@ h1, h2, h3 { .author { font-weight: bold; } + +#usercontrols { + font-weight: bold; +} diff --git a/www/index.html b/www/index.html index ac215ab..9ca1cbb 100644 --- a/www/index.html +++ b/www/index.html @@ -19,6 +19,7 @@

Blërg!

Welcome

+
diff --git a/www/js/blerg.js b/www/js/blerg.js index 96f6cb2..1f413ad 100644 --- a/www/js/blerg.js +++ b/www/js/blerg.js @@ -208,6 +208,10 @@ User.prototype.show = function() { items.show(); $('rss').show(); $('rsslink').href = '/rss/' + this.username; + $$('[name=user.reflink]').each(function(e) { + e.href = '/#ref/' + this.username; + }.bind(this)); + $('usercontrols').show(); } User.prototype.loadItems = function(from, to) { @@ -332,6 +336,7 @@ Tag.prototype.show = function() { $('newer_link').hide(); $('rss').hide(); items.show(); + $('usercontrols').hide(); } function postPopup() { @@ -517,6 +522,7 @@ function hashSwitch() { $('older_link').hide(); $('welcome').show(); $('rss').hide(); + $('usercontrols').hide(); loadLatest(); } }