2018-03-17 18:26:18 +05:30
|
|
|
- add_to_breadcrumbs "Projects", admin_projects_path
|
2018-03-27 19:54:05 +05:30
|
|
|
- breadcrumb_title @project.full_name
|
|
|
|
- page_title @project.full_name, "Projects"
|
2018-12-05 23:21:45 +05:30
|
|
|
- @content_class = "admin-projects"
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
%h3.page-title
|
2018-03-27 19:54:05 +05:30
|
|
|
Project: #{@project.full_name}
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to edit_project_path(@project), class: "btn btn-nr float-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
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header.alert.alert-danger
|
2016-06-02 11:05:42 +05:30
|
|
|
Last repository check
|
2018-10-15 14:42:47 +05:30
|
|
|
= "(#{time_ago_with_tooltip(@project.last_repository_check_at)})"
|
2016-06-02 11:05:42 +05:30
|
|
|
failed. See
|
|
|
|
= link_to 'repocheck.log', admin_logs_path
|
|
|
|
for error messages.
|
2014-09-02 18:07:02 +05:30
|
|
|
.row
|
|
|
|
.col-md-6
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2014-09-02 18:07:02 +05:30
|
|
|
Project info:
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list
|
2014-09-02 18:07:02 +05:30
|
|
|
%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
|
2018-05-09 12:01:36 +05:30
|
|
|
%span.light Gitaly storage name:
|
2014-09-02 18:07:02 +05:30
|
|
|
%strong
|
2018-05-09 12:01:36 +05:30
|
|
|
= @project.repository.storage
|
|
|
|
%li
|
|
|
|
%span.light Gitaly relative path:
|
|
|
|
%strong
|
|
|
|
= @project.repository.relative_path
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
%li
|
2019-07-31 22:56:46 +05:30
|
|
|
%span.light= _('Storage:')
|
2019-09-04 21:01:54 +05:30
|
|
|
%strong= storage_counter(@project.statistics&.storage_size)
|
|
|
|
- if @project.statistics
|
|
|
|
= surround '(', ')' do
|
|
|
|
= storage_counters_details(@project.statistics)
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
%li
|
|
|
|
%span.light last commit:
|
|
|
|
%strong
|
|
|
|
= last_commit(@project)
|
2016-09-29 09:46:39 +05:30
|
|
|
|
|
|
|
%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')
|
2014-09-02 18:07:02 +05:30
|
|
|
- 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:
|
2018-05-09 12:01:36 +05:30
|
|
|
%strong project is read-only
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2019-09-04 21:01:54 +05:30
|
|
|
= render_if_exists "shared_runner_status", project: @project
|
|
|
|
|
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)
|
|
|
|
|
2018-12-05 23:21:45 +05:30
|
|
|
= render_if_exists 'admin/projects/geo_status_widget', locals: { project: @project }
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2014-09-02 18:07:02 +05:30
|
|
|
Transfer project
|
2018-11-08 19:23:39 +05:30
|
|
|
.card-body
|
|
|
|
= form_for @project, url: transfer_admin_project_path(@project), method: :put do |f|
|
|
|
|
.form-group.row
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-3.col-form-label
|
|
|
|
= f.label :new_namespace_id, "Namespace"
|
2018-11-08 19:23:39 +05:30
|
|
|
.col-sm-9
|
2016-08-24 12:49:21 +05:30
|
|
|
.dropdown
|
2018-03-17 18:26:18 +05:30
|
|
|
= dropdown_toggle('Search for Namespace', { toggle: 'dropdown', field_name: 'new_namespace_id' }, { toggle_class: 'js-namespace-select large' })
|
2016-08-24 12:49:21 +05:30
|
|
|
.dropdown-menu.dropdown-select
|
|
|
|
= dropdown_title('Namespaces')
|
|
|
|
= dropdown_filter("Search for Namespace")
|
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
|
|
|
.offset-sm-3.col-sm-9
|
2014-09-02 18:07:02 +05:30
|
|
|
= f.submit 'Transfer', class: 'btn btn-primary'
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.card.repository-check
|
|
|
|
.card-header
|
2016-06-02 11:05:42 +05:30
|
|
|
Repository check
|
2018-11-08 19:23:39 +05:30
|
|
|
.card-body
|
2017-09-10 17:25:29 +05:30
|
|
|
= form_for @project, url: repository_check_admin_project_path(@project), method: :post do |f|
|
2016-06-02 11:05:42 +05:30
|
|
|
.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.
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
= link_to icon('question-circle'), help_page_path('administration/repository_checks')
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
.form-group
|
|
|
|
= f.submit 'Trigger repository check', class: 'btn btn-primary'
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.col-md-6
|
|
|
|
- if @group
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2016-08-24 12:49:21 +05:30
|
|
|
%strong= @group.name
|
|
|
|
group members
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill= @group_members.size
|
|
|
|
.float-right
|
|
|
|
= link_to admin_group_path(@group), class: 'btn btn-sm' do
|
2017-08-17 22:00:37 +05:30
|
|
|
= icon('pencil-square-o', text: 'Manage access')
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list.members-list
|
2016-08-24 12:49:21 +05:30
|
|
|
= render partial: 'shared/members/member', collection: @group_members, as: :member, locals: { show_controls: false }
|
2018-11-08 19:23:39 +05:30
|
|
|
.card-footer
|
2014-09-02 18:07:02 +05:30
|
|
|
= paginate @group_members, param_name: 'group_members_page', theme: 'gitlab'
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
= render 'shared/members/requests', membership_source: @project, requesters: @requesters, force_mobile_view: true
|
2016-08-24 12:49:21 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2016-08-24 12:49:21 +05:30
|
|
|
%strong= @project.name
|
|
|
|
project members
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill= @project.users.size
|
|
|
|
.float-right
|
2018-12-13 13:39:08 +05:30
|
|
|
= link_to icon('pencil-square-o', text: 'Manage access'), project_project_members_path(@project), class: "btn btn-sm"
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list.project_members.members-list
|
2016-08-24 12:49:21 +05:30
|
|
|
= render partial: 'shared/members/member', collection: @project_members, as: :member, locals: { show_controls: false }
|
2018-11-08 19:23:39 +05:30
|
|
|
.card-footer
|
2014-09-02 18:07:02 +05:30
|
|
|
= paginate @project_members, param_name: 'project_members_page', theme: 'gitlab'
|