|
Lines 345-358
Link Here
|
| 345 |
orderable: true, |
345 |
orderable: true, |
| 346 |
render: function (data, type, row, meta) { |
346 |
render: function (data, type, row, meta) { |
| 347 |
let node = ''; |
347 |
let node = ''; |
|
|
348 |
let item_type_description = row._strings.item_type_id.str; |
| 348 |
[% UNLESS noItemTypeImages %] |
349 |
[% UNLESS noItemTypeImages %] |
| 349 |
let image_location = item_type_image_locations[row.item_type_id]; |
350 |
let image_location = item_type_image_locations[row.item_type_id]; |
| 350 |
let item_type_description = row._strings.item_type_id.str; |
|
|
| 351 |
node += image_location |
351 |
node += image_location |
| 352 |
? '<img src="%s" alt="%s" title="%s" /> '.format(escape_str(image_location), escape_str(item_type_description), escape_str(item_type_description)) |
352 |
? '<img src="%s" alt="%s" title="%s" /> '.format(escape_str(image_location), escape_str(item_type_description), escape_str(item_type_description)) |
| 353 |
: ''; |
353 |
: ''; |
| 354 |
node += '<span class="itypedesc itypetext">%s</span>'.format(escape_str(item_type_description)); |
|
|
| 355 |
[% END %] |
354 |
[% END %] |
|
|
355 |
node += '<span class="itypedesc itypetext">%s</span>'.format(escape_str(item_type_description)); |
| 356 |
return node; |
356 |
return node; |
| 357 |
} |
357 |
} |
| 358 |
}, |
358 |
}, |
| 359 |
- |
|
|