Added shortname (.id.user()) data to `be html`s comment data
authorW. Trevor King <wking@drexel.edu>
Tue, 19 Jan 2010 15:46:41 +0000 (10:46 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 19 Jan 2010 15:46:41 +0000 (10:46 -0500)
libbe/command/html.py

index d0985cc52e7a58c076efe92a23b082256040546a..0b4cf89faea31cdcba353fd029e025acc963e532 100644 (file)
@@ -223,7 +223,7 @@ class HTMLGen (object):
                 comment_entries.append('<div class="comment root">')
             else:
                 comment_entries.append('<div class="comment">')
-            template_info = {}
+            template_info = {'shortname': comment.id.user()}
             for attr in ['uuid', 'author', 'date', 'body']:
                 value = getattr(comment, attr)
                 if attr == 'body':
@@ -611,7 +611,8 @@ class HTMLGen (object):
               <td class="bug_comment_label">Comment:</td>
               <td class="bug_comment">
             --------- Comment ---------<br/>
-            Name: %(uuid)s<br/>
+            ID: %(uuid)s<br/>
+            Short name: %(shortname)s<br/>
             From: %(author)s<br/>
             Date: %(date)s<br/>
             <br/>