diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2021-08-04 23:53:36 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2021-08-04 23:53:36 -0400 |
| commit | c202f2eca32e1ab2e313417168351df1c58ee062 (patch) | |
| tree | 6540629b337d2d769581baec26096ac0555f71f9 /cmd/web/templates | |
| parent | 742938b00222c7ad57ad11eb24850d9202c2503d (diff) | |
| download | steam-export-c202f2eca32e1ab2e313417168351df1c58ee062.tar.gz steam-export-c202f2eca32e1ab2e313417168351df1c58ee062.tar.xz | |
More major changes. Web UI works. Downloading games works. Status works. extractFile needs work
Diffstat (limited to 'cmd/web/templates')
| -rw-r--r-- | cmd/web/templates/index.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/cmd/web/templates/index.html b/cmd/web/templates/index.html index 0717005..9f8c4b0 100644 --- a/cmd/web/templates/index.html +++ b/cmd/web/templates/index.html @@ -26,7 +26,7 @@ <div class="collapse navbar-collapse" id="navbarsExampleDefault"> <ul class="navbar-nav me-auto mb-2 mb-md-0"> <li class="nav-item"> - {{ if .Demo }} + {{ if .App.Demo }} <span class="d-inline-block" tabindex="0" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Disabled for demo"> <a class="nav-link disabled" aria-current="page" href="#"> @@ -43,7 +43,7 @@ <li class="nav-item"> <a href="#" id="shareLink" - data-clipboard-text="{{$.ShareLink}}" + data-clipboard-text="{{$.App.ShareLink}}" class="nav-link"> Copy Share link </a> @@ -78,7 +78,7 @@ Version </a> </li> - {{if .Demo}}{{else}} + {{if .App.Demo}}{{else}} <li class="nav-item"> <a class="nav-link" href="/quit">Shutdown Server/Quit</a> </li> @@ -99,7 +99,7 @@ {{ if .Local }} <script src="/static/main.js"></script> - <h2>Library: {{.Lib.Folder}}</h2> + <h2>Library: {{.App.Library.Folder}}</h2> <div class="row"> <div id="installBarContainer" class="progress" style="display: none;"> @@ -125,11 +125,11 @@ <p> 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. {{ if .Demo }}Downloads are however disabled for the + from this application. {{ if .App.Demo }}Downloads are however disabled for the demo.{{end}} </p> <p> - {{ if .Demo }} + {{ if .App.Demo }} You would normally be able to download the application from here, but it's disabled for the demo. See <a href="https://git.riedstra.dev/mitch/steam-export/about/">here</a> for more info. @@ -144,14 +144,14 @@ You can give people this link to view the library remotely and download games from your computer: <br /><br /> - <a href="{{.ShareLink}}">{{.ShareLink}}</a> + <a href="{{.App.ShareLink}}">{{.App.ShareLink}}</a> </p> {{ else }} <h2>Remote Steam library access</h2> <p> - {{ if .Demo }}{{ else }} + {{ if .App.Demo }}{{ else }} <a href="/steam-export-web.exe"> If you need this program to install the games click here. </a> @@ -181,13 +181,13 @@ </tr> </thead> <tbody> - {{ range $key, $val := .Lib.Games}} + {{ range $key, $val := .App.Library.Games}} <tr> <td>{{$key}}</td> <td>{{$val.GetSize}}</td> <td> - {{if $.Demo}} + {{if $.App.Demo}} <span class="d-inline-block" tabindex="0" data-bs-toggle="tooltip" data-bs-placement="left" title="Disabled for demo"> <a href="#" class="btn btn-secondary disabled">Download</a> @@ -195,7 +195,7 @@ {{ else }} <a href="/download/{{$key}}" class="btn btn-secondary">Download</a> {{ end }} - <button data-clipboard-text="{{$.ShareLink}}download/{{$key}}" class="btn btn-primary">Copy link</button> + <button data-clipboard-text="{{$.App.ShareLink}}download/{{$key}}" class="btn btn-primary">Copy link</button> {{ if $.Local }} <button data-bs-target="#delete{{$val.Slug}}Modal" data-bs-toggle="modal" class="btn btn-danger">Delete</button> {{ end }} @@ -209,7 +209,7 @@ {{ if .Local }} -{{ range $key, $val := .Lib.Games }} +{{ range $key, $val := .App.Library.Games }} <div class="modal fade" id="delete{{$val.Slug}}Modal" tabindex="-1" aria-labelledby="delete{{$val.Slug}}ModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable"> @@ -371,7 +371,7 @@ </div> <div class="modal-body"> - <pre><code>{{.Version}}</pre></code> + <pre><code>{{.App.Version}}</pre></code> </div> <div class="modal-footer"> |
