debian-mirror-gitlab/app/views/projects/_wiki.html.haml

19 lines
775 B
Text
Raw Normal View History

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
2017-08-17 22:00:37 +05:30
= render_wiki_content(@wiki_home)
2016-11-03 12:29:30 +05:30
- 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)] }
2017-08-17 22:00:37 +05:30
.text-center{ class: container_class }
2016-11-03 12:29:30 +05:30
%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-09-10 17:25:29 +05:30
= link_to "add a homepage", project_wiki_path(@project, :home)
2016-11-03 12:29:30 +05:30
to your project's wiki and GitLab will show it here instead of this message.