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
Tatuya Kamada
gitlab-ce
Commits
4ac7f5c9
Commit
4ac7f5c9
authored
Aug 27, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle snippets rendering
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
daa90e11
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
28 deletions
+34
-28
app/assets/stylesheets/pages/snippets.scss
app/assets/stylesheets/pages/snippets.scss
+24
-0
app/views/projects/snippets/_snippet.html.haml
app/views/projects/snippets/_snippet.html.haml
+0
-15
app/views/projects/snippets/index.html.haml
app/views/projects/snippets/index.html.haml
+1
-2
app/views/shared/snippets/_snippet.html.haml
app/views/shared/snippets/_snippet.html.haml
+8
-10
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 @
4ac7f5c9
...
...
@@ -6,3 +6,27 @@
.snippet-form-holder
.file-holder
.file-title
{
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
;
}
}
}
app/views/projects/snippets/_snippet.html.haml
deleted
100644 → 0
View file @
daa90e11
%li
%h4
.snippet-title
=
link_to
reliable_snippet_path
(
snippet
)
do
=
truncate
(
snippet
.
title
,
length:
60
)
%span
.cgray.monospace.tiny.pull-right
=
snippet
.
file_name
.snippet-info
=
"#
#{
snippet
.
id
}
"
%span
by
=
image_tag
avatar_icon
(
snippet
.
author_email
),
class:
"avatar avatar-inline s16"
=
snippet
.
author_name
%span
.light
#{
time_ago_with_tooltip
(
snippet
.
created_at
)
}
app/views/projects/snippets/index.html.haml
View file @
4ac7f5c9
...
...
@@ -8,9 +8,8 @@
%p
.light
Share code pastes with others out of git repository
%hr
%ul
.bordered-list
=
render
partial:
"
projects
/snippets/snippet"
,
collection:
@snippets
=
render
partial:
"
shared
/snippets/snippet"
,
collection:
@snippets
-
if
@snippets
.
empty?
%li
.nothing-here-block
Nothing here.
app/views/snippets/_snippet.html.haml
→
app/views/s
hared/s
nippets/_snippet.html.haml
View file @
4ac7f5c9
%li
%h4
.snippet-title
%li
.snippet-row
.snippet-title
=
link_to
reliable_snippet_path
(
snippet
)
do
=
truncate
(
snippet
.
title
,
length:
60
)
-
if
snippet
.
private?
%span
.label.label-gray
%i
.fa.fa-lock
private
%span
.
cgray.monospace.tiny
.pull-right
%span
.
monospace
.pull-right
=
snippet
.
file_name
%small
.pull-right.cgray
...
...
@@ -14,10 +14,8 @@
=
link_to
snippet
.
project
.
name_with_namespace
,
namespace_project_path
(
snippet
.
project
.
namespace
,
snippet
.
project
)
.snippet-info
=
"#
#{
snippet
.
id
}
"
%span
by
=
link_to
user_snippets_path
(
snippet
.
author
)
do
=
image_tag
avatar_icon
(
snippet
.
author_email
),
class:
"avatar avatar-inline s16"
,
alt:
''
=
snippet
.
author_name
%span
.light
#{
time_ago_with_tooltip
(
snippet
.
created_at
)
}
=
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 @
4ac7f5c9
%ul
.bordered-list
=
render
partial:
'snippet'
,
collection:
@snippets
=
render
partial:
's
hared/snippets/s
nippet'
,
collection:
@snippets
-
if
@snippets
.
empty?
%li
.nothing-here-block
Nothing here.
...
...
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