579795d83f
- Subscribe links: /channel/{CHANNEL_ID} links work now! - Channel name now gets hidden when it fails to fetch videos (- now also hiding verbose error handling text!)
16 lines
883 B
HTML
16 lines
883 B
HTML
{{start ?cnnc}}<h1>Channel "{{.subscribe}}"</h1>{{end ?cnnc}}
|
|
{{.err}}
|
|
{{start ?sub}}<a href='/subscribe.shs?id={{.channel_id}}' target='_blank'>Subscribe to {{.subscribe}}!</a><br><br>{{end ?sub}}
|
|
{{start ?unsub}}<a href='/unsubscribe.shs?id={{.channel_id}}' target='_blank' style="color:#d00;">Unsubscribe from {{.subscribe}}!</a><br><br>{{end ?unsub}}
|
|
{{start ?login}}<b><a href='/login.shs?r={{.login_r}}'>Log in</a> to subscribe to this channel!</b><br><br>{{end ?login}}
|
|
{{start ?suberror}}<b>Couldn't fetch Channel ID... :/</b> ((un-)subscribe buttons have been hidden for this reason)<br><br>{{end ?suberror}}
|
|
<div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));'>
|
|
{{start _videos}}
|
|
<div>
|
|
<a href='watch?v={{.id}}'>
|
|
<img src='https://i.ytimg.com/vi/{{.id}}/mqdefault.jpg'><br>
|
|
<b>{{.title}}</b></a>
|
|
</div>
|
|
{{end _videos}}
|
|
</div>
|