coll.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <%- head_tpl({site_title = site_title, title = title,
  5. webroot = webroot}) %>
  6. </head>
  7. <body>
  8. <%- header_tpl({site_title = site_title, webroot = webroot}) %>
  9. <main>
  10. <h1>
  11. <img class="title_icon" src="<%= icon_url %>" alt="Collection" />
  12. <%= title %>
  13. </h1>
  14. <div class="row">
  15. <section id="head_img" class="column column-66">
  16. <% if pref_rep then %>
  17. <img src="<%= webroot -%><%= pref_rep.file %>" alt="<%= title %>"/>
  18. <% end %>
  19. </section>
  20. <section class="column column-30 toolbox">
  21. <h4>Tools</h4>
  22. <p>Unique ID: <a href="<%= webroot -%><%= permalink -%>"><%= uid -%></a></p>
  23. <p><a href="<%= webroot -%><%= rdf_href %>">Download RDF document</a></p>
  24. <p><a href="#">Download Laundry List [TODO]</a></p>
  25. </section>
  26. </div>
  27. <% if body then %>
  28. <section id="long_desc">
  29. <%- body %>
  30. </section>
  31. <% end %>
  32. <% if #members > 0 then %>
  33. <section id="res_members">
  34. <h2>Members</h2>
  35. <ul class="slideshow">
  36. <% for _, el in ipairs(members) do %>
  37. <li>
  38. <a href="<%= webroot -%><%= el.href %>">
  39. <% if el.tn then %>
  40. <img src="<%= webroot -%><%= el.tn %>" alt="<%= el.label %>" />
  41. <% end %>
  42. <br/>
  43. <img
  44. class="body_icon" src="<%= el.icon %>"
  45. alt="<%= el.ctype_label %>"/>
  46. <%= el.label %>
  47. </a>
  48. </li>
  49. <%end %>
  50. </ul>
  51. </section>
  52. <% end %>
  53. </main>
  54. <footer></footer>
  55. </body>
  56. </html>