observers: hide it for CE edition.
- This hide is simple, but real logic is in the validate function which would only work if EE edition is installed.
This commit is contained in:
parent
92fb77497e
commit
2b3b3aa5a7
6 changed files with 14 additions and 4 deletions
|
|
@ -177,7 +177,7 @@
|
|||
<span class="calculate-reviewers">
|
||||
<h4>${_('loading...')}</h4>
|
||||
</span>
|
||||
|
||||
% if c.rhodecode_edition_id == 'EE':
|
||||
<div id="observers" class="pr-details-content observers">
|
||||
## members goes here, filled via JS based on initial selection !
|
||||
<input type="hidden" name="__start__" value="observer_members:sequence">
|
||||
|
|
@ -193,7 +193,12 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
% else:
|
||||
<h4>${_('This feature is available in RhodeCode EE edition only. Contact {sales_email} to obtain a trial license.').format(sales_email='<a href="mailto:sales@rhodecode.com">sales@rhodecode.com</a>')|n}</h4>
|
||||
<p>
|
||||
Pull request observers allows adding users who don't need to leave mandatory votes, but need to be aware about certain changes.
|
||||
</p>
|
||||
% endif
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -624,6 +624,7 @@
|
|||
</div>
|
||||
|
||||
## OBSERVERS
|
||||
% if c.rhodecode_edition_id == 'EE':
|
||||
<div class="sidebar-element clear-both">
|
||||
<% vote_title = _ungettext(
|
||||
'{} observer without voting right.',
|
||||
|
|
@ -674,6 +675,7 @@
|
|||
%endif
|
||||
</div>
|
||||
</div>
|
||||
% endif
|
||||
|
||||
## TODOs
|
||||
<div class="sidebar-element clear-both">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue