add a page for tickets from gitea (#2)
Co-authored-by: Blake Ridgway <blake@blakeridgway.com> Reviewed-on: #2
This commit is contained in:
22
templates/stream.html
Normal file
22
templates/stream.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{{define "title"}}Stream — Ridgway Systems{{end}}
|
||||
{{define "meta-desc"}}Watch the Ridgway Systems live stream.{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<div class="page-header">
|
||||
<h1>Live Stream</h1>
|
||||
{{if .Live}}
|
||||
<p class="page-desc"><span class="live-badge">● live</span> Streaming now on Twitch.</p>
|
||||
{{else}}
|
||||
<p class="page-desc">Not currently live. Follow on <a href="https://twitch.tv/{{.Channel}}" target="_blank" rel="noopener">Twitch</a> to get notified.</p>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
<div class="stream-player">
|
||||
<iframe
|
||||
src="https://player.twitch.tv/?channel={{.Channel}}&parent={{.Parent}}&autoplay=false"
|
||||
height="100%"
|
||||
width="100%"
|
||||
allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user