Thanks Yazan!

But that only hides the instructions for non-logged-in users.
I want to hide it from everyone, including the submitter themselves and 
anyone who can edit the request.

They should only appear the first time the submitter creates a request.
(And possibly also whenever that field's input box is visible)

Where in the code or docs should I look for a list of available methods 
that might help with this?

Thanks again

On Saturday, 11 August 2012 15:47:23 UTC+1, Yazan Medanat wrote:
> You can wrap your html within an if-statement using the django template 
> language.
> So it would be something like this:
> {% if request.user == review_request.submitter or 
> %}
> <span>...</span> <-- your code
> {% endif %}
> This goes in the .html files.
> Hope that helps.
> Yazan Medanat
> On Fri, Aug 10, 2012 at 11:17 AM, Will < 
> <javascript:>>wrote:
>> We've noticed many of our colleagues don't use our local installation of 
>> ReviewBoard the way we'd like them to, and they have common questions, etc.
>> We've edited the following files to provide some extra instructions and 
>> advice (such as "Only admins can add new groups, please ask X"):
>> reviews/
>> diffviewer/
>> templates/reviews/new_review_request.html
>> templates/reviews/review_request_box.html
>> We're fairly proficient with javascript, CSS and HTML.
>> We've added messages wrapped in a 'span' and css class of "docs" to mark 
>> up our extra instructions.
>> But what's the appropriate place to make it so these extra instructions 
>> in reviews/ do _not_ appear when the review is being _read_ by a 
>> reviewer?
>> We only want them to be visible (to the person posting the review) when 
>> they are first creating the review. The text should also be visible 
>> *before* the user clicks on the pencil icon.

Want to help the Review Board project? Donate today at
Happy user? Let us know at
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to