diff options
author | Phil Hughes <me@iamphill.com> | 2016-05-19 13:34:40 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-05-23 10:40:04 +0300 |
commit | a69ab104de873f11dc9004edbf39210000d4e50a (patch) | |
tree | 4f9ba5a5a6a74055397cbdf3ba8555063f8f0e9f /app/views/shared/issuable | |
parent | 53ad33e4ba1b079e4f2aebceb42a7301c5ce2e4a (diff) |
Added remove due date button
In the sidebar when there is a due date, a link to remove due date becomes visible
Closes #17392
Diffstat (limited to 'app/views/shared/issuable')
-rw-r--r-- | app/views/shared/issuable/_sidebar.html.haml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml index ed1b8a8da2a..c1eec450193 100644 --- a/app/views/shared/issuable/_sidebar.html.haml +++ b/app/views/shared/issuable/_sidebar.html.haml @@ -87,10 +87,16 @@ - if can?(current_user, :"admin_#{issuable.to_ability_name}", @project) = link_to 'Edit', '#', class: 'edit-link pull-right' .value.bold.hide-collapsed - - if issuable.due_date - = issuable.due_date.to_s(:medium) - - else - .light None + %span.value-content + - if issuable.due_date + = issuable.due_date.to_s(:medium) + - else + None + - if can?(current_user, :"admin_#{issuable.to_ability_name}", @project) + %span.light.js-remove-due-date-holder{ class: ("hidden" if issuable.due_date.nil?) } + \- + %a.js-remove-due-date{ href: "#", role: "button" } + remove due date - if can?(current_user, :"admin_#{issuable.to_ability_name}", @project) .selectbox.hide-collapsed = f.hidden_field :due_date, value: issuable.due_date |