Modify ↓
Opened 17 years ago
Closed 17 years ago
#1747 closed enhancement (fixed)
patch - displays the number of comments for each file in a review's file list
Reported by: | Owned by: | mikechml | |
---|---|---|---|
Priority: | normal | Component: | PeerReviewPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
-
codereview/templates/peerReviewView.cs
58 58 <td>Filename</td> 59 59 <td>Revision</td> 60 60 <td>Line Numbers</td> 61 <td># of Comments</td> 61 62 </tr> 62 63 </thead> 63 64 <tbody> … … 72 73 <td><a href="<?cs var:trac.href.peerReviewPerform ?>?IDFile=<?cs var:item[0]?>"><?cs var:item[2]?></a></td> 73 74 <td><a href="<?cs var:trac.href.peerReviewPerform ?>?IDFile=<?cs var:item[0]?>"><?cs var:item[5]?></a></td> 74 75 <td><a href="<?cs var:trac.href.peerReviewPerform ?>?IDFile=<?cs var:item[0]?>"><?cs var:item[3]?>-<?cs var:item[4]?></a></td> 76 <td><a href="<?cs var:trac.href.peerReviewPerform ?>?IDFile=<?cs var:item[0]?>"><?cs var:item[6]?></a></td> 75 77 </tr> 76 78 <?cs /each ?> 77 79 <?cs /if ?> -
codereview/peerReviewView.py
81 81 newfile.append(struct.LineStart) 82 82 newfile.append(struct.LineEnd) 83 83 newfile.append(struct.Version) 84 newfile.append(len(dbBack.getCommentsByFileID(struct.IDFile))) 84 85 returnfiles.append(newfile) 85 86 newfile = [] 86 87 req.hdf['files'] = returnfiles
Attachments (0)
Note: See
TracTickets for help on using
tickets.
(In [2578]) Check ChangeLog. Fixes #1747