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
3ec7c351
Commit
3ec7c351
authored
Feb 11, 2021
by
Dmitry Gruzd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add updated_at to rearch results for issues/MR
parent
3a6c2a41
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/views/search/results/_issuable.html.haml
app/views/search/results/_issuable.html.haml
+1
-1
changelogs/unreleased/295311-add-updated-at-to-search-results.yml
...gs/unreleased/295311-add-updated-at-to-search-results.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+1
-1
No files found.
app/views/search/results/_issuable.html.haml
View file @
3ec7c351
...
...
@@ -5,6 +5,6 @@
=
link_to
issuable_path
(
issuable
),
data:
{
track_event:
'click_text'
,
track_label:
"
#{
issuable
.
class
.
name
.
downcase
}
_title"
,
track_property:
'search_result'
},
class:
'gl-w-full'
do
%span
.term.str-truncated.gl-font-weight-bold.gl-ml-2
=
issuable
.
title
.gl-text-gray-500.gl-my-3
=
sprintf
(
s_
(
' %{project_name}#%{issuable_iid} · opened %{issuable_created} by %{author}
'
),
{
project_name:
issuable
.
project
.
full_name
,
issuable_iid:
issuable
.
iid
,
issuable_created:
time_ago_with_tooltip
(
issuable
.
cre
ated_at
,
placement:
'bottom'
),
author:
link_to_member
(
@project
,
issuable
.
author
,
avatar:
false
)
}).
html_safe
=
sprintf
(
s_
(
' %{project_name}#%{issuable_iid} · opened %{issuable_created} by %{author}
· updated %{issuable_updated}'
),
{
project_name:
issuable
.
project
.
full_name
,
issuable_iid:
issuable
.
iid
,
issuable_created:
time_ago_with_tooltip
(
issuable
.
created_at
,
placement:
'bottom'
),
issuable_updated:
time_ago_with_tooltip
(
issuable
.
upd
ated_at
,
placement:
'bottom'
),
author:
link_to_member
(
@project
,
issuable
.
author
,
avatar:
false
)
}).
html_safe
.description.term.col-sm-10.gl-px-0
=
highlight_and_truncate_issuable
(
issuable
,
@search_term
,
@search_highlight
)
changelogs/unreleased/295311-add-updated-at-to-search-results.yml
0 → 100644
View file @
3ec7c351
---
title
:
Add updated_at output to search results
merge_request
:
53958
author
:
type
:
changed
locale/gitlab.pot
View file @
3ec7c351
...
...
@@ -16,7 +16,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
msgid " %{project_name}#%{issuable_iid} · opened %{issuable_created} by %{author}"
msgid " %{project_name}#%{issuable_iid} · opened %{issuable_created} by %{author}
· updated %{issuable_updated}
"
msgstr ""
msgid " %{start} to %{end}"
...
...
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