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
Jérome Perrin
gitlab-ce
Commits
0d8ad2dd
Commit
0d8ad2dd
authored
Aug 20, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup snippets index pages
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
e06e9623
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
25 deletions
+15
-25
app/views/snippets/current_user_index.html.haml
app/views/snippets/current_user_index.html.haml
+5
-6
app/views/snippets/index.html.haml
app/views/snippets/index.html.haml
+1
-9
app/views/snippets/user_index.html.haml
app/views/snippets/user_index.html.haml
+9
-10
No files found.
app/views/snippets/current_user_index.html.haml
View file @
0d8ad2dd
-
page_title
"Your Snippets"
-
page_title
"Your Snippets"
=
render
'head'
=
render
'head'
%h3
.page-title
Your Snippets
.pull-right
=
link_to
new_snippet_path
,
class:
"btn btn-new btn-grouped"
,
title:
"New Snippet"
do
Add new snippet
%p
.light
.slead
Share code pastes with others out of git repository
Share code pastes with others out of git repository
.pull-right
=
link_to
new_snippet_path
,
class:
"btn btn-new btn-sm"
,
title:
"New Snippet"
do
Add new snippet
%ul
.nav.nav-tabs
%ul
.nav.nav-tabs
=
nav_tab
:scope
,
nil
do
=
nav_tab
:scope
,
nil
do
=
link_to
user_snippets_path
(
@user
)
do
=
link_to
user_snippets_path
(
@user
)
do
...
...
app/views/snippets/index.html.haml
View file @
0d8ad2dd
-
page_title
"Public Snippets"
-
page_title
"Public Snippets"
-
if
current_user
-
if
current_user
=
render
'head'
=
render
'head'
%h3
.page-title
Public snippets
.pull-right
.slead
-
if
current_user
=
link_to
new_snippet_path
,
class:
"btn btn-new btn-grouped"
,
title:
"New Snippet"
do
Add new snippet
%p
.light
Public snippets created by you and other users are listed here
Public snippets created by you and other users are listed here
%hr
=
render
'snippets'
=
render
'snippets'
app/views/snippets/user_index.html.haml
View file @
0d8ad2dd
-
page_title
"Snippets"
,
@user
.
name
-
page_title
"Snippets"
,
@user
.
name
%h3
.page-title
=
image_tag
avatar_icon
(
@user
.
email
),
class:
"avatar s24"
=
@user
.
name
%span
\/
Snippets
-
if
current_user
=
link_to
new_snippet_path
,
class:
"btn btn-sm add_new pull-right"
,
title:
"New Snippet"
do
Add new snippet
%hr
%ol
.breadcrumb
%li
=
link_to
snippets_path
do
Snippets
%li
=
@user
.
name
.pull-right.hidden-xs
=
link_to
user_path
(
@user
)
do
#{
@user
.
name
}
profile page
=
render
'snippets'
=
render
'snippets'
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