album_public.handlebars 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. {{/inline}}
  19. {{#*inline "body-block"}}
  20. <section class="hero is-fullheight">
  21. <div class="hero-head">
  22. <div class="container">
  23. <div class="columns">
  24. <div class="column is-9">
  25. <h1 class="title" id='title' style='margin-top: 1.5rem;'>{{ title }}</h1>
  26. <h1 class="subtitle" id='count'>{{ count }} files</h1>
  27. </div>
  28. <div class="column is-3" style="text-align: right; padding-top: 45px;">
  29. {{#if enableDownload}}
  30. <a class="button is-primary is-outlined" title="Download album" href="/api/album/zip/{{ identifier }}">Download Album</a>
  31. {{/if}}
  32. </div>
  33. </div>
  34. <hr>
  35. </div>
  36. </div>
  37. <div class="hero-body">
  38. <div class="container" id='container'>
  39. <div class="columns is-multiline is-mobile" id="table">
  40. {{#each files}}
  41. <div class="column is-2">
  42. <a href="{{ this.file }}" target="_blank">{{{ this.thumb }}}</a>
  43. </div>
  44. {{/each}}
  45. </div>
  46. </div>
  47. </div>
  48. </section>
  49. {{/inline}}
  50. {{/base}}