summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-11 12:25:22 +0100
committerPhil Hughes <me@iamphill.com>2017-05-11 12:25:22 +0100
commit0c55c8891b891eadef41026420f955bb504f305f (patch)
treece20cc5b8e251db2d560a50db40db938b4e7303e /app/helpers
parent1ed0673c254003fc9e3f861fce8671712d71a2de (diff)
downloadgitlab-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')
-rw-r--r--app/helpers/issuables_helper.rb8
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 << "&ensp;".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 << "&ensp;".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