Fix optimer, timerboard and corpstats

This commit is contained in:
ErikKalkoken 2020-02-15 23:26:22 +01:00
parent 55a5070691
commit 8771477884
3 changed files with 538 additions and 517 deletions

View File

@ -7,11 +7,12 @@
<div class="col-lg-12 text-center"> <div class="col-lg-12 text-center">
<table class="table"> <table class="table">
<tr> <tr>
<td class="text-center col-lg-6 <td class="text-center col-lg-6{% if corpstats.corp.alliance %}{% else %}col-lg-offset-3{% endif %}">
{% if corpstats.corp.alliance %}{% else %}col-lg-offset-3{% endif %}"><img <img class="ra-avatar" src="{{ corpstats.corp.logo_url_64 }}">
class="ra-avatar" src="{{ corpstats.corp.logo_url_128 }}"></td> </td>
{% if corpstats.corp.alliance %} {% if corpstats.corp.alliance %}
<td class="text-center col-lg-6"><img class="ra-avatar" src="{{ corpstats.corp.alliance.logo_url_128 }}"> <td class="text-center col-lg-6">
<img class="ra-avatar" src="{{ corpstats.corp.alliance.logo_url_64 }}">
</td> </td>
{% endif %} {% endif %}
</tr> </tr>
@ -33,11 +34,11 @@
<li><a href="#members" data-toggle="pill">{% trans 'Members' %} ({{ corpstats.member_count }})</a></li> <li><a href="#members" data-toggle="pill">{% trans 'Members' %} ({{ corpstats.member_count }})</a></li>
<li><a href="#unregistered" data-toggle="pill">{% trans 'Unregistered' %} ({{ unregistered.count }})</a></li> <li><a href="#unregistered" data-toggle="pill">{% trans 'Unregistered' %} ({{ unregistered.count }})</a></li>
</ul> </ul>
<div class="pull-right"> <div class="pull-right hidden-xs">
{% trans "Last update:" %} {{ corpstats.last_update|naturaltime }} {% trans "Last update:" %} {{ corpstats.last_update|naturaltime }}&nbsp;
<a class="btn btn-success" type="button" href="{% url 'corputils:update' corpstats.corp.corporation_id %}" title="Update Now"> <a class="btn btn-success" type="button" href="{% url 'corputils:update' corpstats.corp.corporation_id %}" title="Update Now">
<span class="glyphicon glyphicon-refresh"></span> <span class="glyphicon glyphicon-refresh"></span>
</a> </a>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>

View File

@ -2,44 +2,46 @@
{% load evelinks %} {% load evelinks %}
{% block content %} {% block content %}
<table class="table"> <div class="table-responsive">
<thead> <table class="table">
<tr> <thead>
<th class="text-center col-lg-3">{% trans "Operation Name" %}</th> <tr>
<th class="text-center col lg-2">{% trans "Doctrine" %}</th> <th class="text-center col-lg-3">{% trans "Operation Name" %}</th>
<th class="text-center col-lg-1">{% trans "Form Up System" %}</th> <th class="text-center col lg-2">{% trans "Doctrine" %}</th>
<th class="text-center col-lg-1">{% trans "Start Time" %}</th> <th class="text-center col-lg-1">{% trans "Form Up System" %}</th>
<th class="text-center col-lg-1">{% trans "Local Time" %}</th> <th class="text-center col-lg-1">{% trans "Start Time" %}</th>
<th class="text-center col-lg-1">{% trans "Duration" %}</th> <th class="text-center col-lg-1">{% trans "Local Time" %}</th>
<th class="text-center col-lg-1">{% trans "FC" %}</th> <th class="text-center col-lg-1">{% trans "Duration" %}</th>
{% if perms.auth.optimer_management %} <th class="text-center col-lg-1">{% trans "FC" %}</th>
<th class="text-center col-lg-1">{% trans "Creator" %}</th> {% if perms.auth.optimer_management %}
<th class="text-center col-lg-2">{% trans "Action" %}</th> <th class="text-center col-lg-1">{% trans "Creator" %}</th>
{% endif %} <th class="text-center col-lg-2">{% trans "Action" %}</th>
</tr> {% endif %}
</thead> </tr>
{% for ops in timers %} </thead>
<tbody> {% for ops in timers %}
<tr> <tbody>
<td class="text-center">{{ ops.operation_name }}</td> <tr>
<td class="text-center">{{ ops.doctrine }}</td> <td class="text-center">{{ ops.operation_name }}</td>
<td class="text-center"> <td class="text-center">{{ ops.doctrine }}</td>
<a href="{{ ops.system|dotlan_solar_system_url }}">{{ ops.system }}</a> <td class="text-center">
</td> <a href="{{ ops.system|dotlan_solar_system_url }}">{{ ops.system }}</a>
<td class="text-center" nowrap>{{ ops.start | date:"Y-m-d H:i" }}</td> </td>
<td class="text-center" nowrap><div id="localtime{{ ops.id }}"></div><div id="countdown{{ ops.id }}"></div></td> <td class="text-center" nowrap>{{ ops.start | date:"Y-m-d H:i" }}</td>
<td class="text-center">{{ ops.duration }}</td> <td class="text-center" nowrap><div id="localtime{{ ops.id }}"></div><div id="countdown{{ ops.id }}"></div></td>
<td class="text-center">{{ ops.fc }}</td> <td class="text-center">{{ ops.duration }}</td>
{% if perms.auth.optimer_management %} <td class="text-center">{{ ops.fc }}</td>
<td class="text-center">{{ ops.eve_character }}</td> {% if perms.auth.optimer_management %}
<td class="text-center"> <td class="text-center">{{ ops.eve_character }}</td>
<a href="{% url 'optimer:remove' ops.id %}" class="btn btn-danger"> <td class="text-center">
<span class="glyphicon glyphicon-remove"></span> <a href="{% url 'optimer:remove' ops.id %}" class="btn btn-danger">
</a><a href="{% url 'optimer:edit' ops.id %}" class="btn btn-info"><span class="glyphicon glyphicon-pencil"></span></a> <span class="glyphicon glyphicon-remove"></span>
</td> </a><a href="{% url 'optimer:edit' ops.id %}" class="btn btn-info"><span class="glyphicon glyphicon-pencil"></span></a>
{% endif %} </td>
</tr> {% endif %}
</tbody> </tr>
{% endfor %} </tbody>
</table> {% endfor %}
</table>
</div>
{% endblock content %} {% endblock content %}

View File

@ -12,7 +12,9 @@
<h1 class="page-header text-center">{% trans "Structure Timers" %} <h1 class="page-header text-center">{% trans "Structure Timers" %}
<div class="text-right"> <div class="text-right">
{% if perms.auth.timer_management %} {% if perms.auth.timer_management %}
<a href="{% url 'timerboard:add' %}" class="btn btn-success">{% trans "Create Structure Timer" %}</a> <a href="{% url 'timerboard:add' %}" class="btn btn-success">
{% trans "Create Structure Timer" %}
</a>
{% endif %} {% endif %}
</div> </div>
</h1> </h1>
@ -24,484 +26,500 @@
</div> </div>
{% if corp_timers %} {% if corp_timers %}
<h4><b>{% trans "Corp Timers" %}</b></h4> <h4><b>{% trans "Corp Timers" %}</b></h4>
<table class="table"> <div class="table-responsive">
<tr> <table class="table">
<th style="width:150px" class="text-center">{% trans "Details" %}</th> <tr>
<th class="text-center">{% trans "Objective" %}</th> <th style="width:150px" class="text-center">{% trans "Details" %}</th>
<th class="text-center">{% trans "System" %}</th> <th class="text-center">{% trans "Objective" %}</th>
<th class="text-center">{% trans "Structure" %}</th> <th class="text-center">{% trans "System" %}</th>
<th class="text-center">{% trans "Eve Time" %}</th> <th class="text-center">{% trans "Structure" %}</th>
<th class="text-center">{% trans "Local Time" %}</th> <th class="text-center">{% trans "Eve Time" %}</th>
<th class="text-center">{% trans "Creator" %}</th> <th class="text-center">{% trans "Local Time" %}</th>
{% if perms.auth.timer_management %} <th class="text-center">{% trans "Creator" %}</th>
<th class="text-center">{% trans "Action" %}</th> {% if perms.auth.timer_management %}
{% endif %} <th class="text-center">{% trans "Action" %}</th>
</tr> {% endif %}
{% for timer in corp_timers %} </tr>
{% if timer.important == True %} {% for timer in corp_timers %}
<tr class="danger"> {% if timer.important == True %}
{% else %} <tr class="danger">
<tr class="info"> {% else %}
{% endif %} <tr class="info">
<td style="width:150px" class="text-center">{{ timer.details }}</td> {% endif %}
<td class="text-center"> <td style="width:150px" class="text-center">{{ timer.details }}</td>
{% if timer.objective == "Hostile" %}
<div class="label label-danger">
{% trans "Hostile" %}
</div>
{% endif %}
{% if timer.objective == "Friendly" %}
<div class="label label-primary">
{% trans "Friendly" %}
</div>
{% endif %}
{% if timer.objective == "Neutral" %}
<div class="label label-default">
{% trans "Neutral" %}
</div>
{% endif %}
</td>
<td class="text-center"><a
href="{{ timer.system|dotlan_solar_system_url }}">{{ timer.system }} {{ timer.planet_moon }} </a>
</td>
<td class="text-center">
{% if timer.structure == "POCO" %}
<div class="label label-info">
POCO
</div>
{% endif %}
{% if timer.structure == "I-HUB" %}
<div class="label label-warning">
I-HUB
</div>
{% endif %}
{% if timer.structure == "TCU" %}
<div class="label label-danger">
TCU
</div>
{% endif %}
{% if timer.structure == "POS[S]" %}
<div class="label label-info">
POS [S]
</div>
{% endif %}
{% if timer.structure == "POS[M]" %}
<div class="label label-info">
POS [M]
</div>
{% endif %}
{% if timer.structure == "POS[L]" %}
<div class="label label-info">
POS [L]
</div>
{% endif %}
{% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %}
<div class="label label-danger">
Astrahus
</div>
{% endif %}
{% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %}
<div class="label label-danger">
Fortizar
</div>
{% endif %}
{% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %}
<div class="label label-danger">
Keepstar
</div>
{% endif %}
{% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %}
<div class="label label-warning">
Raitaru
</div>
{% endif %}
{% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %}
<div class="label label-warning">
Azbel
</div>
{% endif %}
{% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %}
<div class="label label-warning">
Sotiyo
</div>
{% endif %}
{% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %}
<div class="label label-warning">
Athanor
</div>
{% endif %}
{% if timer.structure == "Refinery[L]" or timer.structure == "Tatara"%}
<div class="label label-warning">
Tatara
</div>
{% endif %}
{% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %}
<div class="label label-warning">
Cyno Beacon
</div>
{% endif %}
{% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %}
<div class="label label-warning">
Tenebrex Cyno Jammer
</div>
{% endif %}
{% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %}
<div class="label label-warning">
Ansiblex Jump Gate
</div>
{% endif %}
{% if timer.structure == "Moon Mining Cycle" %}
<div class="label label-success">
Moon Mining Cycle
</div>
{% endif %}
{% if timer.structure == "Other" %}
<div class="label label-default">
Other
</div>
{% endif %}
</td>
<td class="text-center" nowrap>{{ timer.eve_time | date:"Y-m-d H:i" }}</td>
<td class="text-center" nowrap>
<div id="localtime{{ timer.id }}"></div>
<div id="countdown{{ timer.id }}"></div>
</td>
<td class="text-center">{{ timer.eve_character.character_name }}</td>
{% if perms.auth.timer_management %}
<td class="text-center"> <td class="text-center">
<a href="{% url 'timerboard:delete' timer.id %}" class="btn btn-danger"> {% if timer.objective == "Hostile" %}
<span class="glyphicon glyphicon-remove"></span> <div class="label label-danger">
</a> {% trans "Hostile" %}
<a href="{% url 'timerboard:edit' timer.id %}" class="btn btn-info"> </div>
<span class="glyphicon glyphicon-pencil"></span> {% endif %}
{% if timer.objective == "Friendly" %}
<div class="label label-primary">
{% trans "Friendly" %}
</div>
{% endif %}
{% if timer.objective == "Neutral" %}
<div class="label label-default">
{% trans "Neutral" %}
</div>
{% endif %}
</td>
<td class="text-center"><a href="{{ timer.system|dotlan_solar_system_url }}">
{{ timer.system }} {{ timer.planet_moon }}
</a> </a>
</td> </td>
{% endif %} <td class="text-center">
</tr> {% if timer.structure == "POCO" %}
{% endfor %} <div class="label label-info">
</table> POCO
</div>
{% endif %}
{% if timer.structure == "I-HUB" %}
<div class="label label-warning">
I-HUB
</div>
{% endif %}
{% if timer.structure == "TCU" %}
<div class="label label-danger">
TCU
</div>
{% endif %}
{% if timer.structure == "POS[S]" %}
<div class="label label-info">
POS [S]
</div>
{% endif %}
{% if timer.structure == "POS[M]" %}
<div class="label label-info">
POS [M]
</div>
{% endif %}
{% if timer.structure == "POS[L]" %}
<div class="label label-info">
POS [L]
</div>
{% endif %}
{% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %}
<div class="label label-danger">
Astrahus
</div>
{% endif %}
{% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %}
<div class="label label-danger">
Fortizar
</div>
{% endif %}
{% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %}
<div class="label label-danger">
Keepstar
</div>
{% endif %}
{% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %}
<div class="label label-warning">
Raitaru
</div>
{% endif %}
{% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %}
<div class="label label-warning">
Azbel
</div>
{% endif %}
{% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %}
<div class="label label-warning">
Sotiyo
</div>
{% endif %}
{% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %}
<div class="label label-warning">
Athanor
</div>
{% endif %}
{% if timer.structure == "Refinery[L]" or timer.structure == "Tatara"%}
<div class="label label-warning">
Tatara
</div>
{% endif %}
{% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %}
<div class="label label-warning">
Cyno Beacon
</div>
{% endif %}
{% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %}
<div class="label label-warning">
Tenebrex Cyno Jammer
</div>
{% endif %}
{% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %}
<div class="label label-warning">
Ansiblex Jump Gate
</div>
{% endif %}
{% if timer.structure == "Moon Mining Cycle" %}
<div class="label label-success">
Moon Mining Cycle
</div>
{% endif %}
{% if timer.structure == "Other" %}
<div class="label label-default">
Other
</div>
{% endif %}
</td>
<td class="text-center" nowrap>{{ timer.eve_time | date:"Y-m-d H:i" }}</td>
<td class="text-center" nowrap>
<div id="localtime{{ timer.id }}"></div>
<div id="countdown{{ timer.id }}"></div>
</td>
<td class="text-center">{{ timer.eve_character.character_name }}</td>
{% if perms.auth.timer_management %}
<td class="text-center">
<a href="{% url 'timerboard:delete' timer.id %}" class="btn btn-danger">
<span class="glyphicon glyphicon-remove"></span>
</a>
<a href="{% url 'timerboard:edit' timer.id %}" class="btn btn-info">
<span class="glyphicon glyphicon-pencil"></span>
</a>
</td>
{% endif %}
</tr>
{% endfor %}
</table>
</div>
{% endif %} {% endif %}
<h4><b>{% trans "Next Timers" %}</b></h4> <h4><b>{% trans "Next Timers" %}</b></h4>
{% if future_timers %} {% if future_timers %}
<table class="table"> <div class="table-responsive">
<tr> <table class="table">
<th style="width:150px" class="text-center">{% trans "Details" %}</th> <tr>
<th class="text-center">{% trans "Objective" %}</th> <th style="width:150px" class="text-center">{% trans "Details" %}</th>
<th class="text-center">{% trans "System" %}</th> <th class="text-center">{% trans "Objective" %}</th>
<th class="text-center">{% trans "Structure" %}</th> <th class="text-center">{% trans "System" %}</th>
<th class="text-center">{% trans "Eve Time" %}</th> <th class="text-center">{% trans "Structure" %}</th>
<th class="text-center">{% trans "Local Time" %}</th> <th class="text-center">{% trans "Eve Time" %}</th>
<th class="text-center">{% trans "Creator" %}</th> <th class="text-center">{% trans "Local Time" %}</th>
{% if perms.auth.timer_management %} <th class="text-center">{% trans "Creator" %}</th>
<th class="text-center">{% trans "Action" %}</th> {% if perms.auth.timer_management %}
{% endif %} <th class="text-center">{% trans "Action" %}</th>
</tr> {% endif %}
{% for timer in future_timers %} </tr>
{% if timer.important == True %} {% for timer in future_timers %}
<tr class="danger"> {% if timer.important == True %}
{% else %} <tr class="danger">
<tr class="info"> {% else %}
{% endif %} <tr class="info">
<td style="width:150px" class="text-center">{{ timer.details }}</td> {% endif %}
<td class="text-center"> <td style="width:150px" class="text-center">{{ timer.details }}</td>
{% if timer.objective == "Hostile" %} <td class="text-center">
<div class="label label-danger"> {% if timer.objective == "Hostile" %}
{% trans "Hostile" %} <div class="label label-danger">
</div> {% trans "Hostile" %}
{% endif %} </div>
{% if timer.objective == "Friendly" %} {% endif %}
<div class="label label-primary"> {% if timer.objective == "Friendly" %}
{% trans "Friendly" %} <div class="label label-primary">
</div> {% trans "Friendly" %}
{% endif %} </div>
{% if timer.objective == "Neutral" %} {% endif %}
<div class="label label-default"> {% if timer.objective == "Neutral" %}
{% trans "Neutral" %} <div class="label label-default">
</div> {% trans "Neutral" %}
{% endif %} </div>
</td> {% endif %}
<td class="text-center"> </td>
<a href="{{ timer.system|dotlan_solar_system_url }}">{{ timer.system }} {{ timer.planet_moon }}</a> <td class="text-center">
</td> <a href="{{ timer.system|dotlan_solar_system_url }}">
<td class="text-center"> {{ timer.system }} {{ timer.planet_moon }}
{% if timer.structure == "POCO" %} </a>
<div class="label label-info"> </td>
POCO <td class="text-center">
</div> {% if timer.structure == "POCO" %}
{% endif %} <div class="label label-info">
{% if timer.structure == "I-HUB" %} POCO
<div class="label label-warning"> </div>
I-HUB {% endif %}
</div> {% if timer.structure == "I-HUB" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "TCU" %} I-HUB
<div class="label label-danger"> </div>
TCU {% endif %}
</div> {% if timer.structure == "TCU" %}
{% endif %} <div class="label label-danger">
{% if timer.structure == "POS[S]" %} TCU
<div class="label label-info"> </div>
POS [S] {% endif %}
</div> {% if timer.structure == "POS[S]" %}
{% endif %} <div class="label label-info">
{% if timer.structure == "POS[M]" %} POS [S]
<div class="label label-info"> </div>
POS [M] {% endif %}
</div> {% if timer.structure == "POS[M]" %}
{% endif %} <div class="label label-info">
{% if timer.structure == "POS[L]" %} POS [M]
<div class="label label-info"> </div>
POS [L] {% endif %}
</div> {% if timer.structure == "POS[L]" %}
{% endif %} <div class="label label-info">
{% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %} POS [L]
<div class="label label-danger"> </div>
Astrahus {% endif %}
</div> {% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %}
{% endif %} <div class="label label-danger">
{% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %} Astrahus
<div class="label label-danger"> </div>
Fortizar {% endif %}
</div> {% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %}
{% endif %} <div class="label label-danger">
{% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %} Fortizar
<div class="label label-danger"> </div>
Keepstar {% endif %}
</div> {% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %}
{% endif %} <div class="label label-danger">
{% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %} Keepstar
<div class="label label-warning"> </div>
Raitaru {% endif %}
</div> {% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %} Raitaru
<div class="label label-warning"> </div>
Azbel {% endif %}
</div> {% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %} Azbel
<div class="label label-warning"> </div>
Sotiyo {% endif %}
</div> {% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %} Sotiyo
<div class="label label-warning"> </div>
Athanor {% endif %}
</div> {% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Refinery[L]" or timer.structure == "Tatara" %} Athanor
<div class="label label-warning"> </div>
Tatara {% endif %}
</div> {% if timer.structure == "Refinery[L]" or timer.structure == "Tatara" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %} Tatara
<div class="label label-warning"> </div>
Pharolux Cyno Beacon {% endif %}
</div> {% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %} Pharolux Cyno Beacon
<div class="label label-warning"> </div>
Tenebrex Cyno Jammer {% endif %}
</div> {% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %} Tenebrex Cyno Jammer
<div class="label label-warning"> </div>
Ansiblex Jump Gate {% endif %}
</div> {% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Moon Mining Cycle" %} Ansiblex Jump Gate
<div class="label label-success"> </div>
Moon Mining Cycle {% endif %}
</div> {% if timer.structure == "Moon Mining Cycle" %}
{% endif %} <div class="label label-success">
{% if timer.structure == "Other" %} Moon Mining Cycle
<div class="label label-default"> </div>
Other {% endif %}
</div> {% if timer.structure == "Other" %}
{% endif %} <div class="label label-default">
</td> Other
<td class="text-center" nowrap>{{ timer.eve_time | date:"Y-m-d H:i" }}</td> </div>
<td class="text-center" nowrap> {% endif %}
<div id="localtime{{ timer.id }}"></div> </td>
<div id="countdown{{ timer.id }}"></div> <td class="text-center" nowrap>{{ timer.eve_time | date:"Y-m-d H:i" }}</td>
</td> <td class="text-center" nowrap>
<td class="text-center">{{ timer.eve_character.character_name }}</td> <div id="localtime{{ timer.id }}"></div>
{% if perms.auth.timer_management %} <div id="countdown{{ timer.id }}"></div>
<td class="text-center"> </td>
<a href="{% url 'timerboard:delete' timer.id %}" class="btn btn-danger"> <td class="text-center">{{ timer.eve_character.character_name }}</td>
<span class="glyphicon glyphicon-remove"></span> {% if perms.auth.timer_management %}
</a> <td class="text-center">
<a href="{% url 'timerboard:edit' timer.id %}" class="btn btn-info"> <a href="{% url 'timerboard:delete' timer.id %}" class="btn btn-danger">
<span class="glyphicon glyphicon-pencil"></span> <span class="glyphicon glyphicon-remove"></span>
</a> </a>
</td> <a href="{% url 'timerboard:edit' timer.id %}" class="btn btn-info">
{% endif %} <span class="glyphicon glyphicon-pencil"></span>
</tr> </a>
{% endfor %} </td>
</table> {% endif %}
</tr>
{% endfor %}
</table>
</div>
{% else %} {% else %}
<div class="alert alert-warning text-center">{% trans "No upcoming timers." %}</div> <div class="alert alert-warning text-center">
{% trans "No upcoming timers." %}
</div>
{% endif %} {% endif %}
<h4><b>{% trans "Past Timers" %}</b></h4> <h4><b>{% trans "Past Timers" %}</b></h4>
{% if past_timers %} {% if past_timers %}
<table class="table"> <div class="table-responsive">
<tr> <table class="table">
<th style="width:150px" class="text-center">{% trans "Details" %}</th> <tr>
<th class="text-center">{% trans "Objective" %}</th> <th style="width:150px" class="text-center">{% trans "Details" %}</th>
<th class="text-center">{% trans "System" %}</th> <th class="text-center">{% trans "Objective" %}</th>
<th class="text-center">{% trans "Structure" %}</th> <th class="text-center">{% trans "System" %}</th>
<th class="text-center">{% trans "Eve Time" %}</th> <th class="text-center">{% trans "Structure" %}</th>
<th class="text-center">{% trans "Local Time" %}</th> <th class="text-center">{% trans "Eve Time" %}</th>
<th class="text-center">{% trans "Creator" %}</th> <th class="text-center">{% trans "Local Time" %}</th>
{% if perms.auth.timer_management %} <th class="text-center">{% trans "Creator" %}</th>
<th class="text-center">{% trans "Action" %}</th> {% if perms.auth.timer_management %}
{% endif %} <th class="text-center">{% trans "Action" %}</th>
</tr> {% endif %}
{% for timer in past_timers %} </tr>
{% if timer.important == True %} {% for timer in past_timers %}
<tr class="danger"> {% if timer.important == True %}
{% else %} <tr class="danger">
<tr class="info"> {% else %}
{% endif %} <tr class="info">
<td style="width:150px" class="text-center">{{ timer.details }}</td> {% endif %}
<td class="text-center"> <td style="width:150px" class="text-center">{{ timer.details }}</td>
{% if timer.objective == "Hostile" %} <td class="text-center">
<div class="label label-danger"> {% if timer.objective == "Hostile" %}
{% trans "Hostile" %} <div class="label label-danger">
</div> {% trans "Hostile" %}
{% endif %} </div>
{% if timer.objective == "Friendly" %} {% endif %}
<div class="label label-primary"> {% if timer.objective == "Friendly" %}
{% trans "Friendly" %} <div class="label label-primary">
</div> {% trans "Friendly" %}
{% endif %} </div>
{% if timer.objective == "Neutral" %} {% endif %}
<div class="label label-default"> {% if timer.objective == "Neutral" %}
{% trans "Neutral" %} <div class="label label-default">
</div> {% trans "Neutral" %}
{% endif %} </div>
</td> {% endif %}
<td class="text-center"> </td>
<a href="{{ timer.system|dotlan_solar_system_url }}">{{ timer.system }} {{ timer.planet_moon }}</a> <td class="text-center">
</td> <a href="{{ timer.system|dotlan_solar_system_url }}">
<td class="text-center"> {{ timer.system }} {{ timer.planet_moon }}
{% if timer.structure == "POCO" %} </a>
<div class="label label-info"> </td>
POCO <td class="text-center">
</div> {% if timer.structure == "POCO" %}
{% endif %} <div class="label label-info">
{% if timer.structure == "I-HUB" %} POCO
<div class="label label-warning"> </div>
I-HUB {% endif %}
</div> {% if timer.structure == "I-HUB" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "TCU" %} I-HUB
<div class="label label-danger"> </div>
TCU {% endif %}
</div> {% if timer.structure == "TCU" %}
{% endif %} <div class="label label-danger">
{% if timer.structure == "POS[S]" %} TCU
<div class="label label-info"> </div>
POS [S] {% endif %}
</div> {% if timer.structure == "POS[S]" %}
{% endif %} <div class="label label-info">
{% if timer.structure == "POS[M]" %} POS [S]
<div class="label label-info"> </div>
POS [M] {% endif %}
</div> {% if timer.structure == "POS[M]" %}
{% endif %} <div class="label label-info">
{% if timer.structure == "POS[L]" %} POS [M]
<div class="label label-info"> </div>
POS [L] {% endif %}
</div> {% if timer.structure == "POS[L]" %}
{% endif %} <div class="label label-info">
{% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %} POS [L]
<div class="label label-danger"> </div>
Astrahus {% endif %}
</div> {% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %}
{% endif %} <div class="label label-danger">
{% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %} Astrahus
<div class="label label-danger"> </div>
Fortizar {% endif %}
</div> {% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %}
{% endif %} <div class="label label-danger">
{% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %} Fortizar
<div class="label label-danger"> </div>
Keepstar {% endif %}
</div> {% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %}
{% endif %} <div class="label label-danger">
{% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %} Keepstar
<div class="label label-warning"> </div>
Raitaru {% endif %}
</div> {% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %} Raitaru
<div class="label label-warning"> </div>
Azbel {% endif %}
</div> {% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %} Azbel
<div class="label label-warning"> </div>
Sotiyo {% endif %}
</div> {% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %} Sotiyo
<div class="label label-warning"> </div>
Athanor {% endif %}
</div> {% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Refinery[L]" or timer.structure == "Tatara" %} Athanor
<div class="label label-warning"> </div>
Tatara {% endif %}
</div> {% if timer.structure == "Refinery[L]" or timer.structure == "Tatara" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %} Tatara
<div class="label label-warning"> </div>
Pharolux Cyno Beacon {% endif %}
</div> {% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %} Pharolux Cyno Beacon
<div class="label label-warning"> </div>
Tenebrex Cyno Jammer {% endif %}
</div> {% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %} Tenebrex Cyno Jammer
<div class="label label-warning"> </div>
Ansiblex Jump Gate {% endif %}
</div> {% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %}
{% endif %} <div class="label label-warning">
{% if timer.structure == "Moon Mining Cycle" %} Ansiblex Jump Gate
<div class="label label-success"> </div>
Moon Mining Cycle {% endif %}
</div> {% if timer.structure == "Moon Mining Cycle" %}
{% endif %} <div class="label label-success">
{% if timer.structure == "Other" %} Moon Mining Cycle
<div class="label label-default"> </div>
Other {% endif %}
</div> {% if timer.structure == "Other" %}
{% endif %} <div class="label label-default">
</td> Other
<td class="text-center" nowrap>{{ timer.eve_time | date:"Y-m-d H:i" }}</td> </div>
<td class="text-center" nowrap> {% endif %}
<div id="localtime{{ timer.id }}"></div> </td>
<div id="countdown{{ timer.id }}"></div> <td class="text-center" nowrap>{{ timer.eve_time | date:"Y-m-d H:i" }}</td>
</td> <td class="text-center" nowrap>
<td class="text-center">{{ timer.eve_character.character_name }}</td> <div id="localtime{{ timer.id }}"></div>
{% if perms.auth.timer_management %} <div id="countdown{{ timer.id }}"></div>
<td class="text-center"> </td>
<a href="{% url 'timerboard:delete' timer.id %}" class="btn btn-danger"> <td class="text-center">{{ timer.eve_character.character_name }}</td>
<span class="glyphicon glyphicon-remove"></span> {% if perms.auth.timer_management %}
</a> <td class="text-center">
<a href="{% url 'timerboard:edit' timer.id %}" class="btn btn-info"> <a href="{% url 'timerboard:delete' timer.id %}" class="btn btn-danger">
<span class="glyphicon glyphicon-pencil"></span> <span class="glyphicon glyphicon-remove"></span>
</a> </a>
</td> <a href="{% url 'timerboard:edit' timer.id %}" class="btn btn-info">
{% endif %} <span class="glyphicon glyphicon-pencil"></span>
</tr> </a>
{% endfor %} </td>
</table> {% endif %}
</tr>
{% endfor %}
</table>
</div>
{% else %} {% else %}
<div class="alert alert-warning text-center">{% trans "No past timers." %}</div> <div class="alert alert-warning text-center">
{% trans "No past timers." %}
</div>
{% endif %} {% endif %}
</div> </div>