Hi, Terrence,

I have RB 2.0.20. There is html template with "ship it" button, I have it 
here - 
/usr/lib/python2.6/site-packages/ReviewBoard-2.0.20-py2.6.egg/reviewboard/templates/reviews/review_request_actions_primary.html

By default, it has following content:
{% load i18n %}
{% if request.user.is_authenticated %}
 <li class="primary"><a id="review-link" href="#">{% trans "Review" %}</a></
li>
 <li class="primary"><a id="shipit-link" href="#">{% trans "Ship It!" %}</a
></li>
{% endif %}

For my purposes I updated it as follows:
{% load i18n %}
{% if request.user.is_authenticated %}
 <li class="primary"><a id="review-link" href="#">{% trans "Review" %}</a></
li>
{% endif %}
{% if request.user.pk != review_request.submitter_id %}
 <li class="primary"><a id="shipit-link" href="#">{% trans "Ship It!" %}</a
></li>
{% endif %}


It means, that "ship it" button will be hidden for users in review requests 
posted by their own.


пятница, 19 июня 2015 г., 17:52:29 UTC+3 пользователь Dunnigan, Terrence J 
написал:
>
> Hi all,
>
>  
>
> Is there a way in any current or future Review Board release to disable 
> the “Ship it” menu item? By disable I mean hide it, don’t display it, or 
> keep it in the menu bar and just grey it out.
>
>  
>
> Terry
>
>  
>
>  
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to