• 
      

    Status API part 2: Small refactor of reviewtags.

    Review Request #8299 — Created July 19, 2016 and submitted

    Information

    Review Board
    release-3.0.x
    bef087a...

    Reviewers

    A couple template tags in the reviewtags library (reply_section and reply_list)
    took an entry as a parameter, but the only part of the entry that they cared
    about was the review. This change refactors that to pass in the review instead.

    I've also changed the review box template to directly reference the review as a
    variable rather than repeatedly accessing entry.review.

    • Verified that reviews and replies to reviews still displayed correctly.
    • Ran unit tests.
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/reviews/templatetags/reviewtags.py
      
      Ignored Files:
          reviewboard/templates/reviews/review_detail.html
          reviewboard/templates/reviews/review_reply_section.html
          reviewboard/templates/reviews/boxes/review.html
          reviewboard/templates/reviews/review_reply.html
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/reviews/templatetags/reviewtags.py
      
      Ignored Files:
          reviewboard/templates/reviews/review_detail.html
          reviewboard/templates/reviews/review_reply_section.html
          reviewboard/templates/reviews/boxes/review.html
          reviewboard/templates/reviews/review_reply.html
      
      
    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (1170afe)