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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
20cebb8f
Commit
20cebb8f
authored
Feb 21, 2018
by
haseeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snippet page modifications
parent
6520e2c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
app/assets/stylesheets/framework/snippets.scss
app/assets/stylesheets/framework/snippets.scss
+9
-1
app/views/shared/snippets/_header.html.haml
app/views/shared/snippets/_header.html.haml
+4
-2
No files found.
app/assets/stylesheets/framework/snippets.scss
View file @
20cebb8f
...
...
@@ -29,8 +29,10 @@
}
.snippet-title
{
font-size
:
24px
;
color
:
$gl-text-color
;
font-size
:
2em
;
font-weight
:
$gl-font-weight-bold
;
min-height
:
$header-height
;
}
.snippet-edited-ago
{
...
...
@@ -62,6 +64,12 @@
cursor
:
auto
;
width
:
101%
;
border-left
:
0
;
outline
:
none
;
box-shadow
:
none
;
&
:active
{
box-shadow
:
none
;
}
}
.embed-toggle
{
...
...
app/views/shared/snippets/_header.html.haml
View file @
20cebb8f
...
...
@@ -22,14 +22,16 @@
%h2
.snippet-title.prepend-top-0.append-bottom-0
=
markdown_field
(
@snippet
,
:title
)
-
if
@snippet
.
updated_at
!=
@snippet
.
created_at
=
edited_time_ago_with_tooltip
(
@snippet
,
placement:
'bottom'
,
html_class:
'snippet-edited-ago'
,
exclude_author:
true
)
-
if
@snippet
.
description
.
present?
.description
.wiki
=
markdown_field
(
@snippet
,
:description
)
%textarea
.hidden.js-task-list-field
=
@snippet
.
description
-
if
@snippet
.
updated_at
!=
@snippet
.
created_at
=
edited_time_ago_with_tooltip
(
@snippet
,
placement:
'bottom'
,
html_class:
'snippet-edited-ago'
,
exclude_author:
true
)
-
if
public_snippet?
.embed-snippet.pull-right.col-md-6
.input-group
...
...
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