Sha256: 34442811659400b240959c4611e6c0660fd712bcb2dc854b387e7fa099b2ddf4
Contents?: true
Size: 1.49 KB
Versions: 3
Compression:
Stored size: 1.49 KB
Contents
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title><%= options.title %></title> <style> body { background-color: white; color: black; } h1 { text-align: center; } table { width: 100%; border-spacing: 2px; border-collapse: separate; } td { text-align: center; width: <%= 100 / options.columns %>%; padding: 2px; } img { border: 0; vertical-align: text-top; } .parent-link { text-align: center; } </style> </head> <body> <h1><%= options.title %></h1> <% if index.indexes.length > 1 %> <p> <% index.indexes.each do |other_index| %> <% if other_index == index %> Page <%= other_index.number %> <% else %> <a href="<%= other_index.relative_html %>">Page <%= other_index.number %></a> <% end %> <% if other_index != index.indexes.last %>|<% end %> <% end %> </p> <% end %> <table> <% index.images.each_slice options.columns do |row| %> <tr> <% row.each do |image| %> <td> <a href="<%= image.relative_html %>"><img alt="<%= image.title %>" src="<%= image.relative_thumbnail %>"></a><br/> <%= image.title %> </td> <% end %> </tr> <% end %> </table> <% if index == index.indexes.last && options.parent_link_text %> <p class="parent-link"><a href="../"><%= options.parent_link_text %></a></p> <% end %> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
imagesite-1.0.1 | template/index.html.erb |
imagesite-1.0.0 | template/index.html.erb |
imagesite-1.0.0.pre | template/index.html.erb |