album_public.handlebars 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {{#> base}}
  2. {{#*inline "cards-block"}}
  3. <meta property="og:url" content="https://lolisafe.moe" />
  4. <meta property="og:type" content="website" />
  5. <meta property="og:title" content="{{ title }} | {{ count }} files" />
  6. <meta property="og:description" content="lolisafe.moe | A small safe worth protecting." />
  7. <meta property="og:image" content="{{ thumb }}" />
  8. <meta property="og:image:secure_url" content="{{ thumb }}" />
  9. <meta name="twitter:card" content="summary">
  10. <meta name="twitter:title" content="{{ title }} | {{ count }} files">
  11. <meta name="twitter:description" content="lolisafe.moe | A small safe worth protecting.">
  12. <meta name="twitter:image" content="{{ thumb }}">
  13. <meta name="twitter:image:src" content="{{ thumb }}">
  14. {{/inline}}
  15. {{#*inline "head-block"}}
  16. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css">
  17. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
  18. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.15.3/axios.min.js"></script>
  19. {{/inline}}
  20. {{#*inline "body-block"}}
  21. <section class="hero is-fullheight">
  22. <div class="hero-head">
  23. <div class="container">
  24. <div class="columns">
  25. <div class="column is-9">
  26. <h1 class="title" id='title' style='margin-top: 1.5rem;'>{{ title }}</h1>
  27. <h1 class="subtitle" id='count'>{{ count }} files</h1>
  28. </div>
  29. <div class="column is-3" style="text-align: right; padding-top: 45px;">
  30. {{#if enableDownload}}
  31. <a class="button is-primary is-outlined" title="Download album" href="/api/album/zip/{{ identifier }}">Download Album</a>
  32. {{/if}}
  33. </div>
  34. </div>
  35. <hr>
  36. </div>
  37. </div>
  38. <div class="hero-body">
  39. <div class="container" id='container'>
  40. <div class="columns is-multiline is-mobile" id="table">
  41. {{#each files}}
  42. <div class="column is-2">
  43. <a href="{{ this.file }}" target="_blank">{{{ this.thumb }}}</a>
  44. </div>
  45. {{/each}}
  46. </div>
  47. </div>
  48. </div>
  49. </section>
  50. {{/inline}}
  51. {{/base}}