Sha256: d6013437759981cbf06cd8be9df7554baf7595a23080f9baa1c05d50e18201f0
Contents?: true
Size: 1.83 KB
Versions: 2
Compression:
Stored size: 1.83 KB
Contents
#breadcrumbs { logic: { item_ctr = 0 for item in breadcrumbs item_ctr += 1 if(item_ctr > 1) _element("arrow") // expand element marked with arrow end _element("item") // expand element marked with item end } } #item { logic: { item_path = item[:path]; // retrieve path and item_title = item[:title]; // title from a hash if(item_path!=null) _stag; _cont; _etag; else // if path is null then _cont; // don't print <a></a>. end } } /** // :elem(breadcrumbs) // :set(item_ctr = 0) // :foreach(item = breadcrumbs) // :set(item_ctr += 1) // :if(item_ctr > 1) ## each time except first time // @elem_arrow ## print < // :end // @elem_item ## and print <a></a>. // :end // :end // // :elem(item) // :set(item_path = item[:path]) ## retrieve path and // :set(item_title = item[:title]) ## title from a hash. // :if(item_path!=null) // @stag // @cont // @etag // :else ## if path is null then // @cont ## don't print <a></a>. // :end // :end // **/ #thumbnails_row { logic: { col = 1 for photo in album.leaves if col == 1 _stag end @cont col += 1; if col == 7 col = 1 _etag; end end } } /** // :elem(thumbnails_row) // :set( col = 1 ) // :foreach( photo = album.photos ) // :if( col == 1 ) // :expand(stag_thumbnails_row) // :end // :expand(cont_thumbnails_row) // :set( col += 1 ) // :if( col == 7 ) // :set( col = 1 ) // :expand(etag_thumbnails_row) // :end // :end // :end **/
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gf-ralbum-0.0.2 | lib/ralbum/skins/js/template/album_page.plogic |
gf-ralbum-0.0.5 | lib/ralbum/skins/js/template/album_page.plogic |