summaryrefslogtreecommitdiff
path: root/wotonomy-web-test/src/main/webapp/WEB-INF/classes
diff options
context:
space:
mode:
authorBenjamin Culkin <scorpress@gmail.com>2024-10-14 11:33:31 -0400
committerBenjamin Culkin <scorpress@gmail.com>2024-10-14 11:33:31 -0400
commitbe03e4adfe97561553c9ed2c10561c49d35c06d9 (patch)
treeac39a71ef7be15bfac02d3907426f206eab7cab5 /wotonomy-web-test/src/main/webapp/WEB-INF/classes
parentdf38659b7474d0cc00a125872b51cc399978a67f (diff)
Add basic blog enttry list
This adds a basic blog entry list to the front page. Currently, the blog entries are just populated from code, but eventually they will be pulled from the database
Diffstat (limited to 'wotonomy-web-test/src/main/webapp/WEB-INF/classes')
-rw-r--r--wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.html4
-rw-r--r--wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.wod8
2 files changed, 11 insertions, 1 deletions
diff --git a/wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.html b/wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.html
index 48143bd..750a74f 100644
--- a/wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.html
+++ b/wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.html
@@ -9,12 +9,14 @@
</div>
<div class = "row">
<div class = "leftcolumn">
+ <webobject name="cardlist">
<div class = "card">
- <h2>TITLE HEADING</h2>
+ <h2><webobject name="entryTitle"></webobject></h2>
<h5>Title description, Dec 7, 2017</h5>
<div class = "fakeimg" style = "height:200px;"> Image </div>
<p>Some text..</p>
</div>
+ </webobject>
<div class = "card">
<h2>TITLE HEADING</h2>
<h5>Title description, Sep 2, 2017</h5>
diff --git a/wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.wod b/wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.wod
index e69de29..a4349b4 100644
--- a/wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.wod
+++ b/wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.wod
@@ -0,0 +1,8 @@
+cardlist : WORepetition {
+ list = application.blogEntries;
+ item = blogEntry;
+}
+
+entryTitle : WOString {
+ value = blogEntry.title;
+} \ No newline at end of file