Sha256: d50ed71ad4d6c44f9bc2606ba2ff252e428c67bb31396708f207fc1423560edd

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

Contents

--- content, html
<%
ginfo = node.node_info[:ginfo]
if ginfo[:collage_node].nil?
  log(:error) { "Use of templates from gallery style 'slides' only possible if option layouter is set to 'slides' in gallery file!" }
else
%>


<div class="webgen-gallery webgen-gallery-main" style="background-color: <%= ginfo[:collage_node].collage_color %>">
<p style="text-align: center"><img src="<%= ginfo[:collage_node].path %>" alt="collage" /></p>
<table width="100%">
<% 0.step( ginfo.galleries.length - 1, 5 ) do |row_index| %>
  <tr>
  <% row_index.upto( [row_index + 4, ginfo.galleries.length - 1].min ) do |col_index| %>
    <td align="center">
      <a href="{relocatable: <%= ginfo.galleries[col_index].pagename %>}">
        <span class="thumb thumb-<%= ginfo['title'].tr(' ', '_') %>">
          <%= ginfo.galleries[col_index].thumbnail('class'=>'webgen-gallery-thumbnail') %>
        </span>
        <br />
        <%= ginfo.galleries[col_index].title %>
      </a>
    </td>
  <% end %>
  </tr>
<% end %>
</table>
</div>


<% end %>

Version data entries

11 entries across 7 versions & 1 rubygems

Version Path
webgen-0.4.0 data/webgen/gallery_styles/slides/gallery_main.template
webgen-0.4.0 doc/src/examples/gallery_styles/slides/gallery_main.template
webgen-0.4.2 data/webgen/gallery_styles/slides/gallery_main.template
webgen-0.4.1 data/webgen/gallery_styles/slides/gallery_main.template
webgen-0.4.5 data/webgen/gallery_styles/slides/gallery_main.template
webgen-0.4.3 doc/src/examples/gallery_styles/slides/gallery_main.template
webgen-0.4.3 data/webgen/gallery_styles/slides/gallery_main.template
webgen-0.4.4 data/webgen/gallery_styles/slides/gallery_main.template
webgen-0.4.4 doc/src/examples/gallery_styles/slides/gallery_main.template
webgen-0.4.6 doc/src/examples/gallery_styles/slides/gallery_main.template
webgen-0.4.6 data/webgen/gallery_styles/slides/gallery_main.template