1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

trim polymer usage

This commit is contained in:
Luke Pulverenti 2016-06-25 21:33:16 -04:00
parent 1fd4ea266c
commit 8ff44e06a3
9 changed files with 78 additions and 84 deletions

View file

@ -1,21 +1,21 @@
define(['scripts/livetvcomponents', 'emby-button'], function () {
define(['scripts/livetvcomponents', 'emby-button', 'listViewStyle'], function () {
function getRecordingGroupHtml(group) {
var html = '';
html += '<paper-icon-item>';
html += '<div class="listItem">';
html += '<button type="button" is="emby-button" class="fab mini autoSize blue" item-icon><i class="md-icon">live_tv</i></button>';
html += '<paper-item-body two-line>';
html += '<div class="listItemBody">';
html += '<a href="livetvrecordinglist.html?groupid=' + group.Id + '" class="clearLink">';
html += '<div>';
html += group.Name;
html += '</div>';
html += '<div secondary>';
html += '<div class="secondary">';
if (group.RecordingCount == 1) {
html += Globalize.translate('ValueItemCount', group.RecordingCount);
} else {
@ -24,8 +24,8 @@
html += '</div>';
html += '</a>';
html += '</paper-item-body>';
html += '</paper-icon-item>';
html += '</div>';
html += '</div>';
return html;
}
@ -177,9 +177,7 @@
}).then(function (result) {
require(['paper-item-body', 'paper-icon-item'], function () {
renderRecordingGroups(context, result.Items);
});
renderRecordingGroups(context, result.Items);
});
}