aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnonymized <anonymous@example.com>2018-01-20 02:06:01 +0100
committerAnonymized <anonymous@example.com>2018-01-20 02:06:01 +0100
commit5a0bc20fa3d43f87f2b2992ce84bf8eab9336244 (patch)
tree7cfee304089dc172a23ff59084b5e7b5b2358bed
parentddb16c130f1583d35f0e5703d0317745881c7ad8 (diff)
downloadgnunet-guile2-5a0bc20fa3d43f87f2b2992ce84bf8eab9336244.tar.gz
gnunet-guile2-5a0bc20fa3d43f87f2b2992ce84bf8eab9336244.zip
c3b2: rework the ui to be a wall
-rwxr-xr-xprototypes/c3b2/web.scm6
1 files changed, 2 insertions, 4 deletions
diff --git a/prototypes/c3b2/web.scm b/prototypes/c3b2/web.scm
index 1c430c3..cc9d8c9 100755
--- a/prototypes/c3b2/web.scm
+++ b/prototypes/c3b2/web.scm
@@ -95,16 +95,14 @@ exec guile -L $(pwd) -e '(@ (web) main)' -s "$0" "$@"
95 ,body)))) 95 ,body))))
96 96
97(define (template/topic topic) 97(define (template/topic topic)
98 `(div (p ,(vertex-ref topic 'body)) 98 `(div (p ,(vertex-ref topic 'body))))
99 (a (@ (href ,(string-append "/replies/" (vertex-uid topic))))
100 "[replies]")))
101 99
102(define (template/index topics) 100(define (template/index topics)
103 `(,(map template/topic topics) 101 `(,(map template/topic topics)
104 (hr) 102 (hr)
105 (form (@ (method "POST") 103 (form (@ (method "POST")
106 (action "/")) 104 (action "/"))
107 (h2 "Create a new topic") 105 (h2 "Chime in the conversation!")
108 (textarea (@ (name "body"))) 106 (textarea (@ (name "body")))
109 (input (@ (type "submit") 107 (input (@ (type "submit")
110 (value "publish")))))) 108 (value "publish"))))))