Skip to content

Commit

Permalink
[CHANGE] Re-add character avatars and ship icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeufer committed Dec 30, 2023
1 parent ac7083e commit 6281ec2
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 84 deletions.
45 changes: 31 additions & 14 deletions aasrp/static/aasrp/javascript/aa-srp-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,33 @@ $(document).ready(() => {
},
{
data: 'fleet_name',
className: 'srp-request-fleet-name'
},
{
data: 'srp_code',
className: 'srp-request-srp-code'
},
{
data: 'request_code',
className: 'srp-request-code'
/**
* Render callback
*
* @param data
* @param type
* @param row
* @returns {string}
*/
render: (data, type, row) => {
return `
<p>${row.fleet_name}</p>
<p class="small text-muted">
${aaSrpSettings.translation.dataTable.content.srpCode}: ${row.srp_code}
<br>${aaSrpSettings.translation.dataTable.content.srpCode}: ${row.request_code}
</p>
`;
},
className: 'srp-request-fleet-details'
},
// {
// data: 'srp_code',
// className: 'srp-request-srp-code'
// },
// {
// data: 'request_code',
// className: 'srp-request-code'
// },
{
data: 'ship_html',
render: {
Expand Down Expand Up @@ -228,11 +245,11 @@ $(document).ready(() => {
columnDefs: [
{
orderable: false,
targets: [8]
targets: [6]
},
{
visible: false,
targets: [9, 10, 11]
targets: [7, 8, 9]
}
],
order: [
Expand All @@ -241,15 +258,15 @@ $(document).ready(() => {
filterDropDown: {
columns: [
{
idx: 11,
idx: 9,
title: aaSrpSettings.translation.filter.character
},
{
idx: 10,
idx: 8,
title: aaSrpSettings.translation.filter.ship
},
{
idx: 9,
idx: 7,
title: aaSrpSettings.translation.filter.requestStatus
}
],
Expand Down
8 changes: 7 additions & 1 deletion aasrp/static/aasrp/javascript/aa-srp-dashboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6281ec2

Please sign in to comment.