From 1fcb5ee549fa7ba4b7bfa7e62c15dbb8a01c38b5 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sat, 3 Apr 2021 13:09:45 -0400 Subject: Some changes to make supporting a demo environment easier. Docker compose demo. --- cmd/web/templates/index.html | 45 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) (limited to 'cmd/web/templates/index.html') diff --git a/cmd/web/templates/index.html b/cmd/web/templates/index.html index eaaf722..6f015af 100644 --- a/cmd/web/templates/index.html +++ b/cmd/web/templates/index.html @@ -26,15 +26,24 @@ @@ -114,28 +125,37 @@

It also allows you to import games from across the network as well if you provide an HTTP url from which to download the game file as exported - from this application. + from this application. {{ if .Demo }}Downloads are however disabled for the + demo.{{end}}

+ {{ if .Demo }} + You would normally be able to download the application from here, but it's + disabled for the demo. See + here for more info. + {{ else }} You can download this application from this UI as well here. + {{ end }}

You can give people this link to view the library remotely and download games from your computer:

- http://{{.HostIP}}:{{.Port}}/ + {{.ShareLink}}

{{ else }}

Remote Steam library access

+ {{ if .Demo }}{{ else }} If you need this program to install the games click here. + {{ end }}

{{ end }} @@ -167,8 +187,15 @@ {{$key}} {{$val.GetSize}} + {{if $.Demo}} + + Download + + {{ else }} Download - + {{ end }} + @@ -357,7 +384,8 @@ - + + @@ -415,4 +443,11 @@ toast.show() } } + -- cgit v1.2.3