Users without a selected main character is not a problem anymore. Main will be listed as "User: [username]" and will be highlighted. Also added a row showing corp of main character.

This commit is contained in:
Ydmir
2016-01-22 21:25:30 +01:00
parent b7c1c8469d
commit f4eac57b0f
3 changed files with 36 additions and 18 deletions

View File

@@ -1,6 +1,5 @@
{% extends "public/base.html" %}
{% load bootstrap %}
{% load corputils_extras %}
{% block title %}Alliance Auth{% endblock %}
{% block page_title %}Corporation Member Tracking{% endblock page_title %}
@@ -54,24 +53,31 @@
<table class="table table-condensed">
<tr>
<th class="text-center">Main character</th>
<th class="text-center">Main corporation</th>
<th class="text-center">Character list</th>
</tr>
{% for main, alts in characters_with_api %}
<tr>
{% for mainchar, player in characters_with_api %}
<tr >
<td class="text-center">
<p class="">{{ main }}</p>
<p class="">{{ mainchar }}</p>
</td>
<td class="text-center" {% if not corp.corporation_name == player.maincorp%} bgcolor="#FF99AA" {% endif %} >
<p class="">{{ player.maincorp }}</p>
</td>
<td class="text-center">
{% for name in alts %}
<p class="">{{ name}}</p>
{% for charname in player.altlist %}
<p class="">{{ charname }}</p>
{% endfor %}
</td>
</tr>
{% endfor %}
{% for main, value in characters_without_api %}
<tr bgcolor="#DD5500">
{% for charname in characters_without_api %}
<tr bgcolor="#DD8822">
<td class="text-center">
<p class="">{{ main }}</p>
<p class="">{{ charname }}</p>
</td>
<td class="text-center">
<p class=""></p>
</td>
<td class="text-center">
<p class="">No API registered!</p>

View File

@@ -1,7 +1,6 @@
{% extends "public/base.html" %}
{% load bootstrap %}
{% load staticfiles %}
{% load corputils_extras %}
{% block title %}Alliance Auth{% endblock %}
@@ -10,7 +9,7 @@
{% block content %}
<div class="col-lg-12">
{% if perms.auth.corp_stats %}
{% if perms.auth.corputils %}
<h1 class="page-header text-center">Member Search Results
<div class="text-right">
<!-- Button trigger modal -->
@@ -42,7 +41,7 @@
{% endif %}
</div>
{% if perms.auth.corp_stats %}
{% if perms.auth.corputils %}
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">