summaryrefslogtreecommitdiff
path: root/app/views/search
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-03 20:08:03 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-03 20:08:03 +0300
commit198c2e40b08240f0102320d2f404583e40c1f0cd (patch)
tree59afa9919901e626791352ec9662f147cfeffb4a /app/views/search
parente46ec91a942fc0773279999debe661f493999500 (diff)
downloadgitlab-ce-198c2e40b08240f0102320d2f404583e40c1f0cd.tar.gz
Fix labels showing if issue closed on search results page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/search')
-rw-r--r--app/views/search/results/_issue.html.haml2
-rw-r--r--app/views/search/results/_merge_request.html.haml6
2 files changed, 5 insertions, 3 deletions
diff --git a/app/views/search/results/_issue.html.haml b/app/views/search/results/_issue.html.haml
index 7a24b76bced..8147cf272fb 100644
--- a/app/views/search/results/_issue.html.haml
+++ b/app/views/search/results/_issue.html.haml
@@ -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
diff --git a/app/views/search/results/_merge_request.html.haml b/app/views/search/results/_merge_request.html.haml
index 22d7587f6c1..de2a79970c1 100644
--- a/app/views/search/results/_merge_request.html.haml
+++ b/app/views/search/results/_merge_request.html.haml
@@ -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