Sha256: 3d6d499b00da80b1c1a0e4e1ebe8ffea3cce006780cd4c8b8e6f005199ba2d2c

Contents?: true

Size: 1.75 KB

Versions: 11

Compression:

Stored size: 1.75 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-image" style="background-color: <%= ginfo[:collage_node].collage_color %>">
<table width="100%" style="padding: 5px; margin-bottom: 10px;">
<tr>
  <td style="width: 33%; padding: 2px;" align="left">
    <% if ginfo.prev_image %>
    <a href="{relocatable: <%= ginfo.prev_image.pagename %>}">
      &lt;&lt; previous image
      <span class="thumb thumb-<%= ginfo['title'].tr(' ', '_') %>">
        <%= ginfo.prev_image.thumbnail('style'=>'vertical-align: middle', 'class'=>'webgen-gallery-thumbnail') %>
      </span>
    </a>
    <% end %>
  </td>
  <td style="width: 34%; padding: 2px;" valign="top" align="center">
    <a href="{relocatable: <%= ginfo.cur_gallery.pagename %>}">
      <span class="thumb thumb-<%= ginfo['title'].tr(' ', '_') %>">
        <%= ginfo.cur_gallery.thumbnail('class'=>'webgen-gallery-thumbnail') %>
      </span>
      ^<%= ginfo.cur_gallery.title %>^
    </a>
  </td>
  <td style="width: 33%; padding: 2px;" align="right">
    <% if ginfo.next_image %>
    <a href="{relocatable: <%= ginfo.next_image.pagename %>}">
      next image &gt;&gt;
      <span class="thumb thumb-<%= ginfo['title'].tr(' ', '_') %>">
        <%= ginfo.next_image.thumbnail('style'=>'vertical-align: middle', 'class'=>'webgen-gallery-thumbnail') %>
      </span>
    </a>
    <% end %>
  </td>
</tr>
</table>

<p style="text-align: center">
<img src="{relocatable: <%= ginfo.cur_image.filename %>}" alt="<%= ginfo.cur_image.title %>" /> <br />
</p>

<p><%= ginfo.cur_image['description'] %></p>

</div>


<% end %>

Version data entries

11 entries across 7 versions & 1 rubygems

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