2013-01-22 18:45:13 +01:00
|
|
|
.ui-box
|
|
|
|
%h5.title Projects
|
|
|
|
%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)
|
2013-01-30 15:40:43 +01:00
|
|
|
%span.pull-right.light
|
2013-02-13 18:14:35 +01:00
|
|
|
- if project.owner == user
|
2013-01-22 18:45:13 +01:00
|
|
|
%i.icon-wrench
|
2013-02-13 18:14:35 +01:00
|
|
|
- tm = project.team.get_tm(user.id)
|
2013-01-22 18:45:13 +01:00
|
|
|
- if tm
|
|
|
|
= tm.project_access_human
|
|
|
|
%p.light
|
|
|
|
%i.icon-wrench
|
|
|
|
– user is a project owner
|