debian-mirror-gitlab/app/views/projects/_home_panel.html.haml

44 lines
1.8 KiB
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- empty_repo = @project.empty_repo?
2018-03-17 18:26:18 +05:30
- fork_network = @project.fork_network
2016-08-24 12:49:21 +05:30
.project-home-panel.text-center{ class: ("empty-project" if empty_repo) }
2017-08-17 22:00:37 +05:30
.limit-container-width{ class: container_class }
.avatar-container.s70.project-avatar
= project_icon(@project, alt: @project.name, class: 'avatar s70 avatar-tile')
2018-03-17 18:26:18 +05:30
%h1.project-title.qa-project-name
2016-08-24 12:49:21 +05:30
= @project.name
2017-08-17 22:00:37 +05:30
%span.visibility-icon.has-tooltip{ data: { container: 'body' }, title: visibility_icon_description(@project) }
2016-08-24 12:49:21 +05:30
= visibility_level_icon(@project.visibility_level, fw: false)
2016-08-24 12:49:21 +05:30
.project-home-desc
- if @project.description.present?
2016-11-03 12:29:30 +05:30
= markdown_field(@project, :description)
2018-03-17 18:26:18 +05:30
- if @project.forked?
2016-08-24 12:49:21 +05:30
%p
2018-03-17 18:26:18 +05:30
- if @project.fork_source
#{ s_('ForkedFromProjectPath|Forked from') }
= link_to project_path(@project.fork_source) do
= fork_source_name(@project)
- else
- deleted_message = s_('ForkedFromProjectPath|Forked from %{project_name} (deleted)')
= deleted_message % { project_name: fork_source_name(@project) }
2017-08-17 22:00:37 +05:30
.project-repo-buttons
2016-08-24 12:49:21 +05:30
.count-buttons
= render 'projects/buttons/star'
= render 'projects/buttons/fork'
2017-08-17 22:00:37 +05:30
%span.hidden-xs
2017-09-10 17:25:29 +05:30
- if can?(current_user, :download_code, @project)
2017-08-17 22:00:37 +05:30
.project-clone-holder
= render "shared/clone_panel"
- if current_user
- if can?(current_user, :download_code, @project)
= render 'projects/buttons/download', project: @project, ref: @ref
= render 'projects/buttons/dropdown'
= render 'projects/buttons/koding'
= render 'shared/notifications/button', notification_setting: @notification_setting
= render 'shared/members/access_request_buttons', source: @project