Show project with namespace in feeds
This commit is contained in:
parent
8a08fdcd32
commit
f4d9059b7e
3 changed files with 12 additions and 3 deletions
|
@ -30,6 +30,7 @@
|
||||||
.borders { border: 1px solid #ccc; @include shade; }
|
.borders { border: 1px solid #ccc; @include shade; }
|
||||||
.hint { font-style: italic; color: #999; }
|
.hint { font-style: italic; color: #999; }
|
||||||
.light { color: #888 }
|
.light { color: #888 }
|
||||||
|
.tiny { font-weight: normal }
|
||||||
|
|
||||||
/** PILLS & TABS**/
|
/** PILLS & TABS**/
|
||||||
.nav-pills a:hover { background-color: #888; }
|
.nav-pills a:hover { background-color: #888; }
|
||||||
|
|
|
@ -8,11 +8,19 @@ module ProjectsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def link_to_project project
|
def link_to_project project
|
||||||
link_to project.name, project
|
link_to project do
|
||||||
|
title = content_tag(:strong, project.name)
|
||||||
|
|
||||||
|
if project.namespace
|
||||||
|
namespace = content_tag(:span, "#{project.namespace.human_name} / ", class: 'tiny')
|
||||||
|
title = namespace + title
|
||||||
|
end
|
||||||
|
|
||||||
|
title
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def tm_path team_member
|
def tm_path team_member
|
||||||
project_team_member_path(@project, team_member)
|
project_team_member_path(@project, team_member)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
- groups.each do |group|
|
- groups.each do |group|
|
||||||
%li.wll
|
%li.wll
|
||||||
= link_to group_path(id: group.path), class: dom_class(group) do
|
= link_to group_path(id: group.path), class: dom_class(group) do
|
||||||
%strong.group_name= truncate(group.name, length: 25)
|
%strong.group_name= truncate(group.name, length: 35)
|
||||||
%span.arrow
|
%span.arrow
|
||||||
→
|
→
|
||||||
%span.last_activity
|
%span.last_activity
|
||||||
|
|
Loading…
Reference in a new issue