mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-13 10:36:25 +01:00
61 lines
2.8 KiB
HTML
61 lines
2.8 KiB
HTML
{% load i18n %}
|
|
{% load evelinks %}
|
|
|
|
<div class="col-12 mb-3">
|
|
<div class="card h-100">
|
|
<div class="card-body">
|
|
{% translate "Upcoming Timers" as widget_title %}
|
|
{% include "framework/dashboard/widget-title.html" with title=widget_title %}
|
|
|
|
<div>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">{% translate "Details" %}</th>
|
|
<th class="text-center">{% translate "Timer" %}</th>
|
|
<th class="text-center">{% translate "Type" %}</th>
|
|
<th class="text-center">{% translate "System" %}</th>
|
|
<th class="text-center">{% translate "EVE Time" %}</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{% for timer in timers %}
|
|
<tr>
|
|
<td class="text-center">
|
|
{{ timer.details }}
|
|
</td>
|
|
<td class="text-center">
|
|
{{ timer.get_timer_type_display }}
|
|
</td>
|
|
<td class="text-center" nowrap>
|
|
{% if timer.objective == "Hostile" %}
|
|
<div class="badge bg-danger">
|
|
{% translate "Hostile" %}
|
|
</div>
|
|
{% endif %}
|
|
{% if timer.objective == "Friendly" %}
|
|
<div class="badge bg-primary">
|
|
{% translate "Friendly" %}
|
|
</div>
|
|
{% endif %}
|
|
{% if timer.objective == "Neutral" %}
|
|
<div class="badge bg-default">
|
|
{% translate "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" nowrap>{{ timer.eve_time | date:"Y-m-d H:i" }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|