2016-09-16 15:15:39 -04:00
|
|
|
- if @wiki_home.present?
|
|
|
|
%div{ class: container_class }
|
2018-04-25 16:30:12 -04:00
|
|
|
.prepend-top-default.append-bottom-default
|
2016-09-16 15:15:39 -04:00
|
|
|
.wiki
|
2018-09-04 09:42:23 -04:00
|
|
|
= render_wiki_content(@wiki_home, legacy_render_context(params))
|
2016-09-16 15:15:39 -04:00
|
|
|
- else
|
|
|
|
- can_create_wiki = can?(current_user, :create_wiki, @project)
|
|
|
|
.project-home-empty{ class: [('row-content-block' if can_create_wiki), ('content-block' unless can_create_wiki)] }
|
2016-12-23 04:37:12 -05:00
|
|
|
.text-center{ class: container_class }
|
2016-09-16 15:15:39 -04:00
|
|
|
%h4
|
|
|
|
This project does not have a wiki homepage yet
|
|
|
|
- if can_create_wiki
|
|
|
|
%p
|
|
|
|
Add a homepage to your wiki that contains information about your project
|
|
|
|
%p
|
|
|
|
We recommend you
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to "add a homepage", project_wiki_path(@project, :home)
|
2016-09-16 15:15:39 -04:00
|
|
|
to your project's wiki and GitLab will show it here instead of this message.
|