diff options
author | dimitrieh <dimitriehoekstra@gmail.com> | 2017-03-24 16:04:57 +0100 |
---|---|---|
committer | dimitrieh <dimitriehoekstra@gmail.com> | 2017-03-24 16:04:57 +0100 |
commit | 9acfa6351f416dbeaa95c74dff9dca4265edeb25 (patch) | |
tree | 0a6e5ad322f34e28f7f296aee60fb0b364d70938 /app/views/shared/issuable | |
parent | 8cc4a39be8d1bf31fe082829be209c6969647ab4 (diff) | |
download | gitlab-ce-9acfa6351f416dbeaa95c74dff9dca4265edeb25.tar.gz |
adds todo functionality to closed issuable sidebar and changes todo bell icon to check-square
Diffstat (limited to 'app/views/shared/issuable')
-rw-r--r-- | app/views/shared/issuable/_sidebar.html.haml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml index 25a4aec0a38..9c3ee96e151 100644 --- a/app/views/shared/issuable/_sidebar.html.haml +++ b/app/views/shared/issuable/_sidebar.html.haml @@ -22,6 +22,15 @@ = icon('spin spinner', class: 'hidden js-issuable-todo-loading', 'aria-hidden': 'true') = form_for [@project.namespace.becomes(Namespace), @project, issuable], remote: true, format: :json, html: { class: 'issuable-context-form inline-update js-issuable-update' } do |f| + - if current_user + .block.todo + .sidebar-collapsed-icon.dont-change-state.js-issuable-todo{ type: "div", aria: { label: (todo.nil? ? icon('plus-square') : icon('check-square', class: 'todo-undone')) }, data: { todo_text: icon('plus-square'), mark_text: icon('check-square', class: 'todo-undone'), issuable_id: issuable.id, issuable_type: issuable.class.name.underscore, url: namespace_project_todos_path(@project.namespace, @project), delete_path: (dashboard_todo_path(todo) if todo) } } + %span.js-issuable-todo-text + - if todo + = icon('check-square', class: 'todo-undone') + - else + = icon('plus-square') + = icon('spin spinner', class: 'hidden js-issuable-todo-loading') .block.assignee .sidebar-collapsed-icon.sidebar-collapsed-user{ data: { toggle: "tooltip", placement: "left", container: "body" }, title: (issuable.assignee.name if issuable.assignee) } - if issuable.assignee |