coll.html 2.0 KB

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