Always use absolute URLs for image diff review thumbnails

Review Request #8390 — Created Sept. 8, 2016 and submitted

Information

Review Board
release-2.5.x

Reviewers

Previously, only single image (or the latest image in a image diff) were
using absolute URLs in thumbnails, which would result in them not being
renderable in e-mails. This patch addresses the issue.

  • Ran unit tests.
  • Checked the generated HTML and saw that an absolute URL was used.
Description From Last Updated

Can you add a unit test for this?

chipx86chipx86
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/ui/image.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/ui/image.py
    
    
  2. 
      
chipx86
  1. 
      
  2. Show all issues

    Can you add a unit test for this?

  3. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/reviews/ui/image.py
        reviewboard/reviews/ui/tests.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/reviews/ui/image.py
        reviewboard/reviews/ui/tests.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.5.x (68cee6a)