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
68c1e3a1
Commit
68c1e3a1
authored
Dec 08, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update snippets list design
parent
1ea47847
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
app/assets/stylesheets/pages/snippets.scss
app/assets/stylesheets/pages/snippets.scss
+10
-0
app/views/shared/snippets/_snippet.html.haml
app/views/shared/snippets/_snippet.html.haml
+10
-13
No files found.
app/assets/stylesheets/pages/snippets.scss
View file @
68c1e3a1
.snippet-row
{
.title
{
margin-bottom
:
2px
;
}
.snippet-filename
{
padding
:
0
2px
;
}
}
.snippet-form-holder
.file-holder
.file-title
{
.snippet-form-holder
.file-holder
.file-title
{
padding
:
2px
;
padding
:
2px
;
}
}
...
...
app/views/shared/snippets/_snippet.html.haml
View file @
68c1e3a1
...
@@ -4,14 +4,11 @@
...
@@ -4,14 +4,11 @@
.title
.title
=
link_to
reliable_snippet_path
(
snippet
)
do
=
link_to
reliable_snippet_path
(
snippet
)
do
=
snippet
.
title
=
snippet
.
title
-
if
snippet
.
private?
-
if
snippet
.
file_name
%span
.label.label-gray.hidden-xs
%span
.snippet-filename.monospace.hidden-xs
=
icon
(
'lock'
)
=
snippet
.
file_name
private
%span
.monospace.pull-right.hidden-xs
=
snippet
.
file_name
%ul
.controls
.visible-xs
%ul
.controls
%li
%li
-
note_count
=
snippet
.
notes
.
user
.
count
-
note_count
=
snippet
.
notes
.
user
.
count
=
link_to
reliable_snippet_path
(
snippet
,
anchor:
'notes'
),
class:
(
'no-comments'
if
note_count
.
zero?
)
do
=
link_to
reliable_snippet_path
(
snippet
,
anchor:
'notes'
),
class:
(
'no-comments'
if
note_count
.
zero?
)
do
...
@@ -22,11 +19,11 @@
...
@@ -22,11 +19,11 @@
=
visibility_level_label
(
snippet
.
visibility_level
)
=
visibility_level_label
(
snippet
.
visibility_level
)
=
visibility_level_icon
(
snippet
.
visibility_level
,
fw:
false
)
=
visibility_level_icon
(
snippet
.
visibility_level
,
fw:
false
)
%small
.pull-right.cgray.hidden-xs
.snippet-info
-
if
snippet
.
project_id?
#{
snippet
.
to_reference
}
·
=
link_to
snippet
.
project
.
name_with_namespace
,
namespace_project_path
(
snippet
.
project
.
namespace
,
snippet
.
project
)
authored
#{
time_ago_with_tooltip
(
snippet
.
created_at
,
placement:
'bottom'
)
}
by
.snippet-info.hidden-xs
=
link_to
user_snippets_path
(
snippet
.
author
)
do
=
link_to
user_snippets_path
(
snippet
.
author
)
do
=
snippet
.
author_name
=
snippet
.
author_name
authored
#{
time_ago_with_tooltip
(
snippet
.
created_at
)
}
.pull-right.snippet-updated-at
%span
updated
#{
time_ago_with_tooltip
(
snippet
.
updated_at
,
placement:
'bottom'
,
html_class:
'snippet_update_ago'
)
}
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