mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Create Issue Templates
This commit is contained in:
parent
dec793bfac
commit
ec4232c00a
4
.gitignore
vendored
4
.gitignore
vendored
@ -62,5 +62,7 @@ celerybeat-schedule
|
|||||||
|
|
||||||
#pycharm
|
#pycharm
|
||||||
.idea/*
|
.idea/*
|
||||||
|
|
||||||
/nbproject/
|
/nbproject/
|
||||||
|
|
||||||
|
#gitlab configs
|
||||||
|
.gitlab/
|
||||||
|
14
.gitlab/issue_templates/Bug.md
Normal file
14
.gitlab/issue_templates/Bug.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Bug
|
||||||
|
|
||||||
|
- I have searched [issues](https://gitlab.com/allianceauth/allianceauth/issues?scope=all&utf8=%E2%9C%93&state=all) (Y/N):
|
||||||
|
- What Version of Alliance Auth:
|
||||||
|
- What Operating System:
|
||||||
|
- Version of other components relevant to issue eg. Service, Database:
|
||||||
|
|
||||||
|
Please include a brief description of your issue here.
|
||||||
|
|
||||||
|
Please include steps to reproduce the issue
|
||||||
|
|
||||||
|
Please include any tracebacks or logs
|
||||||
|
|
||||||
|
Please include the results of the command `pip list`
|
7
.gitlab/issue_templates/Feature Request.md
Normal file
7
.gitlab/issue_templates/Feature Request.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Feature Request
|
||||||
|
|
||||||
|
- Describe the feature are you requesting.
|
||||||
|
|
||||||
|
- Is this a Service (external integration), a Module (Alliance Auth extension) or an enhancement to an existing service/module.
|
||||||
|
|
||||||
|
- Describe why its useful to you or others.
|
@ -1,254 +1,254 @@
|
|||||||
{% extends "allianceauth/base.html" %}
|
{% extends "allianceauth/base.html" %}
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load staticfiles %}
|
{% load staticfiles %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block page_title %}FleetUp{% endblock page_title %}
|
{% block page_title %}FleetUp{% endblock page_title %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
{% include "fleetup/menu.html" %}
|
{% include "fleetup/menu.html" %}
|
||||||
<div>
|
<div>
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="active"><a data-toggle="tab" href="#operations">{% trans "Operations" %}</a></li>
|
<li class="active"><a data-toggle="tab" href="#operations">{% trans "Operations" %}</a></li>
|
||||||
<li><a data-toggle="tab" href="#timers">{% trans "Timers" %}</a></li>
|
<li><a data-toggle="tab" href="#timers">{% trans "Timers" %}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="tab-content row">
|
<div class="tab-content row">
|
||||||
<div id="operations" class="tab-pane fade in active">
|
<div id="operations" class="tab-pane fade in active">
|
||||||
<div class="col-lg-8">
|
<div class="col-lg-8">
|
||||||
{% if operations_list %}
|
{% if operations_list %}
|
||||||
{% for subject, start in operations_list %}
|
{% for subject, start in operations_list %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title"><b>{{ start.subject }}</b></h3>
|
<h3 class="panel-title"><b>{{ start.subject }}</b></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<table class="table table-condensed">
|
<table class="table table-condensed">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-6">{% trans "Start" %}</th>
|
<th class="col-md-6">{% trans "Start" %}</th>
|
||||||
<th class="col-md-6">{% trans "End" %}</th>
|
<th class="col-md-6">{% trans "End" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="col-md-6">{{ start.start|date:"l d M H:i" }} <span class="label label-success">{% trans "Eve Time" %}</span></td>
|
<td class="col-md-6">{{ start.start|date:"l d M H:i" }} <span class="label label-success">{% trans "Eve Time" %}</span></td>
|
||||||
|
|
||||||
<td class="col-md-6">{{ start.end|date:"l d M H:i" }} <span class="label label-success">{% trans "Eve Time" %}</span></td>
|
<td class="col-md-6">{{ start.end|date:"l d M H:i" }} <span class="label label-success">{% trans "Eve Time" %}</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="col-md-6">
|
<td class="col-md-6">
|
||||||
<span id="localtime{{ start.operation_id }}"></span> <span class='label label-success'>Local time</span><br>
|
<span id="localtime{{ start.operation_id }}"></span> <span class='label label-success'>Local time</span><br>
|
||||||
<div id="countdown{{ start.operation_id }}"></div>
|
<div id="countdown{{ start.operation_id }}"></div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="col-md-6"></td>
|
<td class="col-md-6"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
{{ start.details|linebreaks }}
|
{{ start.details|linebreaks }}
|
||||||
|
|
||||||
<table class="table table-condensed table-striped">
|
<table class="table table-condensed table-striped">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-4">{% trans "Location" %}</th>
|
<th class="col-md-4">{% trans "Location" %}</th>
|
||||||
<th class="col-md-4">{% trans "Doctrine" %}</th>
|
<th class="col-md-4">{% trans "Doctrine" %}</th>
|
||||||
<th class="col-md-2">{% trans "Organizer" %}</th>
|
<th class="col-md-2">{% trans "Organizer" %}</th>
|
||||||
<th class="col-md-2">{% trans "URL" %}</th>
|
<th class="col-md-2">{% trans "URL" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ start.location }} - {{ start.location_info }} <a href="http://evemaps.dotlan.net/system/{{ start.location }}" target="_blank" class="label label-success">Dotlan</a>
|
{{ start.location }} - {{ start.location_info }} <a href="http://evemaps.dotlan.net/system/{{ start.location }}" target="_blank" class="label label-success">Dotlan</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if start.doctrine %}
|
{% if start.doctrine %}
|
||||||
{% for doctrine in start.doctrine %}
|
{% for doctrine in start.doctrine %}
|
||||||
|
|
||||||
<a href="{% url 'fleetup:doctrine' doctrine.Id %}" class="label label-success">{{ doctrine.Name }}</a>
|
<a href="{% url 'fleetup:doctrine' doctrine.Id %}" class="label label-success">{{ doctrine.Name }}</a>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="label label-danger">{% trans "TBA" %}</span>
|
<span class="label label-danger">{% trans "TBA" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ start.organizer }}
|
{{ start.organizer }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% ifequal start.url "" %}
|
{% ifequal start.url "" %}
|
||||||
<div class="label label-danger">{% trans "No link" %}</div>
|
<div class="label label-danger">{% trans "No link" %}</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ start.url }}" target="_blank" class="label label-success">{% trans "External link" %}</a>
|
<a href="{{ start.url }}" target="_blank" class="label label-success">{% trans "External link" %}</a>
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>{% trans "There seems to be no Operations in the near future." %}</h3>
|
<h3>{% trans "There seems to be no Operations in the near future." %}</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-4">
|
<div class="col-lg-4">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h2 class="panel-title">{% trans "Current Eve Time:" %}</h2>
|
<h2 class="panel-title">{% trans "Current Eve Time:" %}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div id="current-time"></div>
|
<div id="current-time"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if timers_list %}
|
{% if timers_list %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h2 class="panel-title">{% trans "Timers" %}</h2>
|
<h2 class="panel-title">{% trans "Timers" %}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<table class="table table-condensed table-hover table-striped">
|
<table class="table table-condensed table-hover table-striped">
|
||||||
{% for notes, type in timers_list %}
|
{% for notes, type in timers_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ type.solarsystem }}
|
{{ type.solarsystem }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ type.expires|date:"l d M H:i" }}
|
{{ type.expires|date:"l d M H:i" }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="timers" class="tab-pane fade in">
|
<div id="timers" class="tab-pane fade in">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
{% if timers_list %}
|
{% if timers_list %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h2 class="panel-title">{% trans "Timers" %}</h2>
|
<h2 class="panel-title">{% trans "Timers" %}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<table class="table table-condensed table-hover table-striped">
|
<table class="table table-condensed table-hover table-striped">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-lg-1">{% trans "Type" %}</th>
|
<th class="col-lg-1">{% trans "Type" %}</th>
|
||||||
<th class="col-lg-1">{% trans "Structure" %}</th>
|
<th class="col-lg-1">{% trans "Structure" %}</th>
|
||||||
<th class="col-lg-2">{% trans "Location" %}</th>
|
<th class="col-lg-2">{% trans "Location" %}</th>
|
||||||
<th class="col-lg-2">{% trans "Expires(EVE-time)" %}</th>
|
<th class="col-lg-2">{% trans "Expires(EVE-time)" %}</th>
|
||||||
<th class="col-lg-1">{% trans "Owner" %}</th>
|
<th class="col-lg-1">{% trans "Owner" %}</th>
|
||||||
<th class="col-lg-2">{% trans "Note" %}</th>
|
<th class="col-lg-2">{% trans "Note" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for notes, type in timers_list %}
|
{% for notes, type in timers_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{% ifequal type.type "Final" %}
|
{% ifequal type.type "Final" %}
|
||||||
<span class="label label-danger">
|
<span class="label label-danger">
|
||||||
{{ type.type }}</span>{% else %}{{ type.type }}{% endifequal %}
|
{{ type.type }}</span>{% else %}{{ type.type }}{% endifequal %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ type.timer_type }}
|
{{ type.timer_type }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ type.solarsystem }} - Planet:{{ type.planet }} Moon:{{ type.moon }}
|
{{ type.solarsystem }} - Planet:{{ type.planet }} Moon:{{ type.moon }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ type.expires|date:"l d M H:i" }}
|
{{ type.expires|date:"l d M H:i" }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ type.owner }}
|
{{ type.owner }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ type.notes }}
|
{{ type.notes }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>{% trans "There seems to be no Timers in the near future." %}</h3>
|
<h3>{% trans "There seems to be no Timers in the near future." %}</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'bundles/moment-js.html' with locale=True %}
|
{% include 'bundles/moment-js.html' with locale=True %}
|
||||||
<script src="{% static 'js/timers.js' %}"></script>
|
<script src="{% static 'js/timers.js' %}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// Data
|
// Data
|
||||||
var timers = [
|
var timers = [
|
||||||
{% for start, op in operations_list %}
|
{% for start, op in operations_list %}
|
||||||
{
|
{
|
||||||
'id': {{ op.operation_id }},
|
'id': {{ op.operation_id }},
|
||||||
'start': moment("{{ op.start | date:"c" }}"),
|
'start': moment("{{ op.start | date:"c" }}"),
|
||||||
'end': moment("{{ op.end | date:"c" }}"),
|
'end': moment("{{ op.end | date:"c" }}"),
|
||||||
'expired': false
|
'expired': false
|
||||||
},
|
},
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
]
|
]
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
timedUpdate();
|
timedUpdate();
|
||||||
setAllLocalTimes();
|
setAllLocalTimes();
|
||||||
|
|
||||||
// Start timed updates
|
// Start timed updates
|
||||||
setInterval(timedUpdate, 1000);
|
setInterval(timedUpdate, 1000);
|
||||||
|
|
||||||
function timedUpdate() {
|
function timedUpdate() {
|
||||||
updateClock();
|
updateClock();
|
||||||
updateAllTimers();
|
updateAllTimers();
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateAllTimers () {
|
function updateAllTimers () {
|
||||||
var l = timers.length;
|
var l = timers.length;
|
||||||
for (var i=0; i < l; ++i) {
|
for (var i=0; i < l; ++i) {
|
||||||
if (timers[i].expired) continue;
|
if (timers[i].expired) continue;
|
||||||
updateTimer(timers[i]);
|
updateTimer(timers[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update a timer
|
* Update a timer
|
||||||
* @param timer Timer information
|
* @param timer Timer information
|
||||||
* @param timer.start Date of the timer
|
* @param timer.start Date of the timer
|
||||||
* @param timer.id Id number of the timer
|
* @param timer.id Id number of the timer
|
||||||
* @param timer.expired
|
* @param timer.expired
|
||||||
*/
|
*/
|
||||||
function updateTimer(timer) {
|
function updateTimer(timer) {
|
||||||
if (timer.start.isAfter(Date.now())) {
|
if (timer.start.isAfter(Date.now())) {
|
||||||
var duration = moment.duration(timer.start - moment(), 'milliseconds');
|
var duration = moment.duration(timer.start - moment(), 'milliseconds');
|
||||||
document.getElementById("countdown" + timer.id).innerHTML = getDurationString(duration);
|
document.getElementById("countdown" + timer.id).innerHTML = getDurationString(duration);
|
||||||
} else {
|
} else {
|
||||||
timer.expired = true;
|
timer.expired = true;
|
||||||
document.getElementById("countdown" + timer.id).innerHTML = "";
|
document.getElementById("countdown" + timer.id).innerHTML = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set all local time fields
|
* Set all local time fields
|
||||||
*/
|
*/
|
||||||
function setAllLocalTimes() {
|
function setAllLocalTimes() {
|
||||||
var l = timers.length;
|
var l = timers.length;
|
||||||
for (var i=0; i < l; ++i) {
|
for (var i=0; i < l; ++i) {
|
||||||
setLocalTime(timers[i]);
|
setLocalTime(timers[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the local time info for the timer
|
* Set the local time info for the timer
|
||||||
* @param timer Timer information
|
* @param timer Timer information
|
||||||
* @param timer.start Date of the timer
|
* @param timer.start Date of the timer
|
||||||
* @param timer.id Id number of the timer
|
* @param timer.id Id number of the timer
|
||||||
*/
|
*/
|
||||||
function setLocalTime(timer) {
|
function setLocalTime(timer) {
|
||||||
document.getElementById("localtime" + timer.id).innerHTML = timer.start.format("ddd @ LT");
|
document.getElementById("localtime" + timer.id).innerHTML = timer.start.format("ddd @ LT");
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateClock() {
|
function updateClock() {
|
||||||
document.getElementById("current-time").innerHTML = "<b>" + moment.utc().format('ddd, ll HH:mm:ss z') + "</b>";
|
document.getElementById("current-time").innerHTML = "<b>" + moment.utc().format('ddd, ll HH:mm:ss z') + "</b>";
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user