<script type="text/javascript" src="{{STATIC_URL}}js/api_functions.js"></script>
{% if perms.API.add_apikey or perms.API.change_apikey or perms.API.delete_apikey %}
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">API</a><ul class="dropdown-menu">
	<li><a href="#" onclick="GetAPIKeyDialog();">My API Keys</a></li>
	{% if perms.API.audit_keys %}
		<li><a href="#">Audit API Keys</a></li>
	{% endif %}
	{% if perms.API.view_full_data or perms.API.view_limited_data %}
		<li><a href="#">API Data Viewer</a></li>
	{% endif %}
	</ul></li>
{% endif %}

<script type="text/javascript" src="{{STATIC_URL}}js/api_functions.js"></script>
{% if perms.API.add_apikey or perms.API.change_apikey or perms.API.delete_apikey %}
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">API</a><ul class="dropdown-menu">
	<li><a href="#" onclick="GetAPIKeyDialog();">My API Keys</a></li>
	{% if perms.API.change_corpapikey %}
	    <li><a href="#" onclick="GetCorpAPIKeyDialog();">Corp API Keys</a></li>
	{% endif %}
	{% if perms.API.audit_keys %}
		<li><a href="#">Audit API Keys</a></li>
	{% endif %}
	{% if perms.API.view_full_data or perms.API.view_limited_data %}
		<li><a href="#">API Data Viewer</a></li>
	{% endif %}
	</ul></li>
{% endif %}

Add Corp API Management Nav
Add Corp API Management Nav