From db45aeacb003f72b853abbccd6f722770732438b Mon Sep 17 00:00:00 2001 From: Chip Black Date: Fri, 28 Jan 2011 01:58:37 -0800 Subject: [PATCH] Add a way of seeing other users' chatter --- www/css/blerg.css | 4 ++++ www/index.html | 1 + www/js/blerg.js | 6 ++++++ 3 files changed, 11 insertions(+) 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(); } } -- 2.25.1