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
Boxiang Sun
gitlab-ce
Commits
dd1ad6bf
Commit
dd1ad6bf
authored
May 10, 2016
by
Long Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code improve
parent
6781c1b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
18 deletions
+19
-18
app/views/snippets/index.html.haml
app/views/snippets/index.html.haml
+11
-11
config/routes.rb
config/routes.rb
+8
-7
No files found.
app/views/snippets/index.html.haml
View file @
dd1ad6bf
-
page_title
"By
#{
@user
.
name
}
"
,
"Snippets"
-
page_title
"By
#{
@user
.
name
}
"
,
"Snippets"
%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
%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'
config/routes.rb
View file @
dd1ad6bf
...
...
@@ -344,15 +344,16 @@ Rails.application.routes.draw do
end
scope
(
path:
'u/:username'
,
as: :user
,
constraints:
{
username:
/[a-zA-Z.0-9_\-]+(?<!\.atom)/
},
controller: :users
)
do
get
:calendar
,
action: :calendar
,
as: :user_calendar
get
:calendar_activities
,
action: :calendar_activities
,
as: :user_calendar_activities
get
:groups
,
action: :groups
,
as: :user_groups
get
:projects
,
action: :projects
,
as: :user_projects
get
:contributed
,
a
ction: :contributed
,
as: :user_
contributed_projects
get
:snippets
,
action: :snippets
,
as: :user_snippets
get
'/'
,
action: :show
,
as: :user
get
:calendar
get
:calendar_activities
get
:groups
get
:projects
get
:contributed
,
a
s: :
contributed_projects
get
:snippets
get
'/'
,
action: :show
end
#
...
...
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