2013-11-06 10:13:21 -05:00
|
|
|
- empty_repo = @project.empty_repo?
|
2016-06-29 08:07:12 -04:00
|
|
|
.project-home-panel.text-center{ class: ("empty-project" if empty_repo) }
|
2016-07-05 04:19:01 -04:00
|
|
|
%div{ class: container_class }
|
2016-07-22 09:47:44 -04:00
|
|
|
= project_icon(@project, alt: @project.name, class: 'project-avatar avatar s70 avatar-tile')
|
2016-06-29 08:07:12 -04:00
|
|
|
%h1.project-title
|
|
|
|
= @project.name
|
|
|
|
%span.visibility-icon.has-tooltip{data: { container: 'body' }, title: visibility_icon_description(@project)}
|
|
|
|
= 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)
|
2015-07-07 09:22:56 -04:00
|
|
|
|
2016-06-29 11:56:27 -04:00
|
|
|
- if forked_from_project = @project.forked_from_project
|
|
|
|
%p
|
|
|
|
Forked from
|
|
|
|
= link_to project_path(forked_from_project) do
|
|
|
|
= forked_from_project.namespace.try(:name)
|
2015-07-07 09:22:56 -04:00
|
|
|
|
2016-06-29 08:07:12 -04:00
|
|
|
.project-repo-buttons.project-action-buttons
|
|
|
|
.count-buttons
|
|
|
|
= render 'projects/buttons/star'
|
|
|
|
= render 'projects/buttons/fork'
|
2015-09-24 12:36:15 -04:00
|
|
|
|
2016-09-16 15:15:39 -04:00
|
|
|
- if @project.feature_available?(:repository, current_user)
|
|
|
|
.project-clone-holder
|
|
|
|
= render "shared/clone_panel"
|