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
Léo-Paul Géneau
gitlab-ce
Commits
bd83991a
Commit
bd83991a
authored
Oct 10, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use link_to_project helper
parent
573c89e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
13 deletions
+4
-13
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+2
-2
app/views/admin/users/show.html.haml
app/views/admin/users/show.html.haml
+1
-5
app/views/users/_projects.html.haml
app/views/users/_projects.html.haml
+1
-6
No files found.
app/helpers/projects_helper.rb
View file @
bd83991a
...
...
@@ -5,10 +5,10 @@ module ProjectsHelper
def
link_to_project
project
link_to
project
do
title
=
content_tag
(
:s
trong
,
project
.
name
)
title
=
content_tag
(
:s
pan
,
project
.
name
,
class:
'projet-name'
)
if
project
.
namespace
namespace
=
content_tag
(
:span
,
"
#{
project
.
namespace
.
human_name
}
/ "
,
class:
'
tiny
'
)
namespace
=
content_tag
(
:span
,
"
#{
project
.
namespace
.
human_name
}
/ "
,
class:
'
namespace-name
'
)
title
=
namespace
+
title
end
...
...
app/views/admin/users/show.html.haml
View file @
bd83991a
...
...
@@ -117,11 +117,7 @@
-
tm
=
project
.
team
.
find_tm
(
@user
.
id
)
%li
.users_project
=
link_to
admin_project_path
(
project
),
class:
dom_class
(
project
)
do
-
if
project
.
namespace
=
project
.
namespace
.
human_name
\/
%strong
.well-title
=
truncate
(
project
.
name
,
length:
45
)
=
project
.
name_with_namespace
-
if
tm
.pull-right
...
...
app/views/users/_projects.html.haml
View file @
bd83991a
...
...
@@ -3,9 +3,4 @@
%ul
.well-list
-
@projects
.
each
do
|
project
|
%li
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
-
if
project
.
namespace
=
project
.
namespace
.
human_name
\/
%strong
.well-title
=
truncate
(
project
.
name
,
length:
45
)
=
link_to_project
project
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