123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <!DOCTYPE html>
- <html>
- <head>
- <%- header_tpl({site_title = site_title, title = fname}) %>
- </head>
- <body>
- <header>
- <h1><%= breadcrumbs[#breadcrumbs][2] -%>: <%= fname %></h1>
- </header>
- <main>
- <section id="res_lineage">
- <h2>Classification</h2>
- <p>
- <% for i, bc in ipairs(breadcrumbs) do %>
- <% cls, label = table.unpack(bc) %>
- <% if i ~= 1 then %>
- <span class="breadcrump_sep"> ➳ </span>
- <% end %>
- <a
- class="breadcrumb<%if i == #breadcrumbs then %> current<% end %>"
- href="../class/<%= cls -%>">
- <%= label -%>
- </a>
- <% end %>
- </p>
- </section>
- <section class="res_md" id="res_techmd">
- <h2>Metadata</h2>
- <dl>
- <% for p, ol in pairs(techmd) do %>
- <dt>
- <% if ol.label then %><%= ol.label %>
- <% else %><code><%= ol.uri %></code><% end %>
- </dt>
- <% for _, o in ipairs(ol) do %>
- <dd><%= o %></dd>
- <% end %>
- <% end %>
- </dl>
- </section>
- <% if #rel > 0 then %>
- <section class="res_md" id="res_rel">
- <h2>Relationships</h2>
- <dl>
- <% for p, ol in pairs(rel) do %>
- <dt>
- <% if ol.label then %><%= ol.label %>
- <% else %><code><%= ol.uri %></code><% end %>
- </dt>
- <% for _, o in ipairs(ol) do %>
- <dd><a href="/res/<%= o.data %>.html"><%= o.data %></a></dd>
- <% end %>
- <% end %>
- </dl>
- </section>
- <% end %>
- <% if deliverable then %>
- <section id="res_pres">
- <% if mconf.presentation_type == "image" then %>
- <img src="<%= deliverable -%>" />
- <%else %>
- <a href="<%= deliverable -%>" download="<%= fname -%>">
- Download file
- </a>
- <% end %>
- </section>
- <% end %>
- </main>
- <footer></footer>
- </body>
- </html>
|