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
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
%ol
.breadcrumb
%li
%li
=
link_to
snippets_path
do
=
link_to
snippets_path
do
Snippets
Snippets
%li
%li
=
@user
.
name
=
@user
.
name
.pull-right.hidden-xs
.pull-right.hidden-xs
=
link_to
user_path
(
@user
)
do
=
link_to
user_path
(
@user
)
do
#{
@user
.
name
}
profile page
#{
@user
.
name
}
profile page
=
render
'snippets'
=
render
'snippets'
config/routes.rb
View file @
dd1ad6bf
...
@@ -344,15 +344,16 @@ Rails.application.routes.draw do
...
@@ -344,15 +344,16 @@ Rails.application.routes.draw do
end
end
scope
(
path:
'u/:username'
,
scope
(
path:
'u/:username'
,
as: :user
,
constraints:
{
username:
/[a-zA-Z.0-9_\-]+(?<!\.atom)/
},
constraints:
{
username:
/[a-zA-Z.0-9_\-]+(?<!\.atom)/
},
controller: :users
)
do
controller: :users
)
do
get
:calendar
,
action: :calendar
,
as: :user_calendar
get
:calendar
get
:calendar_activities
,
action: :calendar_activities
,
as: :user_calendar_activities
get
:calendar_activities
get
:groups
,
action: :groups
,
as: :user_groups
get
:groups
get
:projects
,
action: :projects
,
as: :user_projects
get
:projects
get
:contributed
,
a
ction: :contributed
,
as: :user_
contributed_projects
get
:contributed
,
a
s: :
contributed_projects
get
:snippets
,
action: :snippets
,
as: :user_snippets
get
:snippets
get
'/'
,
action: :show
,
as: :user
get
'/'
,
action: :show
end
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