diff --git a/data/interfaces/default/js/tables/libraries.js b/data/interfaces/default/js/tables/libraries.js index 240670cc..903d5756 100644 --- a/data/interfaces/default/js/tables/libraries.js +++ b/data/interfaces/default/js/tables/libraries.js @@ -41,14 +41,16 @@ libraries_list_table_options = { "targets": [1], "data": "library_thumb", "createdCell": function (td, cellData, rowData, row, col) { + var inactive = ''; + if (!rowData['is_active']) { inactive = ''; } if (cellData !== null && cellData !== '') { if (rowData['library_thumb'].substring(0, 4) == "http") { - $(td).html('
'); + $(td).html('
' + inactive + '
'); } else { - $(td).html('
'); + $(td).html('
' + inactive + '
'); } } else { - $(td).html('
'); + $(td).html('
' + inactive + '
'); } }, "orderable": false, diff --git a/data/interfaces/default/library.html b/data/interfaces/default/library.html index fb57cda4..2d8364a9 100644 --- a/data/interfaces/default/library.html +++ b/data/interfaces/default/library.html @@ -62,9 +62,21 @@ DOCUMENTATION :: END
% if data['library_thumb'].startswith('http'): -
+
+ % if not data['is_active']: + + + + % endif +
% else: -
+
+ % if not data['is_active']: + + + + % endif +
% endif