Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
3b4cab090906
Commit
3b4cab09
authored
Nov 24, 2012
by
Dmitriy Zaporozhets
Browse files
Fix group assoc. Show namespace in project list
parent
bea3c6f4d83f
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
3b4cab09
...
...
@@ -34,7 +34,7 @@
attr_accessor
:error_code
# Relations
belongs_to
:group
,
foreign_key:
"namespace_id"
,
conditions:
'
type = Group'
belongs_to
:group
,
foreign_key:
"namespace_id"
,
conditions:
"
type =
'
Group'
"
belongs_to
:namespace
belongs_to
:owner
,
class_name:
"User"
has_many
:users
,
through: :users_projects
...
...
app/views/dashboard/_projects.html.haml
View file @
3b4cab09
...
...
@@ -12,7 +12,11 @@
-
projects
.
each
do
|
project
|
%li
.wll
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
%strong
.project_name
=
truncate
(
project
.
name
,
length:
25
)
-
if
project
.
namespace
=
project
.
namespace
.
human_name
\/
%strong
.project_name
=
truncate
(
project
.
name
,
length:
25
)
%span
.arrow
→
%span
.last_activity
...
...
Write
Preview
Supports
Markdown
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