Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
13ac0068
Commit
13ac0068
authored
Apr 16, 2020
by
Samantha Ming
Committed by
Phil Hughes
Apr 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address review comment
- Move emtpy text to haml - Remove scss
parent
7b5ad03d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
app/views/projects/commits/_commits.html.haml
app/views/projects/commits/_commits.html.haml
+8
-1
changelogs/unreleased/14984-add-text-for-empty-commit-list.yml
...elogs/unreleased/14984-add-text-for-empty-commit-list.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+6
-0
No files found.
app/views/projects/commits/_commits.html.haml
View file @
13ac0068
...
...
@@ -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.'
)
changelogs/unreleased/14984-add-text-for-empty-commit-list.yml
0 → 100644
View file @
13ac0068
---
title
:
Add temporary empty message when no result is found
merge_request
:
29306
author
:
type
:
added
locale/gitlab.pot
View file @
13ac0068
...
...
@@ -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 ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment