diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-10-14 11:33:31 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-10-14 11:33:31 -0400 |
| commit | be03e4adfe97561553c9ed2c10561c49d35c06d9 (patch) | |
| tree | ac39a71ef7be15bfac02d3907426f206eab7cab5 /wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo | |
| parent | df38659b7474d0cc00a125872b51cc399978a67f (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/Main.wo')
| -rw-r--r-- | wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.html | 4 | ||||
| -rw-r--r-- | wotonomy-web-test/src/main/webapp/WEB-INF/classes/Main.wo/Main.wod | 8 |
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 |
