2012-09-26 15:49:20 +02:00
|
|
|
%h3.page_title
|
2012-11-25 17:52:12 +01:00
|
|
|
Project: #{@project.name_with_namespace}
|
2013-03-25 10:07:11 +01:00
|
|
|
= link_to edit_project_path(@project), class: "btn pull-right" do
|
2012-09-26 15:49:20 +02:00
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
2013-03-25 10:07:11 +01:00
|
|
|
%hr
|
|
|
|
.row
|
|
|
|
.span6
|
|
|
|
.ui-box
|
|
|
|
%h5.title
|
|
|
|
Project info:
|
|
|
|
%ul.well-list
|
|
|
|
%li
|
|
|
|
%span.light Name:
|
|
|
|
%strong= @project.name
|
|
|
|
%li
|
|
|
|
%span.light Namespace:
|
|
|
|
%strong
|
|
|
|
- if @project.namespace
|
|
|
|
= link_to @project.namespace.human_name, [:admin, @project.group || @project.owner]
|
|
|
|
- else
|
|
|
|
Global
|
|
|
|
%li
|
|
|
|
%span.light Owned by:
|
|
|
|
%strong
|
|
|
|
- if @project.owner
|
|
|
|
= link_to @project.owner_name, admin_user_path(@project.owner)
|
|
|
|
- else
|
|
|
|
(deleted)
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2013-03-25 10:07:11 +01:00
|
|
|
%li
|
|
|
|
%span.light Created by:
|
|
|
|
%strong
|
|
|
|
= @project.creator.try(:name) || '(deleted)'
|
2012-10-04 09:51:35 +02:00
|
|
|
|
2013-03-25 10:07:11 +01:00
|
|
|
%li
|
|
|
|
%span.light Created at:
|
|
|
|
%strong
|
|
|
|
= @project.created_at.stamp("March 1, 1999")
|
2012-12-14 06:14:05 +01:00
|
|
|
|
2013-03-25 10:07:11 +01:00
|
|
|
%li
|
|
|
|
%span.light http:
|
|
|
|
%strong
|
|
|
|
= link_to @project.http_url_to_repo
|
|
|
|
%li
|
|
|
|
%span.light ssh:
|
|
|
|
%strong
|
|
|
|
= link_to @project.ssh_url_to_repo
|
|
|
|
%li
|
|
|
|
%span.light fs:
|
|
|
|
%strong
|
|
|
|
= @repository.path_to_repo
|
2012-12-14 06:14:05 +01:00
|
|
|
|
2013-03-25 10:07:11 +01:00
|
|
|
%li
|
|
|
|
%span.light last commit:
|
|
|
|
%strong
|
|
|
|
- if @repository
|
|
|
|
= last_commit(@project)
|
|
|
|
- else
|
|
|
|
never
|
2011-11-18 21:54:56 +01:00
|
|
|
|
2013-03-25 10:07:11 +01:00
|
|
|
%li
|
|
|
|
%span.light access:
|
|
|
|
%strong
|
|
|
|
- if @project.public
|
|
|
|
%span.cblue
|
|
|
|
%i.icon-share
|
|
|
|
Public
|
|
|
|
- else
|
|
|
|
%span.cgreen
|
|
|
|
%i.icon-lock
|
|
|
|
Private
|
|
|
|
.span6
|
|
|
|
.ui-box
|
|
|
|
%h5.title
|
|
|
|
Team
|
|
|
|
%small
|
|
|
|
(#{@project.users.count})
|
|
|
|
= link_to project_team_index_path(@project), class: "btn btn-tiny" do
|
|
|
|
%i.icon-edit
|
|
|
|
Edit Team
|
|
|
|
%ul.well-list
|
|
|
|
- @project.users.each do |tm|
|
|
|
|
%li
|
|
|
|
%strong
|
|
|
|
= link_to tm.name, admin_user_path(tm)
|
|
|
|
%span.pull-right.light= @project.project_access_human(tm)
|