mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-18 20:20:40 +00:00
Added missing subtitles column in movies table.
This commit is contained in:
parent
e820bcb1bd
commit
d38cd38399
1 changed files with 17 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
|||
<th>Subtitles Languages</th>
|
||||
<th>Hearing-Impaired</th>
|
||||
<th>Forced</th>
|
||||
<th>Missing Subtitles</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -209,6 +210,22 @@
|
|||
data: "forced",
|
||||
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,
|
||||
render: function (data) {
|
||||
|
|
Loading…
Reference in a new issue