Fix labels showing if issue closed on search results page

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-07-03 20:08:03 +03:00
parent e46ec91a94
commit 198c2e40b0
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
2 changed files with 5 additions and 3 deletions

View file

@ -6,4 +6,4 @@
= truncate issue.title, length: 50
%span.light (#{issue.project.name_with_namespace})
- if issue.closed?
%span.label Closed
%span.label.label-danger Closed

View file

@ -8,5 +8,7 @@
%span.light (#{merge_request.source_project.name_with_namespace}:#{merge_request.source_branch} &rarr; #{merge_request.target_project.name_with_namespace}:#{merge_request.target_branch})
- else
%span.light (#{merge_request.source_branch} &rarr; #{merge_request.target_branch})
- if merge_request.closed?
%span.label Closed
- if merge_request.merged?
%span.label.label-primary Merged
- elsif merge_request.closed?
%span.label.label-danger Closed