Commit 13ac0068 authored by Samantha Ming's avatar Samantha Ming Committed by Phil Hughes

Address review comment

- Move emtpy text to haml
- Remove scss
parent 7b5ad03d
......@@ -4,11 +4,12 @@
- commits = @commits
- hidden = @hidden_commit_count
- commits_count = @commits.size
- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits|
%li.commit-header.js-commit-header{ data: { day: day } }
%span.day= l(day, format: '%d %b, %Y')
%span.commits-count= n_("%d commit", "%d commits", commits.count) % commits.count
%span.commits-count= n_("%d commit", "%d commits", commits_count) % commits_count
%li.commits-row{ data: { day: day } }
%ul.content-list.commit-list.flex-list
......@@ -17,3 +18,9 @@
- if hidden > 0
%li.alert.alert-warning
= n_('%s additional commit has been omitted to prevent performance issues.', '%s additional commits have been omitted to prevent performance issues.', hidden) % number_with_delimiter(hidden)
- if commits_count == 0
.mt-4.text-center
.bold
= _('Your search didn\'t match any commits.')
= _('Try changing or removing filters.')
---
title: Add temporary empty message when no result is found
merge_request: 29306
author:
type: added
......@@ -21861,6 +21861,9 @@ msgstr ""
msgid "Try all GitLab has to offer for 30 days."
msgstr ""
msgid "Try changing or removing filters."
msgstr ""
msgid "Try to fork again"
msgstr ""
......@@ -24114,6 +24117,9 @@ msgstr ""
msgid "Your request for access has been queued for review."
msgstr ""
msgid "Your search didn't match any commits."
msgstr ""
msgid "Your subscription expired!"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment