round.html 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <meta name="description" content="">
  7. <meta name="author" content="">
  8. <link rel="icon" href="favicon.ico">
  9. <title>LevyraatiBot</title>
  10. <base href="..">
  11. <!-- Bootstrap core CSS -->
  12. <link href="css/bootstrap.min.css" rel="stylesheet">
  13. <!-- Custom styles for this template -->
  14. <link href="css/jumbotron.css" rel="stylesheet">
  15. </head>
  16. <body>
  17. <!-- Main jumbotron for a primary marketing message or call to action -->
  18. <div class="jumbotron">
  19. <div class="container">
  20. {{if .RoundInfo}}
  21. <h1 class="display-3">{{ .RoundInfo.PanelName }} {{ .RoundInfo.Section }}</h1>
  22. {{if or (gt (len .Songs) 3) .SubmitterPublic }}
  23. <p>Tässä viikon kattaus, olkaa hyvä</p>
  24. {{else}}
  25. <p>Odotetaan vielä muutamaa laulua.</p>
  26. {{end}}
  27. {{else}}
  28. <h1 class="display-3">Please log in</h1>
  29. <p>Login now.</p>
  30. {{end}}
  31. </div>
  32. </div>
  33. <div class="container">
  34. {{if or (gt (len .Songs) 3) .SubmitterPublic }}
  35. {{ $submitterPublic := .SubmitterPublic }}
  36. {{range .Songs }}
  37. <div class="row">
  38. <span>{{ .Artist }} / {{ .Title }} / <a href="{{ .URL }}">Kuuntele</a>
  39. {{ if $submitterPublic }}({{ .Submitter }}){{ end }}
  40. </div>
  41. {{end}}
  42. {{else}}
  43. <p>Vasta {{ len .Songs }} laulu{{if ne (len .Songs) 1}}a{{end}} lisätty.</p>
  44. {{end}}
  45. <hr>
  46. <footer>
  47. <p>&copy; Lamperi 2018-2019</p>
  48. </footer>
  49. </div> <!-- /container -->
  50. <!-- Bootstrap core JavaScript
  51. ================================================== -->
  52. <!-- Placed at the end of the document so the pages load faster -->
  53. <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
  54. <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
  55. <script src="js/vendor/bootstrap.min.js"></script>
  56. </body>
  57. </html>