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
Jérome Perrin
gitlab-ce
Commits
b371b6d1
Commit
b371b6d1
authored
Oct 18, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update style of snippet detail page
parent
1565a95d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
79 deletions
+83
-79
CHANGELOG
CHANGELOG
+1
-1
app/assets/stylesheets/pages/snippets.scss
app/assets/stylesheets/pages/snippets.scss
+31
-31
app/views/projects/snippets/show.html.haml
app/views/projects/snippets/show.html.haml
+16
-13
app/views/shared/snippets/_header.html.haml
app/views/shared/snippets/_header.html.haml
+23
-24
app/views/snippets/show.html.haml
app/views/snippets/show.html.haml
+12
-10
No files found.
CHANGELOG
View file @
b371b6d1
...
@@ -59,7 +59,7 @@ v 8.1.0 (unreleased)
...
@@ -59,7 +59,7 @@ v 8.1.0 (unreleased)
- Fix position of hamburger in header for smaller screens (Han Loong Liauw)
- Fix position of hamburger in header for smaller screens (Han Loong Liauw)
- Fix bug where Emojis in Markdown would truncate remaining text (Sakata Sinji)
- Fix bug where Emojis in Markdown would truncate remaining text (Sakata Sinji)
- Persist filters when sorting on admin user page (Jerry Lukins)
- Persist filters when sorting on admin user page (Jerry Lukins)
-
Added last modified date to snippets#show
(Han Loong Liauw)
-
Update style of snippet detail page
(Han Loong Liauw)
- Allow dashboard and group issues/MRs to be filtered by label
- Allow dashboard and group issues/MRs to be filtered by label
- Add spellcheck=false to certain input fields
- Add spellcheck=false to certain input fields
- Invalidate stored service password if the endpoint URL is changed
- Invalidate stored service password if the endpoint URL is changed
...
...
app/assets/stylesheets/pages/snippets.scss
View file @
b371b6d1
...
@@ -31,50 +31,50 @@
...
@@ -31,50 +31,50 @@
}
}
}
}
.snippet-
details
{
.snippet-
holder
{
.
page-title
{
.
snippet-details
{
margin-top
:
-15px
;
.page-title
{
padding
:
10px
0
;
margin-top
:
-15px
;
margin-bottom
:
0
;
padding
:
10px
0
;
color
:
#5c5d5e
;
margin-bottom
:
0
;
font-size
:
13px
;
color
:
#5c5d5e
;
@include
clearfix
()
;
font-size
:
16px
;
.creator
{
.author
{
color
:
$gl-gray
;
color
:
#5c5d5e
;
a
{
color
:
$gl-gray
;
}
}
}
.snippet-id
{
.snippet-id
{
color
:
#5c5d5e
;
color
:
#5c5d5e
;
}
}
}
.btn
{
padding
:
10px
$gl-padding
;
.snippet-title
{
margin
:
0
;
font-size
:
23px
;
color
:
#313236
;
}
}
}
.snippet-title
{
@media
(
max-width
:
$screen-md-max
)
{
margin
:
0
;
.new-snippet-link
{
font-size
:
23px
;
display
:
none
;
color
:
#313236
;
}
}
}
@media
(
max-width
:
$screen-md-max
)
{
@media
(
max-width
:
$screen-sm-max
)
{
.new-snippet-link
{
.creator
,
display
:
none
;
.page-title
.btn-close
{
display
:
none
;
}
}
}
}
}
@media
(
max-width
:
$screen-sm-max
)
{
.file-holder
{
.creator
,
border-top
:
0
;
.page-title
.btn-close
{
display
:
none
;
}
}
}
}
}
.snippet-box
{
.snippet-box
{
@include
border-radius
(
2px
);
@include
border-radius
(
2px
);
...
...
app/views/projects/snippets/show.html.haml
View file @
b371b6d1
-
page_title
@snippet
.
title
,
"Snippets"
-
page_title
@snippet
.
title
,
"Snippets"
=
render
"header_title"
=
render
"header_title"
=
render
'shared/snippets/header'
.snippet-holder
.file-holder
=
render
'shared/snippets/header'
.file-title
%i
.fa.fa-file
%article
.file-holder
%strong
.file-title
=
@snippet
.
file_name
=
blob_icon
0
,
@snippet
.
file_name
.file-actions
%strong
.btn-group
=
@snippet
.
file_name
=
link_to
'Raw'
,
raw_namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
.file-actions.hidden-xs
.btn-group.tree-btn-group
=
render
'shared/snippets/blob'
=
link_to
'Raw'
,
raw_namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
%div
#notes
=
render
"projects/notes/notes_with_form"
=
render
'shared/snippets/blob'
%div
#notes
=
render
"projects/notes/notes_with_form"
app/views/shared/snippets/_header.html.haml
View file @
b371b6d1
.snippet
.snippet-details
.snippet-details
.page-title
.page-title
.snippet-box
{
class:
visibility_level_color
(
@snippet
.
visibility_level
)}
.snippet-box
{
class:
visibility_level_color
(
@snippet
.
visibility_level
)}
=
visibility_level_icon
(
@snippet
.
visibility_level
)
=
visibility_level_icon
(
@snippet
.
visibility_level
)
=
visibility_level_label
(
@snippet
.
visibility_level
)
=
visibility_level_label
(
@snippet
.
visibility_level
)
%span
.snippet-id
Snippet ##{@snippet.id}
%span
.snippet-id
Snippet ##{@snippet.id}
%span
.creator
%span
.creator
·
created by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
created by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
·
=
time_ago_with_tooltip
(
@snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet_updated_ago'
)
=
time_ago_with_tooltip
(
@snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet_updated_ago'
)
-
if
@snippet
.
updated_at
!=
@snippet
.
created_at
-
if
@snippet
.
updated_at
!=
@snippet
.
created_at
%span
%span
·
·
=
icon
(
'edit'
,
title:
'edited'
)
=
icon
(
'edit'
,
title:
'edited'
)
=
time_ago_with_tooltip
(
@snippet
.
updated_at
,
placement:
'bottom'
,
html_class:
'snippet_edited_ago'
)
=
time_ago_with_tooltip
(
@snippet
.
updated_at
,
placement:
'bottom'
,
html_class:
'snippet_edited_ago'
)
.pull-right
.pull-right
-
if
@snippet
.
project_id?
-
if
@snippet
.
project_id?
=
render
"projects/snippets/actions"
=
render
"projects/snippets/actions"
-
else
-
else
=
render
"snippets/actions"
=
render
"snippets/actions"
.gray-content-block.middle-block
.gray-content-block.middle-block
%h2
.snippet-title
%h2
.snippet-title
=
gfm
escape_once
(
@snippet
.
title
)
=
gfm
escape_once
(
@snippet
.
title
)
app/views/snippets/show.html.haml
View file @
b371b6d1
-
page_title
@snippet
.
title
,
"Snippets"
-
page_title
@snippet
.
title
,
"Snippets"
=
render
'shared/snippets/header'
.file-holder
.snippet-holder
.file-title
=
render
'shared/snippets/header'
%i
.fa.fa-file
%strong
%article
.file-holder
=
@snippet
.
file_name
.file-title
.file-actions
=
blob_icon
0
,
@snippet
.
file_name
.btn-group
%strong
=
link_to
'Raw'
,
raw_snippet_path
(
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
@snippet
.
file_name
=
render
'shared/snippets/blob'
.file-actions.hidden-xs
.btn-group.tree-btn-group
=
link_to
'Raw'
,
raw_snippet_path
(
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
render
'shared/snippets/blob'
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