Permalink
Browse files

Media grid component

  • Loading branch information...
1 parent 970affa commit a33341544b324027ee02788c4a26f4cf62e1522e @trsvax committed Oct 26, 2011
@@ -2,7 +2,7 @@
public interface MediaItem {
- public String getMediaLink(MediaSize mediaSize);
+ public String getMediaURL(MediaSize mediaSize);
public String getMediaTitle();
}
@@ -0,0 +1,18 @@
+package com.trsvax.bootstrap.components;
+
+import java.util.List;
+
+import org.apache.tapestry5.annotations.Parameter;
+import org.apache.tapestry5.annotations.Property;
+
+public class MediaGrid {
+
+ @Parameter
+ @Property
+ private List<?> source;
+
+ @Parameter
+ @Property
+ private Object row;
+
+}
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en"
+ xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
+ xmlns:p="tapestry:parameter">
+
+<ul class="media-grid gallery">
+ <t:loop source="source" value="row">
+ <li><t:body/></li>
+ </t:loop>
+</ul>
+
+</html>

0 comments on commit a333415

Please sign in to comment.