diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-11 12:25:22 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-11 12:25:22 +0100 |
commit | 0c55c8891b891eadef41026420f955bb504f305f (patch) | |
tree | ce20cc5b8e251db2d560a50db40db938b4e7303e /app/helpers/issuables_helper.rb | |
parent | 1ed0673c254003fc9e3f861fce8671712d71a2de (diff) | |
download | gitlab-ce-0c55c8891b891eadef41026420f955bb504f305f.tar.gz |
Remove some weird code to add/remove the task status
Moved the data into the data method
Renamed edited ago class name
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r-- | app/helpers/issuables_helper.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb index fbbce6876c2..bc7ff99d483 100644 --- a/app/helpers/issuables_helper.rb +++ b/app/helpers/issuables_helper.rb @@ -136,11 +136,9 @@ module IssuablesHelper author_output << link_to_member(project, issuable.author, size: 24, by_username: true, avatar: false, mobile_classes: "hidden-sm hidden-md hidden-lg") end - if issuable.tasks? - output << " ".html_safe - output << content_tag(:span, issuable.task_status, id: "task_status", class: "hidden-xs hidden-sm") - output << content_tag(:span, issuable.task_status_short, id: "task_status_short", class: "hidden-md hidden-lg") - end + output << " ".html_safe + output << content_tag(:span, issuable.task_status, id: "task_status", class: "hidden-xs hidden-sm") + output << content_tag(:span, issuable.task_status_short, id: "task_status_short", class: "hidden-md hidden-lg") output end |