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
29089352
Commit
29089352
authored
May 08, 2016
by
Long Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Routing refactoring
parent
3d462704
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
23 deletions
+20
-23
app/views/search/results/_snippet_blob.html.haml
app/views/search/results/_snippet_blob.html.haml
+1
-1
app/views/search/results/_snippet_title.html.haml
app/views/search/results/_snippet_title.html.haml
+1
-1
app/views/shared/snippets/_snippet.html.haml
app/views/shared/snippets/_snippet.html.haml
+1
-1
app/views/users/calendar.html.haml
app/views/users/calendar.html.haml
+1
-1
app/views/users/show.html.haml
app/views/users/show.html.haml
+6
-6
config/routes.rb
config/routes.rb
+10
-13
No files found.
app/views/search/results/_snippet_blob.html.haml
View file @
29089352
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
%span
%span
=
snippet
.
title
=
snippet
.
title
by
by
=
link_to
snippets_user
_path
(
snippet
.
author
)
do
=
link_to
user_snippets
_path
(
snippet
.
author
)
do
=
image_tag
avatar_icon
(
snippet
.
author_email
),
class:
"avatar avatar-inline s16"
,
alt:
''
=
image_tag
avatar_icon
(
snippet
.
author_email
),
class:
"avatar avatar-inline s16"
,
alt:
''
=
snippet
.
author_name
=
snippet
.
author_name
%span
.light
#{
time_ago_with_tooltip
(
snippet
.
created_at
)
}
%span
.light
#{
time_ago_with_tooltip
(
snippet
.
created_at
)
}
...
...
app/views/search/results/_snippet_title.html.haml
View file @
29089352
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
=
"#
#{
snippet_title
.
id
}
"
=
"#
#{
snippet_title
.
id
}
"
%span
%span
by
by
=
link_to
snippets_user
_path
(
snippet_title
.
author
)
do
=
link_to
user_snippets
_path
(
snippet_title
.
author
)
do
=
image_tag
avatar_icon
(
snippet_title
.
author_email
),
class:
"avatar avatar-inline s16"
,
alt:
''
=
image_tag
avatar_icon
(
snippet_title
.
author_email
),
class:
"avatar avatar-inline s16"
,
alt:
''
=
snippet_title
.
author_name
=
snippet_title
.
author_name
%span
.light
#{
time_ago_with_tooltip
(
snippet_title
.
created_at
)
}
%span
.light
#{
time_ago_with_tooltip
(
snippet_title
.
created_at
)
}
app/views/shared/snippets/_snippet.html.haml
View file @
29089352
...
@@ -16,6 +16,6 @@
...
@@ -16,6 +16,6 @@
=
link_to
snippet
.
project
.
name_with_namespace
,
namespace_project_path
(
snippet
.
project
.
namespace
,
snippet
.
project
)
=
link_to
snippet
.
project
.
name_with_namespace
,
namespace_project_path
(
snippet
.
project
.
namespace
,
snippet
.
project
)
.snippet-info
.snippet-info
=
link_to
snippets_user
_path
(
snippet
.
author
)
do
=
link_to
user_snippets
_path
(
snippet
.
author
)
do
=
snippet
.
author_name
=
snippet
.
author_name
authored
#{
time_ago_with_tooltip
(
snippet
.
created_at
)
}
authored
#{
time_ago_with_tooltip
(
snippet
.
created_at
)
}
app/views/users/calendar.html.haml
View file @
29089352
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#{
@timestamps
.
to_json
}
,
#{
@timestamps
.
to_json
}
,
#{
@starting_year
}
,
#{
@starting_year
}
,
#{
@starting_month
}
,
#{
@starting_month
}
,
'
#{
calendar_activities_user
_path
}
'
'
#{
user_calendar_activities
_path
}
'
);
);
.calendar-hint
Summary of issues, merge requests, and push events
.calendar-hint
Summary of issues, merge requests, and push events
app/views/users/show.html.haml
View file @
29089352
...
@@ -70,19 +70,19 @@
...
@@ -70,19 +70,19 @@
%ul
.nav-links.center.user-profile-nav
%ul
.nav-links.center.user-profile-nav
%li
.js-activity-tab
%li
.js-activity-tab
=
link_to
calendar_activities_user
_path
,
data:
{
target:
'div#activity'
,
action:
'activity'
,
toggle:
'tab'
}
do
=
link_to
user_calendar_activities
_path
,
data:
{
target:
'div#activity'
,
action:
'activity'
,
toggle:
'tab'
}
do
Activity
Activity
%li
.js-groups-tab
%li
.js-groups-tab
=
link_to
groups_user
_path
,
data:
{
target:
'div#groups'
,
action:
'groups'
,
toggle:
'tab'
}
do
=
link_to
user_groups
_path
,
data:
{
target:
'div#groups'
,
action:
'groups'
,
toggle:
'tab'
}
do
Groups
Groups
%li
.js-contributed-tab
%li
.js-contributed-tab
=
link_to
contributed_projects_user
_path
,
data:
{
target:
'div#contributed'
,
action:
'contributed'
,
toggle:
'tab'
}
do
=
link_to
user_contributed_projects
_path
,
data:
{
target:
'div#contributed'
,
action:
'contributed'
,
toggle:
'tab'
}
do
Contributed projects
Contributed projects
%li
.projects-tab
%li
.projects-tab
=
link_to
projects_user
_path
,
data:
{
target:
'div#projects'
,
action:
'projects'
,
toggle:
'tab'
}
do
=
link_to
user_projects
_path
,
data:
{
target:
'div#projects'
,
action:
'projects'
,
toggle:
'tab'
}
do
Personal projects
Personal projects
%li
.snippets-tab
%li
.snippets-tab
=
link_to
snippets_user
_path
,
data:
{
target:
'div#snippets'
,
action:
'snippets'
,
toggle:
'tab'
}
do
=
link_to
user_snippets
_path
,
data:
{
target:
'div#snippets'
,
action:
'snippets'
,
toggle:
'tab'
}
do
Snippets
Snippets
%div
{
class:
container_class
}
%div
{
class:
container_class
}
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
#activity
.tab-pane
#activity
.tab-pane
.row-content-block.calender-block.white.second-block.hidden-xs
.row-content-block.calender-block.white.second-block.hidden-xs
%div
{
class:
container_class
}
%div
{
class:
container_class
}
.user-calendar
{
data:
{
href:
calendar_use
r_path
}}
.user-calendar
{
data:
{
href:
user_calenda
r_path
}}
%h4
.center.light
%h4
.center.light
%i
.fa.fa-spinner.fa-spin
%i
.fa.fa-spinner.fa-spin
.user-calendar-activities
.user-calendar-activities
...
...
config/routes.rb
View file @
29089352
...
@@ -343,19 +343,16 @@ Rails.application.routes.draw do
...
@@ -343,19 +343,16 @@ Rails.application.routes.draw do
end
end
end
end
resources
(
:users
,
scope
(
path:
'u/:username'
,
path:
'u'
,
param: :username
,
constraints:
{
username:
/[a-zA-Z.0-9_\-]+(?<!\.atom)/
},
constraints:
{
username:
/[a-zA-Z.0-9_\-]+(?<!\.atom)/
},
only: :show
)
do
controller: :users
)
do
member
do
get
:calendar
,
action: :calendar
,
as: :user_calendar
get
:calendar
,
as: :calendar
get
:calendar_activities
,
action: :calendar_activities
,
as: :user_calendar_activities
get
:calendar_activities
,
as: :calendar_activities
get
:groups
,
action: :groups
,
as: :user_groups
get
:groups
,
as: :groups
get
:projects
,
action: :projects
,
as: :user_projects
get
:projects
,
as: :projects
get
:contributed
,
action: :contributed
,
as: :user_contributed_projects
get
:contributed
,
as: :contributed_projects
get
:snippets
,
action: :snippets
,
as: :user_snippets
get
:snippets
,
as: :snippets
get
'/'
,
action: :show
,
as: :user
end
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