2016-11-03 12:29:30 +05:30
|
|
|
- if @wiki_home.present?
|
|
|
|
%div{ class: container_class }
|
2018-11-08 19:23:39 +05:30
|
|
|
.prepend-top-default.append-bottom-default
|
2016-11-03 12:29:30 +05:30
|
|
|
.wiki
|
2018-11-20 20:47:30 +05:30
|
|
|
= render_wiki_content(@wiki_home, legacy_render_context(params))
|
2016-11-03 12:29:30 +05:30
|
|
|
- else
|
|
|
|
- can_create_wiki = can?(current_user, :create_wiki, @project)
|
2018-12-13 13:39:08 +05:30
|
|
|
.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-11-03 12:29:30 +05:30
|
|
|
%h4
|
2018-12-13 13:39:08 +05:30
|
|
|
= _("This project does not have a wiki homepage yet")
|
2016-11-03 12:29:30 +05:30
|
|
|
- if can_create_wiki
|
|
|
|
%p
|
2018-12-13 13:39:08 +05:30
|
|
|
= _("Add a homepage to your wiki that contains information about your project and GitLab will display it here instead of this message.")
|
|
|
|
= link_to _("Create your first page"), project_wiki_path(@project, :home) + '?view=create', class: "btn btn-primary"
|