|
21 | 21 | </div>
|
22 | 22 | </nav>
|
23 | 23 |
|
| 24 | + <div class="container"> |
| 25 | + <h2>My Plugs:</h2> |
| 26 | + <p>Plugs displayed below without color have not been approved for viewing yet.</p> |
| 27 | + {{ range $element := .plugs }} |
| 28 | + <div class="row justify-content-center"> |
| 29 | + <div class="col-lg-7"> |
| 30 | + <div class="card mb-3"> |
| 31 | + <!-- Make plugs which haven't been approved yet grayscale --> |
| 32 | + <img style="width: 100%; display: block; |
| 33 | + {{ if !$element.Approved }} filter: grayscale(100%); {{ end }} |
| 34 | + " src="{{$element.PresignedURL}}" alt="Plug by {{$element.Owner}}"> |
| 35 | + <div class="card-footer text-muted"> |
| 36 | + <p>{{$element.ViewsRemaining}} View(s) Remaining</p> |
| 37 | + </div> |
| 38 | + </div> |
| 39 | + </div> |
| 40 | + </div> |
| 41 | + {{ end }} |
| 42 | + </div> |
24 | 43 | <div class="jumbotron">
|
25 | 44 | <div class="row justify-content-center">
|
26 | 45 | <div class="col-lg-7">
|
27 |
| - <div class="jumbotron" style="max-width: 800px"> |
28 |
| - <h1 class="display-3">Upload a Plug!</h1> |
29 |
| - <p class="lead">You will lose 1 drink credit in exchange for a 100 view-limit of your plug.<br> Plugs must be 728x200 pixels and in PNG, or JPG format</p> |
30 |
| - <hr class="my-4"> |
| 46 | + <h2>Upload a Plug!</h2> |
| 47 | + <p class="lead">You will lose 1 drink credit in exchange for a 100 view-limit of your plug.<br> Plugs must be 728x200 pixels and in PNG, or JPG format</p> |
| 48 | + <hr class="my-4"> |
31 | 49 |
|
32 |
| - <form action="/upload" method="post" enctype="multipart/form-data"> |
33 |
| - <div class="form-group"> |
34 |
| - <input class="form-control-number" id="numCredits" |
35 |
| - name="numCredits" aria-describedby="numHelp" |
36 |
| - type="number" value="1"> |
37 |
| - <small id="numHelp" class="form-text |
38 |
| - text-muted">Increase the number of credits to pay |
39 |
| - for extended-air-time.</small> |
40 |
| - <input class="form-control-file" id="fileUpload" name="fileUpload" aria-describedby="fileHelp" type="file"> |
41 |
| - <small id="fileHelp" class="form-text text-muted">Your Plug must be approved before it will appear for viewing. Any member of the following groups (drink, eboard, rtp) can do so via the admin page.</small> |
42 |
| - </div> |
43 |
| - <div class="float-right"> |
44 |
| - <input class="btn btn-primary btn-lg" href="/upload" role="button" value="Upload" name="submit" type="submit"> |
45 |
| - </div> |
46 |
| - </form> |
47 |
| - </div> |
| 50 | + <form action="/upload" method="post" enctype="multipart/form-data"> |
| 51 | + <div class="form-group"> |
| 52 | + <input class="form-control-number" id="numCredits" |
| 53 | + name="numCredits" aria-describedby="numHelp" |
| 54 | + type="number" value="1"> |
| 55 | + <small id="numHelp" class="form-text |
| 56 | + text-muted">Increase the number of credits to pay |
| 57 | + for extended-air-time.</small> |
| 58 | + <input class="form-control-file" id="fileUpload" name="fileUpload" aria-describedby="fileHelp" type="file"> |
| 59 | + <small id="fileHelp" class="form-text text-muted">Your Plug must be approved before it will appear for viewing. Any member of the following groups (drink, eboard, rtp) can do so via the admin page.</small> |
| 60 | + </div> |
| 61 | + <div class="float-right"> |
| 62 | + <input class="btn btn-primary btn-lg" href="/upload" role="button" value="Upload" name="submit" type="submit"> |
| 63 | + </div> |
| 64 | + </form> |
48 | 65 | </div>
|
49 | 66 | </div>
|
50 | 67 | </div>
|
|
0 commit comments