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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
33347efa
Commit
33347efa
authored
Jul 18, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
User links to user snippets
parent
82e1fe46
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
10 deletions
+14
-10
app/assets/stylesheets/gitlab_bootstrap/lists.scss
app/assets/stylesheets/gitlab_bootstrap/lists.scss
+0
-1
app/assets/stylesheets/sections/snippets.scss
app/assets/stylesheets/sections/snippets.scss
+6
-0
app/views/snippets/_snippet.html.haml
app/views/snippets/_snippet.html.haml
+3
-2
app/views/snippets/current_user_index.html.haml
app/views/snippets/current_user_index.html.haml
+1
-1
app/views/snippets/index.html.haml
app/views/snippets/index.html.haml
+1
-3
app/views/snippets/show.html.haml
app/views/snippets/show.html.haml
+3
-2
app/views/snippets/user_index.html.haml
app/views/snippets/user_index.html.haml
+0
-1
No files found.
app/assets/stylesheets/gitlab_bootstrap/lists.scss
View file @
33347efa
...
...
@@ -75,7 +75,6 @@ ul.bordered-list {
display
:
block
;
margin
:
0px
;
&
:last-child
{
border
:none
}
&
.active
{
background
:
#f9f9f9
;
a
{
font-weight
:
bold
;
}
...
...
app/assets/stylesheets/sections/snippets.scss
View file @
33347efa
...
...
@@ -7,3 +7,9 @@
}
}
}
.my-snippets
li
:first-child
{
h4
{
margin-top
:
0
;
}
padding-top
:
0
;
}
app/views/snippets/_snippet.html.haml
View file @
33347efa
...
...
@@ -17,6 +17,7 @@
=
"#
#{
snippet
.
id
}
"
%span
by
=
link_to
user_snippets_path
(
snippet
.
author
)
do
=
image_tag
gravatar_icon
(
snippet
.
author_email
),
class:
"avatar avatar-inline s16"
,
alt:
''
=
snippet
.
author_name
%span
.light
#{
time_ago_in_words
(
snippet
.
created_at
)
}
ago
app/views/snippets/current_user_index.html.haml
View file @
33347efa
...
...
@@ -19,6 +19,6 @@
=
nav_tab
:scope
,
'public'
do
=
link_to
"Public"
,
user_snippets_path
(
@user
,
scope:
'public'
)
.span9
.span9
.my-snippets
=
render
'snippets'
app/views/snippets/index.html.haml
View file @
33347efa
...
...
@@ -9,7 +9,5 @@
My snippets
%hr
.row
.span12
=
render
'snippets'
=
render
'snippets'
app/views/snippets/show.html.haml
View file @
33347efa
...
...
@@ -16,6 +16,7 @@
=
"#
#{
@snippet
.
id
}
"
%span
.light
by
=
link_to
user_snippets_path
(
@snippet
.
author
)
do
=
image_tag
gravatar_icon
(
@snippet
.
author_email
),
class:
"avatar avatar-inline s16"
=
@snippet
.
author_name
...
...
app/views/snippets/user_index.html.haml
View file @
33347efa
...
...
@@ -4,7 +4,6 @@
%span
\/
Snippets
%small
share code pastes with others out of git repository
=
link_to
new_snippet_path
,
class:
"btn btn-small add_new pull-right"
,
title:
"New Snippet"
do
Add new snippet
...
...
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