Commit 34b3d4e6 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch '199060-fix-snippet-search-results' into 'master'

Resolve "Fix snippet search results"

Closes #199060

See merge request gitlab-org/gitlab!23780
parents 5cf98ae4 423bc7d8
.snippet-row { .snippet-row {
.title { .title {
margin-bottom: 2px; margin-bottom: 2px;
font-weight: $gl-font-weight-bold;
} }
.snippet-filename { .snippet-filename {
...@@ -11,6 +12,10 @@ ...@@ -11,6 +12,10 @@
.snippet-info { .snippet-info {
color: $gl-text-color-secondary; color: $gl-text-color-secondary;
} }
a {
color: $gl-text-color;
}
} }
.snippet-form-holder .file-holder .file-title { .snippet-form-holder .file-holder .file-title {
......
...@@ -3,17 +3,22 @@ ...@@ -3,17 +3,22 @@
- snippet_chunks = snippet_blob[:snippet_chunks] - snippet_chunks = snippet_blob[:snippet_chunks]
- snippet_path = gitlab_snippet_path(snippet) - snippet_path = gitlab_snippet_path(snippet)
.search-result-row .search-result-row.snippet-row
%span = 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.title
.snippet-info
= snippet.to_reference
·
authored
= time_ago_with_tooltip(snippet.created_at)
by by
= link_to user_snippets_path(snippet.author) do = 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 = snippet.author_name
%span.light= time_ago_with_tooltip(snippet.created_at)
%h4.snippet-title .file-holder.my-2
.file-holder .js-file-title.file-title-flex-parent
.js-file-title.file-title
= link_to snippet_path do = link_to snippet_path do
%i.fa.fa-file %i.fa.fa-file
%strong= snippet.file_name %strong= snippet.file_name
......
---
title: Fix design of snippet search results page
merge_request: 23780
author:
type: fixed
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