Sha256: e2cba1fc03718f565891994f7a0631d34c84f7c1fe61a380a85129fabd74f660
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
<!DOCTYPE html> <html lang="en"> <head> <title><%= name || "New RO-Crate" %></title> <script type="application/ld+json"><%= metadata.generate %></script> <meta name="generator" content="https://github.com/ResearchObject/ro-crate-ruby"> <meta name="keywords" content="RO-Crate"> <meta charset="utf-8"> </head> <body> <h1><%= name || "New RO-Crate" %></h1> <% if url %> <a href="<%= url %>" target="_blank"><%= url %></a> <% end %> <p> <%= description %> </p> <dl> <% if author %> <dt>Author</dt> <dd><%= author %></dd> <% end %> <% if contact_point %> <dt>Contact</dt> <dd><%= contact_point %></dd> <% end %> <% if publisher %> <dt>Publisher</dt> <dd><%= publisher %></dd> <% end %> <% if license %> <dt>License</dt> <dd><%= license %></dd> <% end %> </dl> <h2>Contents</h2> <ul> <% data_entities.each do |data_entity| %> <li id="__data_entity_<%= data_entity.id.gsub(/\s/, '-') %>"> <% if data_entity.external? %> <strong><a href="<%= data_entity.id %>" target="_blank"><%= data_entity.name || data_entity.id %></a></strong> <% else %> <strong><%= data_entity.name || data_entity.id %></strong> <% end %> <% if data_entity.content_size %> <br/>Size: <%= data_entity.content_size %> <% end %> <% if data_entity.encoding_format %> <br/>Format: <%= data_entity.encoding_format %> <% end %> </li> <% end %> </ul> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ro-crate-0.5.2 | lib/ro_crate/ro-crate-preview.html.erb |