File: _wiki.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (17 lines) | stat: -rw-r--r-- 876 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- if @wiki_home.present?
  %div{ class: container_class }
    .md.gl-mt-3.gl-mb-3
      = render_wiki_content(@wiki_home)
- else
  - can_create_wiki = can?(current_user, :create_wiki, @project)
  .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/empty-state/empty-wiki-md.svg'
    .col-12.col-md-9.text-center.text-md-left.pl-md-0.pl-sm-3.mb-4
      %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 and GitLab will display it here instead of this message.")
        = link_button_to _("Create your first page"), wiki_path(@project.wiki) + '?view=create', variant: :confirm