Sha256: a86112e0307dfb4baf7eac9c705caf30deb753eeb9fbea56e0059f6340613c1a
Contents?: true
Size: 1.48 KB
Versions: 2
Compression:
Stored size: 1.48 KB
Contents
<!DOCTYPE html> <html> <head> <title><%= name || "New RO Crate" %></title> <script type="application/ld+json"><%= metadata.generate %></script> <meta name="generator" content="https://github.com/fbacall/ro-crate-ruby"> <meta name="keywords" content="RO Crate"> </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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ro-crate-0.4.1 | lib/ro_crate/ro-crate-preview.html.erb |
ro-crate-0.4.0 | lib/ro_crate/ro-crate-preview.html.erb |