2016-09-16 15:15:39 -04:00
|
|
|
- if @wiki_home.present?
|
|
|
|
%div{ class: container_class }
|
2020-06-26 02:09:03 -04:00
|
|
|
.md.gl-mt-3.gl-mb-3
|
2019-03-23 09:09:14 -04:00
|
|
|
= render_wiki_content(@wiki_home)
|
2016-09-16 15:15:39 -04:00
|
|
|
- else
|
|
|
|
- can_create_wiki = can?(current_user, :create_wiki, @project)
|
2018-10-18 08:24:09 -04:00
|
|
|
.landing{ class: [('row-content-block row p-0 align-items-center' if can_create_wiki), ('content-block' unless can_create_wiki)] }
|
|
|
|
.col-12.col-md-3.p-0
|
|
|
|
.svg-content
|
|
|
|
= image_tag 'illustrations/wiki_login_empty.svg'
|
|
|
|
.col-12.col-md-9.text-center.text-md-left.pl-md-0.pl-sm-3.mb-4
|
2016-09-16 15:15:39 -04:00
|
|
|
%h4
|
2018-10-18 08:24:09 -04:00
|
|
|
= _("This project does not have a wiki homepage yet")
|
2016-09-16 15:15:39 -04:00
|
|
|
- if can_create_wiki
|
|
|
|
%p
|
2018-10-18 08:24:09 -04:00
|
|
|
= _("Add a homepage to your wiki that contains information about your project and GitLab will display it here instead of this message.")
|
2020-06-11 11:08:36 -04:00
|
|
|
= link_to _("Create your first page"), wiki_path(@project.wiki) + '?view=create', class: "btn btn-primary"
|