diff --git a/static/js/app.js b/static/js/app.js index 28d3940..72406ec 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -831,6 +831,24 @@ const CURATED_LISTS = [ function initCuratedLists() { const container = document.getElementById('curated-lists'); if (!container) return; + + if (INITIAL_FEATURED && INITIAL_FEATURED.length) { + const section = document.createElement('div'); + section.className = 'curated-section'; + section.innerHTML = `
★ Featured
`; + const ul = document.createElement('ul'); + ul.className = 'curated-stations'; + INITIAL_FEATURED.forEach(s => { + const li = document.createElement('li'); + li.innerHTML = ` + ${escapeHtml(s.name)} + ${s.description ? `${escapeHtml(s.description)}` : ''}`; + ul.appendChild(li); + }); + section.appendChild(ul); + container.appendChild(section); + } + CURATED_LISTS.forEach(list => { const section = document.createElement('div'); section.className = 'curated-section'; diff --git a/templates/radio/player.html b/templates/radio/player.html index 3fa2da6..946d70e 100644 --- a/templates/radio/player.html +++ b/templates/radio/player.html @@ -202,6 +202,7 @@