2013-11-06 10:13:21 -05:00
|
|
|
- empty_repo = @project.empty_repo?
|
2017-10-03 13:41:37 -04:00
|
|
|
- fork_network = @project.fork_network
|
2016-06-29 08:07:12 -04:00
|
|
|
.project-home-panel.text-center{ class: ("empty-project" if empty_repo) }
|
2017-03-30 14:37:35 -04:00
|
|
|
.limit-container-width{ class: container_class }
|
2016-11-03 10:26:22 -04:00
|
|
|
.avatar-container.s70.project-avatar
|
2016-10-31 15:14:05 -04:00
|
|
|
= project_icon(@project, alt: @project.name, class: 'avatar s70 avatar-tile')
|
2018-01-11 08:27:11 -05:00
|
|
|
%h1.project-title.qa-project-name
|
2016-06-29 08:07:12 -04:00
|
|
|
= @project.name
|
2016-12-26 05:47:16 -05:00
|
|
|
%span.visibility-icon.has-tooltip{ data: { container: 'body' }, title: visibility_icon_description(@project) }
|
2016-06-29 08:07:12 -04:00
|
|
|
= visibility_level_icon(@project.visibility_level, fw: false)
|
2016-02-18 18:08:11 -05:00
|
|
|
|
2016-06-29 11:56:27 -04:00
|
|
|
.project-home-desc
|
|
|
|
- if @project.description.present?
|
2016-10-06 18:01:42 -04:00
|
|
|
= markdown_field(@project, :description)
|
2018-07-18 02:58:21 -04:00
|
|
|
- if can?(current_user, :read_project, @project)
|
|
|
|
.text-secondary.prepend-top-8
|
|
|
|
= s_('ProjectPage|Project ID: %{project_id}') % { project_id: @project.id }
|
2015-07-07 09:22:56 -04:00
|
|
|
|
2017-10-03 13:41:37 -04:00
|
|
|
- if @project.forked?
|
2016-06-29 11:56:27 -04:00
|
|
|
%p
|
2017-11-03 06:08:36 -04:00
|
|
|
- if @project.fork_source
|
2017-10-03 13:41:37 -04:00
|
|
|
#{ s_('ForkedFromProjectPath|Forked from') }
|
2017-11-03 06:08:36 -04:00
|
|
|
= link_to project_path(@project.fork_source) do
|
|
|
|
= fork_source_name(@project)
|
2017-10-03 13:41:37 -04:00
|
|
|
- else
|
|
|
|
- deleted_message = s_('ForkedFromProjectPath|Forked from %{project_name} (deleted)')
|
2017-11-03 06:08:36 -04:00
|
|
|
= deleted_message % { project_name: fork_source_name(@project) }
|
2015-07-07 09:22:56 -04:00
|
|
|
|
2018-04-08 06:20:05 -04:00
|
|
|
.project-badges.prepend-top-default.append-bottom-default
|
2018-03-05 12:51:40 -05:00
|
|
|
- @project.badges.each do |badge|
|
2018-04-08 06:20:05 -04:00
|
|
|
%a.append-right-8{ href: badge.rendered_link_url(@project),
|
|
|
|
target: '_blank',
|
|
|
|
rel: 'noopener noreferrer' }>
|
|
|
|
%img.project-badge{ src: badge.rendered_image_url(@project),
|
|
|
|
'aria-hidden': true,
|
|
|
|
alt: '' }>
|
2018-03-05 12:51:40 -05:00
|
|
|
|
2016-12-16 10:46:24 -05:00
|
|
|
.project-repo-buttons
|
2016-06-29 08:07:12 -04:00
|
|
|
.count-buttons
|
|
|
|
= render 'projects/buttons/star'
|
|
|
|
= render 'projects/buttons/fork'
|
2015-09-24 12:36:15 -04:00
|
|
|
|
2018-04-12 18:48:40 -04:00
|
|
|
%span.d-none.d-sm-inline
|
2017-04-07 18:21:16 -04:00
|
|
|
- if can?(current_user, :download_code, @project)
|
2016-12-16 10:46:24 -05:00
|
|
|
.project-clone-holder
|
|
|
|
= render "shared/clone_panel"
|
2016-12-14 16:51:25 -05:00
|
|
|
|
2018-06-05 06:10:34 -04:00
|
|
|
- if show_xcode_link?(@project)
|
|
|
|
.project-action-button.project-xcode.inline
|
|
|
|
= render "projects/buttons/xcode_link"
|
|
|
|
|
2017-02-13 03:38:26 -05:00
|
|
|
- if current_user
|
2017-02-13 03:45:10 -05:00
|
|
|
- if can?(current_user, :download_code, @project)
|
|
|
|
= render 'projects/buttons/download', project: @project, ref: @ref
|
|
|
|
= render 'projects/buttons/dropdown'
|
|
|
|
= render 'projects/buttons/koding'
|
|
|
|
|
2017-02-13 03:38:26 -05:00
|
|
|
= render 'shared/notifications/button', notification_setting: @notification_setting
|
2016-12-16 10:46:24 -05:00
|
|
|
= render 'shared/members/access_request_buttons', source: @project
|