BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
28 deletions
+5
-28
snippets.scss
app/assets/stylesheets/pages/snippets.scss
+0
-24
_snippet.html.haml
app/views/shared/snippets/_snippet.html.haml
+4
-3
_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