##// END OF EJS Templates
threading: Add factory that creates curl session for each thread....
threading: Add factory that creates curl session for each thread. When creating a repo with an import url pointing to another repo on the same enterprise instance we call the vcssserver to check the url. The vcsserver then calls to enterprise to verify the url. This leads to two threads using the same cur session.

File last commit:

r1:854a839a default
r243:dae685be default
Show More
permissions_ips.html
67 lines | 2.5 KiB | text/html | HtmlLexer
project: added all source files and assets
r1
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Default IP Whitelist For All Users')}</h3>
</div>
<div class="panel-body">
<div class="ips_wrap">
<table class="rctable ip-whitelist">
<tr>
<th>IP Address</th>
<th>IP Range</th>
<th>Description</th>
<th></th>
</tr>
%if c.user_ip_map:
%for ip in c.user_ip_map:
<tr>
<td class="td-ip"><div class="ip">${ip.ip_addr}</div></td>
<td class="td-iprange"><div class="ip">${h.ip_range(ip.ip_addr)}</div></td>
<td class="td-description"><div class="ip">${ip.description}</div></td>
<td class="td-action">
${h.secure_form(url('edit_user_ips', user_id=c.user.user_id),method='delete')}
${h.hidden('del_ip_id',ip.ip_id)}
${h.hidden('default_user', 'True')}
${h.submit('remove_',_('Delete'),id="remove_ip_%s" % ip.ip_id,
class_="btn btn-link btn-danger", onclick="return confirm('"+_('Confirm to delete this ip: %s') % ip.ip_addr+"');")}
${h.end_form()}
</td>
</tr>
%endfor
%else:
<tr>
<td class="ip">${_('All IP addresses are allowed')}</td>
<td></td>
<td></td>
<td></td>
</tr>
%endif
</table>
</div>
${h.secure_form(url('edit_user_ips', user_id=c.user.user_id),method='put')}
<div class="form">
<!-- fields -->
<div class="fields">
<div class="field">
<div class="label">
<label for="new_ip">${_('New IP Address')}:</label>
</div>
<div class="input">
${h.hidden('default_user', 'True')}
${h.text('new_ip')} ${h.text('description', placeholder=_('Description...'))}
<span class="help-block">${_('Enter a comma separated list of IP Addresses like 127.0.0.1,\n'
'or use an IP Address with a mask 127.0.0.1/24, to create a network range.\n'
'To specify multiple addresses in a range, use the 127.0.0.1-127.0.0.10 syntax')}</span>
</div>
</div>
<div class="buttons">
${h.submit('save',_('Add'),class_="btn")}
${h.reset('reset',_('Reset'),class_="btn")}
</div>
</div>
</div>
${h.end_form()}
</div>
</div>