summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-06-08 09:29:19 +0100
committerPhil Hughes <me@iamphill.com>2016-06-14 08:36:07 +0100
commit20d382a891d92197620eb4e72526577a916292d7 (patch)
treebf9dcaddb8c33e9d7c6e15f07a3ecef1d010933f /app/views/shared
parentf8a8999a2069dedd9ca21bde2b726a077c057576 (diff)
downloadgitlab-ce-20d382a891d92197620eb4e72526577a916292d7.tar.gz
Moved todo creation over to project todos controller
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/issuable/_sidebar.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml
index 26052c47b0f..17f623b3461 100644
--- a/app/views/shared/issuable/_sidebar.html.haml
+++ b/app/views/shared/issuable/_sidebar.html.haml
@@ -9,7 +9,7 @@
%a.gutter-toggle.pull-right.js-sidebar-toggle{ role: "button", href: "#", aria: { label: "Toggle sidebar" } }
= sidebar_gutter_toggle_icon
- if current_user
- %button.btn.btn-default.issuable-header-btn.pull-right.js-issuable-todo{ type: "button", aria: { label: (todo.nil? ? "Add Todo" : "Mark Done") }, data: { todo_text: "Add Todo", mark_text: "Mark Done", id: (todo.id unless todo.nil?), url: issuable_todo_path(issuable) } }
+ %button.btn.btn-default.issuable-header-btn.pull-right.js-issuable-todo{ type: "button", aria: { label: (todo.nil? ? "Add Todo" : "Mark Done") }, data: { todo_text: "Add Todo", mark_text: "Mark Done", id: (todo.id unless todo.nil?), issuable: issuable.id, issuable_type: issuable.class.name.underscore, url: namespace_project_todos_path(@project.namespace, @project, :json) } }
%span.js-issuable-todo-text
- if todo.nil?
Add Todo