summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_issues.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-25 17:46:16 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-25 17:46:16 +0200
commit4cb17deec171151c0e1acd582861cafced43e89e (patch)
treeeee5dbbcc1ec1c822c42ceca90be4149308397b0 /app/views/projects/issues/_issues.html.haml
parent6abd1f9347d598d58fd43033816413640fc64049 (diff)
downloadgitlab-ce-4cb17deec171151c0e1acd582861cafced43e89e.tar.gz
Fix empty sort label on issues page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/issues/_issues.html.haml')
-rw-r--r--app/views/projects/issues/_issues.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/projects/issues/_issues.html.haml b/app/views/projects/issues/_issues.html.haml
index 0022f82a399..1ad1f10e1ed 100644
--- a/app/views/projects/issues/_issues.html.haml
+++ b/app/views/projects/issues/_issues.html.haml
@@ -81,7 +81,10 @@
.dropdown.inline.prepend-left-10
%a.dropdown-toggle.btn.btn-small{href: '#', "data-toggle" => "dropdown"}
%span.light sort:
- = @sort
+ - if @sort.present?
+ = @sort
+ - else
+ Newest
%b.caret
%ul.dropdown-menu
%li