Project has now correct owner and creator. Increased test coverage

This commit is contained in:
Dmitriy Zaporozhets 2013-01-02 19:00:00 +02:00
parent 91995909d9
commit 00a1f5bc2c
15 changed files with 241 additions and 113 deletions

View file

@ -49,8 +49,8 @@
%b
Owned by:
%td
- if @project.chief
= link_to @project.chief.name, admin_user_path(@project.chief)
- if @project.owner
= link_to @project.owner_name, admin_user_path(@project.owner)
- else
(deleted)
%tr
@ -58,7 +58,7 @@
%b
Created by:
%td
= @project.owner_name || '(deleted)'
= @project.creator.try(:name) || '(deleted)'
%tr
%td
%b

View file

@ -17,4 +17,4 @@
→
%span.last_activity
%strong Projects:
%span= group.projects.authorized_for(current_user).count
%span= current_user.authorized_projects.where(namespace_id: group.id).count