All pastes #833460 Raw Edit

Unnamed

public text v1 · immutable
#833460 ·published 2007-12-27 07:39 UTC
rendered paste body
        <tal:albums tal:repeat="album albums">
            <div class="photoAlbumEntry photoAlbumFolder"
                 tal:define="image_brains_in_album python:album.atctListAlbum(su
bimages=1)['subimages'];
                             number_of_images python:len(image_brains_in_album);
                             random python:modules['random'];
                             random_image python:number_of_images and random.cho
ice(image_brains_in_album).getObject() or None">
                        <a tal:attributes="href album/getURL;
                                           title album/Description">
                            <span class="photoAlbumEntryWrapper">
                                <img src="" alt=""
                                     tal:condition="number_of_images"
                                     tal:replace="structure python:random_image.
tag(scale='thumb', title=album.Description)" />
                            </span>
                            <span class="photoAlbumEntryTitle">
                               <tal:title content="album/pretty_title_or_id">Tit
le</tal:title>
                            (<tal:number content="number_of_images" />)
                            </span>
                        </a>
            </div>
        </tal:albums>