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
560985b0
Commit
560985b0
authored
Jan 30, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed link_to_member
parent
b096ee32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+1
-1
app/models/users_project.rb
app/models/users_project.rb
+1
-1
No files found.
app/helpers/projects_helper.rb
View file @
560985b0
...
...
@@ -43,7 +43,7 @@ module ProjectsHelper
tm
=
project
.
team_member_by_id
(
author
)
if
tm
link_to
author_html
,
project_team_member_path
(
project
,
tm
),
class:
"author_link"
link_to
author_html
,
project_team_member_path
(
project
,
tm
.
user_username
),
class:
"author_link"
else
author_html
end
.
html_safe
...
...
app/models/users_project.rb
View file @
560985b0
...
...
@@ -33,7 +33,7 @@ class UsersProject < ActiveRecord::Base
validates
:project_access
,
inclusion:
{
in:
[
GUEST
,
REPORTER
,
DEVELOPER
,
MASTER
]
},
presence:
true
validates
:project
,
presence:
true
delegate
:name
,
:email
,
to: :user
,
prefix:
true
delegate
:name
,
:
username
,
:
email
,
to: :user
,
prefix:
true
scope
:guests
,
where
(
project_access:
GUEST
)
scope
:reporters
,
where
(
project_access:
REPORTER
)
...
...
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