Added missing subtitles column in movies table.

pull/1096/head
Louis Vézina 4 years ago
parent e820bcb1bd
commit d38cd38399

@ -27,6 +27,7 @@
<th>Subtitles Languages</th> <th>Subtitles Languages</th>
<th>Hearing-Impaired</th> <th>Hearing-Impaired</th>
<th>Forced</th> <th>Forced</th>
<th>Missing Subtitles</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@ -209,6 +210,22 @@
data: "forced", data: "forced",
className: "dt-center" className: "dt-center"
}, },
{
data: "missing_subtitles",
render: function (data) {
if (data && data !== 'None') {
var languages = '';
data.forEach(appendFunc);
return languages;
} else {
return null
}
function appendFunc(value) {
languages = languages + '<span class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="' + value.name + '">' + value.code2 + '</span> ';
}
}
},
{ {
data: null, data: null,
render: function (data) { render: function (data) {

Loading…
Cancel
Save