Add a way of seeing other users' chatter
authorChip Black <bytex64@bytex64.net>
Fri, 28 Jan 2011 09:58:37 +0000 (01:58 -0800)
committerChip Black <bytex64@bytex64.net>
Thu, 3 Feb 2011 08:37:43 +0000 (00:37 -0800)
www/css/blerg.css
www/index.html
www/js/blerg.js

index 4ff8277..66aeeb8 100644 (file)
@@ -144,3 +144,7 @@ h1, h2, h3 {
 .author {
        font-weight: bold;
 }
+
+#usercontrols {
+       font-weight: bold;
+}
index ac215ab..9ca1cbb 100644 (file)
@@ -19,6 +19,7 @@
     <img src="/images/blerglogo.png" class="logo" width="125" height="122">
     <h1><a href="/">BlĂ«rg!</a></h1>
     <h2><span name="section">Welcome</span></h2>
+    <div id="usercontrols" style="display:none"><a href="#" name="user.reflink">[chatter]</a></div>
   </div>
   <div id="controls">
     <form style="font-size: small" id="login" onsubmit="loginStatus.login($('login.username').value, $('login.password').value); return false">
index 96f6cb2..1f413ad 100644 (file)
@@ -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();
     }
 }