Changed to only using two permissions.

This commit is contained in:
Ydmir
2016-02-27 09:48:42 +01:00
parent cb50697537
commit c852d3f8e2
5 changed files with 107 additions and 122 deletions

View File

@@ -124,7 +124,7 @@
</li>
{% endif %}
{% if perms.auth.corp_stats %}
{% if perms.auth.corp_apis or perms.auth.alliance_apis %}
<li>
<a {% ifequal request.path "/corputils/" %} class="active" {% endifequal %}
href="{% url 'auth_corputils' %}"><i

View File

@@ -46,7 +46,7 @@
<nav class="navbar navbar-default">
<div class="container-fluid">
<ul class="nav navbar-nav navbar-wide">
{% if membercorp_list %}
{% if membercorp_list and perms.auth.alliance_apis %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Choose corporation <span class="caret"></span></a>
<ul class="dropdown-menu scrollable">
@@ -91,9 +91,7 @@
<th class="col-md-2">Main corporation</th>
<th class="col-md-2">Character list</th>
<th class="col-md-3">Killboard</th>
{% if sent_apis %}
<th class="col-md-2">API JackKnife</th>
{% endif %}
</tr>
{% for maincharname, player in characters_with_api %}
<tr >
@@ -124,7 +122,6 @@
<p><a href="https://zkillboard.com/character/{{ char.character_id }}/" class="label label-danger" target="_blank">Killboard</a></p>
{% endfor %}
</td>
{% if sent_apis %}
<td>
{% for apiinfo in player.apilist %}
<p>
@@ -136,7 +133,6 @@
</p>
{% endfor %}
</td>
{% endif %}
</tr>
{% endfor %}
</table>

View File

@@ -38,9 +38,7 @@
<th class="col-md-2">Character</th>
<th class="col-md-2">Main character</th>
<th class="col-md-5">Killboard</th>
{% if sent_apis %}
<th class="col-md-2">API JackKnife</th>
{% endif %}
</tr>
{% for result in results %}
<tr >
@@ -59,7 +57,6 @@
<p><a href="https://zkillboard.com/character/{{ result.char.character_id }}/" class="label label-danger" target="_blank">Killboard</a></p>
</td>
{% if sent_apis %}
<td>
{% if result.api_registered %}
<a href="{{ JACK_KNIFE_URL }}?usid={{ result.apiinfo.api_id }}&apik={{ result.apiinfo.api_key }}"
@@ -69,7 +66,6 @@
</a>
{% endif %}
</td>
{% endif %}
</tr>
{% endfor %}
</table>