Use project owner if no namespace. Restyled team page

This commit is contained in:
Dmitriy Zaporozhets 2012-11-30 18:26:17 +02:00
parent 8bf340f568
commit eb3e07a509
13 changed files with 96 additions and 79 deletions

View file

@ -24,10 +24,6 @@
= f.label :namespace_id
.input= f.select :namespace_id, namespaces_options(@project.namespace_id), {}, {class: 'chosen'}
.clearfix
= f.label :owner_id
.input= f.select :owner_id, User.all.map { |user| [user.name, user.id] }, {}, {class: 'chosen'}
- if project.repo_exists?
.clearfix
= f.label :default_branch, "Default Branch"

View file

@ -25,6 +25,15 @@
Name:
%td
= @project.name
%tr
%td
%b
Namespace:
%td
- if @project.namespace
= @project.namespace.human_name
- else
Global
%tr
%td
%b
@ -34,7 +43,7 @@
%tr
%td
%b
Owner:
Created by:
%td
= @project.owner_name || '(deleted)'
%tr