2014-09-02 18:07:02 +05:30
|
|
|
- empty_repo = @project.empty_repo?
|
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')
|
2016-08-24 12:49:21 +05:30
|
|
|
%h1.project-title
|
|
|
|
= @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-06-16 23:09:34 +05:30
|
|
|
|
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)
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
- if forked_from_project = @project.forked_from_project
|
|
|
|
%p
|
2017-09-10 17:25:29 +05:30
|
|
|
#{ s_('ForkedFromProjectPath|Forked from') }
|
2016-08-24 12:49:21 +05:30
|
|
|
= link_to project_path(forked_from_project) do
|
|
|
|
= forked_from_project.namespace.try(:name)
|
2016-06-16 23:09:34 +05:30
|
|
|
|
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'
|
2016-06-16 23:09:34 +05:30
|
|
|
|
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
|