Fix routing. Finalize user show page
This commit is contained in:
parent
70690e1971
commit
96d97c4857
5 changed files with 31 additions and 14 deletions
20
app/views/users/_projects.html.haml
Normal file
20
app/views/users/_projects.html.haml
Normal file
|
@ -0,0 +1,20 @@
|
|||
.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)
|
||||
%span.right.light
|
||||
- if project.owner == @user
|
||||
%i.icon-wrench
|
||||
- tm = project.team.get_tm(@user.id)
|
||||
- if tm
|
||||
= tm.project_access_human
|
||||
%p.light
|
||||
%i.icon-wrench
|
||||
– user is a project owner
|
Loading…
Add table
Add a link
Reference in a new issue