aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-05 19:23:21 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-05 19:23:21 -0700
commitf559c91b7a7ff3e3e3bfd1ce430ce5b5615c07ea (patch)
tree45586e86825e60ac68ef0e26d1f1ee8b562feeaf /view/tpl
parente4fe068ed51c3d92cdb416492c3cc0ad26c28c1c (diff)
downloadvolse-hubzilla-f559c91b7a7ff3e3e3bfd1ce430ce5b5615c07ea.tar.gz
volse-hubzilla-f559c91b7a7ff3e3e3bfd1ce430ce5b5615c07ea.tar.bz2
volse-hubzilla-f559c91b7a7ff3e3e3bfd1ce430ce5b5615c07ea.zip
turn consensus items into diaspora polls for that network
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/diaspora_consensus.tpl17
-rw-r--r--view/tpl/diaspora_post.tpl1
2 files changed, 18 insertions, 0 deletions
diff --git a/view/tpl/diaspora_consensus.tpl b/view/tpl/diaspora_consensus.tpl
new file mode 100644
index 000000000..b6b7cf13d
--- /dev/null
+++ b/view/tpl/diaspora_consensus.tpl
@@ -0,0 +1,17 @@
+<poll>
+<guid>{{$guid_q}}</guid>
+<question>{{$question}}</question>
+<poll_answer>
+ <guid>{{$guid_y}}</guid>
+ <answer>{{$agree}}</answer>
+</poll_answer>
+<poll_answer>
+ <guid>{{$guid_n}}</guid>
+ <answer>{{$disagree}}</answer>
+</poll_answer>
+<poll_answer>
+ <guid>{{$guid_a}}</guid>
+ <answer>{{$abstain}}</answer>
+</poll_answer>
+</poll>
+
diff --git a/view/tpl/diaspora_post.tpl b/view/tpl/diaspora_post.tpl
index 2fe916e00..ebfe9e5b7 100644
--- a/view/tpl/diaspora_post.tpl
+++ b/view/tpl/diaspora_post.tpl
@@ -4,6 +4,7 @@
<raw_message>{{$body}}</raw_message>
<guid>{{$guid}}</guid>
<diaspora_handle>{{$handle}}</diaspora_handle>
+ {{$poll}}
<public>{{$public}}</public>
<created_at>{{$created}}</created_at>
<provider_display_name>{{$provider}}</provider_display_name>