Show the time a review request was added in detail view.

Review Request #1554 — Created April 29, 2010 and discarded

Information

Review Board
master

Reviewers

Shows Request Added field in review request detail, as requested by ticket 1594.
Tested manually.
RA
chipx86
  1. How does this look when the browser window is smaller?
    
    Might be nicer just to put this under "Updated"
  2. 
      
mike_conley
david
  1. 
      
  2. So I actually prefer this much better, but one nice bit of polish would be to check if they're the same and only show one date in that case.
  3. 
      
mike_conley
Review request changed
Change Summary:
Ok, I've added a template tag to try to detect whether or not the time_added and last_updated for the review request are significantly different.

I didn't just use a ifnotequals tag, because when a draft gets published, its "time_added" (I believe) gets cloned to the published review request, and publishing updates the "last_updated".  So time_added will never equal last_updated.  

The tag I've put in checks to see if the difference between the times is 45 seconds.  Pretty arbitrary.  Open to suggestions.
chipx86
  1. Actually, I'm not a fan of the fuzzy comparison. I think it makes sense to use ifnotequals, and then fix the timestamps so that the initial publish makes last_updated and time_added in sync.
  2.