Commit 423bc7d8 authored by Marcel van Remmerden's avatar Marcel van Remmerden Committed by Paul Slaughter
parent 5cf98ae4
.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: ''
= snippet.title .title
= link_to gitlab_snippet_path(snippet) do
= 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