Commit bd83991a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Use link_to_project helper

parent 573c89e6
...@@ -5,10 +5,10 @@ module ProjectsHelper ...@@ -5,10 +5,10 @@ module ProjectsHelper
def link_to_project project def link_to_project project
link_to project do link_to project do
title = content_tag(:strong, project.name) title = content_tag(:span, project.name, class: 'projet-name')
if project.namespace 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 title = namespace + title
end end
......
...@@ -117,11 +117,7 @@ ...@@ -117,11 +117,7 @@
- tm = project.team.find_tm(@user.id) - tm = project.team.find_tm(@user.id)
%li.users_project %li.users_project
= link_to admin_project_path(project), class: dom_class(project) do = link_to admin_project_path(project), class: dom_class(project) do
- if project.namespace = project.name_with_namespace
= project.namespace.human_name
\/
%strong.well-title
= truncate(project.name, length: 45)
- if tm - if tm
.pull-right .pull-right
......
...@@ -3,9 +3,4 @@ ...@@ -3,9 +3,4 @@
%ul.well-list %ul.well-list
- @projects.each do |project| - @projects.each do |project|
%li %li
= link_to project_path(project), class: dom_class(project) do = link_to_project project
- if project.namespace
= project.namespace.human_name
\/
%strong.well-title
= truncate(project.name, length: 45)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment