aboutsummaryrefslogtreecommitdiffstats
path: root/scrumli.lisp
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-07-24 23:46:16 +0200
committerGravatar Tom Willemse2013-07-24 23:46:16 +0200
commitee2c58ffae301f4040aeff15131dd60ae98d7463 (patch)
tree07525c9b09608711c5bea7dee87418d6db0a2d45 /scrumli.lisp
parent108726efd48989c484dafcbd87b181911d0c6e8a (diff)
downloadscrumli-ee2c58ffae301f4040aeff15131dd60ae98d7463.tar.gz
scrumli-ee2c58ffae301f4040aeff15131dd60ae98d7463.zip
Change manner of assignment
Instead of having an input in which an assignee's email address can be entered, show the gravatar of the assignee, or a question mark if no assignee has been specified, and upon clicking it show a modal dialog where this information can be changed.
Diffstat (limited to 'scrumli.lisp')
-rw-r--r--scrumli.lisp9
1 files changed, 9 insertions, 0 deletions
diff --git a/scrumli.lisp b/scrumli.lisp
index 362f4a5..df6b442 100644
--- a/scrumli.lisp
+++ b/scrumli.lisp
@@ -221,3 +221,12 @@
(set-assignee 'story id assignee)
(encode-json-to-string '((status . "ok"))))
403))
+
+(define-route scrumli-task-set-assignee ("tasks/assignee"
+ :content-type "json"
+ :method :post)
+ (if (logged-in-p)
+ (with-post-parameters ("id" "assignee")
+ (set-assignee 'task id assignee)
+ (encode-json-to-string '((status . "ok"))))
+ 403))