186 lines
6.3 KiB
Text
186 lines
6.3 KiB
Text
- add_to_breadcrumbs "Projects", admin_projects_path
|
|
- breadcrumb_title @project.full_name
|
|
- page_title @project.full_name, "Projects"
|
|
%h3.page-title
|
|
Project: #{@project.full_name}
|
|
= link_to edit_project_path(@project), class: "btn btn-nr float-right" do
|
|
%i.fa.fa-pencil-square-o
|
|
Edit
|
|
%hr
|
|
- if @project.last_repository_check_failed?
|
|
.row
|
|
.col-md-12
|
|
.card
|
|
.card-header.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.
|
|
.row
|
|
.col-md-6
|
|
.card
|
|
.card-header
|
|
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
|
|
= @project.created_at.to_s(:medium)
|
|
|
|
%li
|
|
%span.light http:
|
|
%strong
|
|
= link_to @project.http_url_to_repo, project_path(@project)
|
|
%li
|
|
%span.light ssh:
|
|
%strong
|
|
= link_to @project.ssh_url_to_repo, project_path(@project)
|
|
- if @project.repository.exists?
|
|
%li
|
|
%span.light Gitaly storage name:
|
|
%strong
|
|
= @project.repository.storage
|
|
%li
|
|
%span.light Gitaly relative path:
|
|
%strong
|
|
= @project.repository.relative_path
|
|
|
|
%li
|
|
%span.light Storage used:
|
|
%strong= storage_counter(@project.statistics.storage_size)
|
|
(
|
|
= storage_counter(@project.statistics.repository_size)
|
|
repository,
|
|
= storage_counter(@project.statistics.build_artifacts_size)
|
|
build artifacts,
|
|
= storage_counter(@project.statistics.lfs_objects_size)
|
|
LFS
|
|
)
|
|
|
|
%li
|
|
%span.light last commit:
|
|
%strong
|
|
= last_commit(@project)
|
|
|
|
%li
|
|
%span.light Git LFS status:
|
|
%strong
|
|
= project_lfs_status(@project)
|
|
= link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs')
|
|
- else
|
|
%li
|
|
%span.light repository:
|
|
%strong.cred
|
|
does not exist
|
|
|
|
- if @project.archived?
|
|
%li
|
|
%span.light archived:
|
|
%strong project is read-only
|
|
|
|
%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)
|
|
|
|
.card
|
|
.card-header
|
|
Transfer project
|
|
.card-body
|
|
= form_for @project, url: transfer_admin_project_path(@project), method: :put do |f|
|
|
.form-group.row
|
|
= f.label :new_namespace_id, "Namespace", class: 'col-form-label'
|
|
.col-sm-10
|
|
.dropdown
|
|
= dropdown_toggle('Search for Namespace', { toggle: 'dropdown', field_name: 'new_namespace_id' }, { toggle_class: 'js-namespace-select large' })
|
|
.dropdown-menu.dropdown-select
|
|
= dropdown_title('Namespaces')
|
|
= dropdown_filter("Search for Namespace")
|
|
= dropdown_content
|
|
= dropdown_loading
|
|
|
|
.form-group.row
|
|
.col-sm-offset-2.col-sm-10
|
|
= f.submit 'Transfer', class: 'btn btn-primary'
|
|
|
|
.card.repository-check
|
|
.card-header
|
|
Repository check
|
|
.card-body
|
|
= form_for @project, url: repository_check_admin_project_path(@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'
|
|
|
|
.col-md-6
|
|
- if @group
|
|
.card
|
|
.card-header
|
|
%strong= @group.name
|
|
group members
|
|
%span.badge.badge-pill= @group_members.size
|
|
.float-right
|
|
= link_to admin_group_path(@group), class: 'btn btn-xs' do
|
|
= icon('pencil-square-o', text: 'Manage access')
|
|
%ul.well-list.content-list.members-list
|
|
= render partial: 'shared/members/member', collection: @group_members, as: :member, locals: { show_controls: false }
|
|
.card-footer
|
|
= paginate @group_members, param_name: 'group_members_page', theme: 'gitlab'
|
|
|
|
= render 'shared/members/requests', membership_source: @project, requesters: @requesters, force_mobile_view: true
|
|
|
|
.card
|
|
.card-header
|
|
%strong= @project.name
|
|
project members
|
|
%span.badge.badge-pill= @project.users.size
|
|
.float-right
|
|
= link_to icon('pencil-square-o', text: 'Manage access'), polymorphic_url([@project, :members]), class: "btn btn-xs"
|
|
%ul.well-list.project_members.content-list.members-list
|
|
= render partial: 'shared/members/member', collection: @project_members, as: :member, locals: { show_controls: false }
|
|
.card-footer
|
|
= paginate @project_members, param_name: 'project_members_page', theme: 'gitlab'
|