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
Kazuhiko Shiozaki
gitlab-ce
Commits
82064a7c
Commit
82064a7c
authored
Feb 25, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor css for snippets list
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
5a1afb48
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
28 deletions
+5
-28
app/assets/stylesheets/pages/snippets.scss
app/assets/stylesheets/pages/snippets.scss
+0
-24
app/views/shared/snippets/_snippet.html.haml
app/views/shared/snippets/_snippet.html.haml
+4
-3
app/views/snippets/_snippets.html.haml
app/views/snippets/_snippets.html.haml
+1
-1
No files found.
app/assets/stylesheets/pages/snippets.scss
View file @
82064a7c
...
...
@@ -2,30 +2,6 @@
padding
:
2px
;
}
.snippet-row
{
.snippet-title
{
font-size
:
15px
;
font-weight
:
bold
;
line-height
:
20px
;
margin-bottom
:
2px
;
.monospace
{
font-weight
:
normal
;
}
}
.snippet-info
{
color
:
#888
;
font-size
:
13px
;
line-height
:
24px
;
a
{
color
:
#888
;
}
}
}
.snippet-holder
{
margin-bottom
:
-
$gl-padding
;
...
...
app/views/shared/snippets/_snippet.html.haml
View file @
82064a7c
%li
.snippet-row
=
image_tag
avatar_icon
(
snippet
.
author_email
),
class:
"avatar s40 hidden-xs"
,
alt:
''
.snippet-title
=
link_to
reliable_snippet_path
(
snippet
)
do
=
link_to
reliable_snippet_path
(
snippet
)
,
class:
'title'
do
=
truncate
(
snippet
.
title
,
length:
60
)
-
if
snippet
.
private?
%span
.label.label-gray
%i
.fa.fa-lock
=
icon
(
'lock'
)
private
%span
.monospace.pull-right
=
snippet
.
file_name
...
...
@@ -15,6 +17,5 @@
.snippet-info
=
link_to
user_snippets_path
(
snippet
.
author
)
do
=
image_tag
avatar_icon
(
snippet
.
author_email
),
class:
"avatar s24"
,
alt:
''
=
snippet
.
author_name
authored
#{
time_ago_with_tooltip
(
snippet
.
created_at
)
}
app/views/snippets/_snippets.html.haml
View file @
82064a7c
%ul
.
bordered
-list
%ul
.
content
-list
=
render
partial:
'shared/snippets/snippet'
,
collection:
@snippets
-
if
@snippets
.
empty?
%li
...
...
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