2015-09-11 14:41:01 +05:30
|
|
|
- page_title @project.name_with_namespace, "Projects"
|
2014-09-02 18:07:02 +05:30
|
|
|
%h3.page-title
|
|
|
|
Project: #{@project.name_with_namespace}
|
2016-01-14 18:37:52 +05:30
|
|
|
= link_to edit_project_path(@project), class: "btn btn-nr pull-right" do
|
2015-04-26 12:48:37 +05:30
|
|
|
%i.fa.fa-pencil-square-o
|
2014-09-02 18:07:02 +05:30
|
|
|
Edit
|
|
|
|
%hr
|
2016-06-02 11:05:42 +05:30
|
|
|
- if @project.last_repository_check_failed?
|
|
|
|
.row
|
|
|
|
.col-md-12
|
|
|
|
.panel
|
|
|
|
.panel-heading.alert.alert-danger
|
|
|
|
Last repository check
|
|
|
|
= "(#{time_ago_in_words(@project.last_repository_check_at)} ago)"
|
|
|
|
failed. See
|
|
|
|
= link_to 'repocheck.log', admin_logs_path
|
|
|
|
for error messages.
|
2014-09-02 18:07:02 +05:30
|
|
|
.row
|
|
|
|
.col-md-6
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Project info:
|
|
|
|
%ul.well-list
|
|
|
|
%li
|
|
|
|
%span.light Name:
|
|
|
|
%strong
|
|
|
|
= link_to @project.name, project_path(@project)
|
|
|
|
%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, @project.owner]
|
|
|
|
- else
|
|
|
|
(deleted)
|
|
|
|
|
|
|
|
%li
|
|
|
|
%span.light Created by:
|
|
|
|
%strong
|
|
|
|
= @project.creator.try(:name) || '(deleted)'
|
|
|
|
|
|
|
|
%li
|
|
|
|
%span.light Created on:
|
|
|
|
%strong
|
2016-01-14 18:37:52 +05:30
|
|
|
= @project.created_at.to_s(:medium)
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
%li
|
|
|
|
%span.light http:
|
|
|
|
%strong
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to @project.http_url_to_repo, project_path(@project)
|
2014-09-02 18:07:02 +05:30
|
|
|
%li
|
|
|
|
%span.light ssh:
|
|
|
|
%strong
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to @project.ssh_url_to_repo, project_path(@project)
|
2014-09-02 18:07:02 +05:30
|
|
|
- if @project.repository.exists?
|
|
|
|
%li
|
|
|
|
%span.light fs:
|
|
|
|
%strong
|
2016-06-02 11:05:42 +05:30
|
|
|
= @project.repository.path_to_repo
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
%li
|
|
|
|
%span.light Size
|
|
|
|
%strong
|
|
|
|
= repository_size(@project)
|
|
|
|
|
|
|
|
%li
|
|
|
|
%span.light last commit:
|
|
|
|
%strong
|
|
|
|
= last_commit(@project)
|
|
|
|
- else
|
|
|
|
%li
|
|
|
|
%span.light repository:
|
|
|
|
%strong.cred
|
|
|
|
does not exist
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
- if @project.archived?
|
|
|
|
%li
|
|
|
|
%span.light archived:
|
|
|
|
%strong repository is read-only
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
%li
|
|
|
|
%span.light access:
|
|
|
|
%strong
|
|
|
|
%span{ class: visibility_level_color(@project.visibility_level) }
|
|
|
|
= visibility_level_icon(@project.visibility_level)
|
|
|
|
= visibility_level_label(@project.visibility_level)
|
|
|
|
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Transfer project
|
|
|
|
.panel-body
|
2015-04-26 12:48:37 +05:30
|
|
|
= form_for @project, url: transfer_admin_namespace_project_path(@project.namespace, @project), method: :put, html: { class: 'form-horizontal' } do |f|
|
2014-09-02 18:07:02 +05:30
|
|
|
.form-group
|
2015-04-26 12:48:37 +05:30
|
|
|
= f.label :new_namespace_id, "Namespace", class: 'control-label'
|
2014-09-02 18:07:02 +05:30
|
|
|
.col-sm-10
|
2015-04-26 12:48:37 +05:30
|
|
|
= namespace_select_tag :new_namespace_id, selected: params[:namespace_id], class: 'input-large'
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.form-group
|
2015-09-11 14:41:01 +05:30
|
|
|
.col-sm-offset-2.col-sm-10
|
2014-09-02 18:07:02 +05:30
|
|
|
= f.submit 'Transfer', class: 'btn btn-primary'
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.panel.panel-default.repository-check
|
|
|
|
.panel-heading
|
|
|
|
Repository check
|
|
|
|
.panel-body
|
|
|
|
= form_for @project, url: repository_check_admin_namespace_project_path(@project.namespace, @project), method: :post do |f|
|
|
|
|
.form-group
|
|
|
|
- if @project.last_repository_check_at.nil?
|
|
|
|
This repository has never been checked.
|
|
|
|
- else
|
|
|
|
This repository was last checked
|
|
|
|
= @project.last_repository_check_at.to_s(:medium) + '.'
|
|
|
|
The check
|
|
|
|
- if @project.last_repository_check_failed?
|
|
|
|
= succeed '.' do
|
|
|
|
%strong.cred failed
|
|
|
|
See
|
|
|
|
= link_to 'repocheck.log', admin_logs_path
|
|
|
|
for error messages.
|
|
|
|
- else
|
|
|
|
passed.
|
|
|
|
|
|
|
|
= link_to icon('question-circle'), help_page_path('administration', 'repository_checks')
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
= f.submit 'Trigger repository check', class: 'btn btn-primary'
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.col-md-6
|
|
|
|
- if @group
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
%strong #{@group.name}
|
2015-04-26 12:48:37 +05:30
|
|
|
group members (#{@group.group_members.count})
|
2014-09-02 18:07:02 +05:30
|
|
|
.pull-right
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to admin_group_path(@group), class: 'btn btn-xs' do
|
|
|
|
%i.fa.fa-pencil-square-o
|
2014-09-02 18:07:02 +05:30
|
|
|
%ul.well-list
|
|
|
|
- @group_members.each do |member|
|
2015-04-26 12:48:37 +05:30
|
|
|
= render 'groups/group_members/group_member', member: member, show_controls: false
|
2014-09-02 18:07:02 +05:30
|
|
|
.panel-footer
|
|
|
|
= paginate @group_members, param_name: 'group_members_page', theme: 'gitlab'
|
|
|
|
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Project members
|
|
|
|
%small
|
|
|
|
(#{@project.users.count})
|
|
|
|
.pull-right
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to namespace_project_project_members_path(@project.namespace, @project), class: "btn btn-xs" do
|
|
|
|
%i.fa.fa-pencil-square-o
|
2014-09-02 18:07:02 +05:30
|
|
|
Manage Access
|
2015-04-26 12:48:37 +05:30
|
|
|
%ul.well-list.project_members
|
|
|
|
- @project_members.each do |project_member|
|
|
|
|
- user = project_member.user
|
|
|
|
%li.project_member
|
2014-09-02 18:07:02 +05:30
|
|
|
.list-item-name
|
2015-04-26 12:48:37 +05:30
|
|
|
- if user
|
|
|
|
%strong
|
|
|
|
= link_to user.name, admin_user_path(user)
|
|
|
|
- else
|
|
|
|
%strong
|
|
|
|
= project_member.invite_email
|
|
|
|
(invited)
|
2014-09-02 18:07:02 +05:30
|
|
|
.pull-right
|
2015-04-26 12:48:37 +05:30
|
|
|
- if project_member.owner?
|
2014-09-02 18:07:02 +05:30
|
|
|
%span.light Owner
|
|
|
|
- else
|
2015-04-26 12:48:37 +05:30
|
|
|
%span.light= project_member.human_access
|
|
|
|
= link_to namespace_project_project_member_path(@project.namespace, @project, project_member), data: { confirm: remove_from_project_team_message(@project, project_member)}, method: :delete, remote: true, class: "btn btn-sm btn-remove" do
|
|
|
|
%i.fa.fa-times
|
2014-09-02 18:07:02 +05:30
|
|
|
.panel-footer
|
|
|
|
= paginate @project_members, param_name: 'project_members_page', theme: 'gitlab'
|