Commit 4cb17deec171151c0e1acd582861cafced43e89e
1 parent
6abd1f93
Exists in
master
and in
4 other branches
Fix empty sort label on issues page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
app/views/projects/issues/_issues.html.haml
| ... | ... | @@ -81,7 +81,10 @@ |
| 81 | 81 | .dropdown.inline.prepend-left-10 |
| 82 | 82 | %a.dropdown-toggle.btn.btn-small{href: '#', "data-toggle" => "dropdown"} |
| 83 | 83 | %span.light sort: |
| 84 | - = @sort | |
| 84 | + - if @sort.present? | |
| 85 | + = @sort | |
| 86 | + - else | |
| 87 | + Newest | |
| 85 | 88 | %b.caret |
| 86 | 89 | %ul.dropdown-menu |
| 87 | 90 | %li | ... | ... |