zlacker

[return to "Please tell us what features you'd like in news.ycombinator"]
1. kiruba+45X1[view] [source] 2009-02-04 14:57:39
>>pg+(OP)
When we mouse-over a username, please display karma|member-since.
◧◩
2. brett+Br22[view] [source] 2009-02-18 23:32:55
>>kiruba+45X1
This worked for me:

  (attribute a          title          opstring)    
  (def byline (i)
    (pr " by ")
    (let u i!by
     (tag (a href (user-url u)
             title (string "karma: " (karma u) 
                           " | created: " (text-age:user-age u)))
          (pr u)))
    (pr " " (text-age:item-age i) " "))
I didn't really look into the performance cost of calling uvar for every byline; that's probably not ideal.
[go to top]