Sha256: 0b09d7e039b97d086234b5d317344d2c4e776bea2c3fba1f5db3b48a3208e224
Contents?: true
Size: 1.61 KB
Versions: 10
Compression:
Stored size: 1.61 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 %> <% if options.descriptions_on_index_pages %> <br/><%= image.description %> <% end %> </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
10 entries across 10 versions & 1 rubygems