mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-15 07:20:17 +02:00
Ensure all columns are perfectly aligned.
Prevent sorting/searching portraits and killboard links. Default sorting to character names.
This commit is contained in:
parent
a90a52f426
commit
b6b14f6f1c
@ -77,10 +77,10 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-center">{{ alt.character_name }}</td>
|
<td class="text-center" style="width:30%">{{ alt.character_name }}</td>
|
||||||
<td class="text-center">{{ alt.corporation_name }}</td>
|
<td class="text-center" style="width:30%">{{ alt.corporation_name }}</td>
|
||||||
<td class="text-center">{{ alt.alliance_name }}</td>
|
<td class="text-center" style="width:30%">{{ alt.alliance_name }}</td>
|
||||||
<td class="text-center">
|
<td class="text-center" style="width:10%">
|
||||||
<a href="https://zkillboard.com/character/{{ alt.character_id }}/"
|
<a href="https://zkillboard.com/character/{{ alt.character_id }}/"
|
||||||
class="label label-danger" target="_blank">
|
class="label label-danger" target="_blank">
|
||||||
{% trans "Killboard" %}
|
{% trans "Killboard" %}
|
||||||
@ -175,9 +175,25 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block extra_script %}
|
{% block extra_script %}
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#table-mains').DataTable();
|
$('#table-mains').DataTable({
|
||||||
$('#table-members').DataTable();
|
"columnDefs": [
|
||||||
$('#table-unregistered').DataTable();
|
{ "sortable": false, "targets": [1] },
|
||||||
|
],
|
||||||
|
});
|
||||||
|
$('#table-members').DataTable({
|
||||||
|
"columnDefs": [
|
||||||
|
{ "searchable": false, "targets": [0, 2] },
|
||||||
|
{ "sortable": false, "targets": [0, 2] },
|
||||||
|
],
|
||||||
|
"order": [[ 1, "asc" ]],
|
||||||
|
});
|
||||||
|
$('#table-unregistered').DataTable({
|
||||||
|
"columnDefs": [
|
||||||
|
{ "searchable": false, "targets": [0, 2] },
|
||||||
|
{ "sortable": false, "targets": [0, 2] },
|
||||||
|
],
|
||||||
|
"order": [[ 1, "asc" ]],
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user