Use project_with_code factory where necessary

This commit is contained in:
Dmitriy Zaporozhets 2013-04-01 18:16:08 +03:00
parent 9a26e9a0d6
commit f5dec306fd
8 changed files with 20 additions and 17 deletions

View file

@ -46,18 +46,21 @@
%span.light ssh:
%strong
= link_to @project.ssh_url_to_repo
%li
%span.light fs:
%strong
= @repository.path_to_repo
- if @project.repository.exists?
%li
%span.light fs:
%strong
= @repository.path_to_repo
%li
%span.light last commit:
%strong
- if @repository
%li
%span.light last commit:
%strong
= last_commit(@project)
- else
never
- else
%li
%span.light repository:
%strong.cred
does not exist
%li
%span.light access: