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
423bc7d8
Commit
423bc7d8
authored
Jan 28, 2020
by
Marcel van Remmerden
Committed by
Paul Slaughter
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing snippet search results page
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23780
parent
5cf98ae4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
8 deletions
+23
-8
app/assets/stylesheets/framework/snippets.scss
app/assets/stylesheets/framework/snippets.scss
+5
-0
app/views/search/results/_snippet_blob.html.haml
app/views/search/results/_snippet_blob.html.haml
+13
-8
changelogs/unreleased/199060-fix-snippet-search-results.yml
changelogs/unreleased/199060-fix-snippet-search-results.yml
+5
-0
No files found.
app/assets/stylesheets/framework/snippets.scss
View file @
423bc7d8
.snippet-row
{
.title
{
margin-bottom
:
2px
;
font-weight
:
$gl-font-weight-bold
;
}
.snippet-filename
{
...
...
@@ -11,6 +12,10 @@
.snippet-info
{
color
:
$gl-text-color-secondary
;
}
a
{
color
:
$gl-text-color
;
}
}
.snippet-form-holder
.file-holder
.file-title
{
...
...
app/views/search/results/_snippet_blob.html.haml
View file @
423bc7d8
...
...
@@ -3,17 +3,22 @@
-
snippet_chunks
=
snippet_blob
[
:snippet_chunks
]
-
snippet_path
=
gitlab_snippet_path
(
snippet
)
.search-result-row
%span
.search-result-row.snippet-row
=
image_tag
avatar_icon_for_user
(
snippet
.
author
),
class:
"avatar s40 d-none d-sm-block"
,
alt:
''
.title
=
link_to
gitlab_snippet_path
(
snippet
)
do
=
snippet
.
title
.snippet-info
=
snippet
.
to_reference
·
authored
=
time_ago_with_tooltip
(
snippet
.
created_at
)
by
=
link_to
user_snippets_path
(
snippet
.
author
)
do
=
image_tag
avatar_icon_for_user
(
snippet
.
author
),
class:
"avatar avatar-inline s16"
,
alt:
''
=
snippet
.
author_name
%span
.light
=
time_ago_with_tooltip
(
snippet
.
created_at
)
%h4
.snippet-title
.file-holder
.js-file-title.file-title
.file-holder.my-2
.js-file-title.file-title-flex-parent
=
link_to
snippet_path
do
%i
.fa.fa-file
%strong
=
snippet
.
file_name
...
...
changelogs/unreleased/199060-fix-snippet-search-results.yml
0 → 100644
View file @
423bc7d8
---
title
:
Fix design of snippet search results page
merge_request
:
23780
author
:
type
:
fixed
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