sureshvv / reviewboard

Automatically exported from code.google.com/p/reviewboard
0 stars 0 forks source link

Provide a template for the Testing Done and Description sections #552

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is not a bug actually, but a question (or feature request). Is there a
way to define a template for testing done section which people should fill
in before publishing the review request?

Thanks,
MB

Original issue reported on code.google.com by mladen.b...@gmail.com on 23 Jul 2008 at 10:17

GoogleCodeExporter commented 9 years ago
There is not but it's something that could be added. Not sure whether we'll get 
to it
for 1.0 or not, but it's probably going to be easy with the new settings stuff.

I'm going to go a step further and say we should have this for both Testing 
Done and
Description.

Original comment by chip...@gmail.com on 23 Jul 2008 at 10:34

GoogleCodeExporter commented 9 years ago
While we're at it, why not add ability to make description and testing done 
required
fields?

Original comment by kevin.be...@beatport.com on 20 Aug 2008 at 8:04

GoogleCodeExporter commented 9 years ago
We could do that. It's one of those policy decisions I don't want to set 
globally in
Review Board, because it doesn't always make sense to put something in Testing 
Done,
but once the new site configuration code is in we can start letting people 
specify
things like this.

It's a 1.5 feature at the earliest, though, as we're trying to limit what new
features we accept for 1.0 so we can actually get a release out.

Original comment by chip...@gmail.com on 20 Aug 2008 at 8:42

GoogleCodeExporter commented 9 years ago

Original comment by trowb...@gmail.com on 18 Oct 2008 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by chip...@gmail.com on 20 Dec 2009 at 11:37

GoogleCodeExporter commented 9 years ago

Original comment by chip...@gmail.com on 4 Oct 2010 at 2:31

GoogleCodeExporter commented 9 years ago

Original comment by chip...@gmail.com on 5 Nov 2010 at 6:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just a quick hack to add a default text in case the review has not description.

In reviewboard/templates/reviews/new_review_request.html

change

<pre id="description" 
class="editable">{{review_request_details.description|escape}</pre>

with

  <pre id="description" class="editable">{% if review_request_details.description %}{{review_request_details.description|escape}}{% else %} YOUR TEMPLATE TEXT HERE {% endif %}</pre>

Maybe you can also use include to put the text as an external file

{% include "reviews/review_description_template.html" %}

Original comment by adiroi...@gmail.com on 9 Mar 2012 at 12:00

GoogleCodeExporter commented 9 years ago

Original comment by trowb...@gmail.com on 4 Feb 2014 at 10:43