mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Use svg for platform and library icons
This commit is contained in:
parent
e28965f8b3
commit
b209c29749
83 changed files with 699 additions and 137 deletions
|
@ -46,7 +46,7 @@ libraries_list_table_options = {
|
|||
if (rowData['library_thumb'].substring(0, 4) == "http") {
|
||||
$(td).html('<a href="library?section_id=' + rowData['section_id'] + '"><div class="libraries-poster-face" style="background-image: url(' + rowData['library_thumb'] + ');"></div></a>');
|
||||
} else {
|
||||
$(td).html('<a href="library?section_id=' + rowData['section_id'] + '"><div class="libraries-poster-face" style="background-image: url(' + rowData['library_thumb'].replace('/:/resources', '/images/libraries') + ');"></div></a>');
|
||||
$(td).html('<a href="library?section_id=' + rowData['section_id'] + '"><div class="libraries-poster-face svg-icon library-' + rowData['section_type'] + '"></div></a>');
|
||||
}
|
||||
} else {
|
||||
$(td).html('<a href="library?section_id=' + rowData['section_id'] + '"><div class="libraries-poster-face" style="background-image: url(../../images/cover.png);"></div></a>');
|
||||
|
@ -77,7 +77,7 @@ libraries_list_table_options = {
|
|||
"data": "section_type",
|
||||
"createdCell": function (td, cellData, rowData, row, col) {
|
||||
if (cellData !== null && cellData !== '') {
|
||||
$(td).html(cellData);
|
||||
$(td).html(capitalizeFirstLetter(cellData));
|
||||
}
|
||||
},
|
||||
"width": "10%",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue