%div
- if Gitlab::CurrentSettings.help_page_text.present?
  .gl-mt-3.md
    = markdown_field(Gitlab::CurrentSettings.current_application_settings, :help_page_text)
  %hr

%h1
  = default_brand_title
  - if user_signed_in?
    %span= Gitlab::HEPTAPOD_VERSION
    - unless Gitlab.heptapod_tag_version?
      %small= Gitlab.revision
    %small= "(GitLab CE #{Gitlab::VERSION})"
    = version_status_badge

- if user_signed_in?
  - py_versions = Gitlab.python_versions
  %p
    = "Mercurial #{py_versions['mercurial']} / Python #{py_versions['python']} / hg-evolve #{py_versions['evolve']}"

%hr

- unless Gitlab::CurrentSettings.help_page_hide_commercial_content?
  %p.slead
    Heptapod brings Mercurial support to GitLab™ Community Edition, an
    open source software to collaborate on code.
    %br
    What follows is the upstream GitLab presentation.

  %p.slead
    = _('GitLab is open source software to collaborate on code.')
    %br
    = _('Manage git repositories with fine-grained access controls that keep your code secure.')
    %br
    = _('Perform code reviews and enhance collaboration with merge requests.')
    %br
    = _('Each project can also have an issue tracker and a wiki.')
    %br
    = _('Used by more than 100,000 organizations, GitLab is the most popular solution to manage git repositories on-premises.')
    %br
    - link_to_heptapod = link_to('heptapod.net',
    'https://heptapod.net', target: '_blank',
    rel: 'noopener noreferrer')
    - link_to_promo = link_to(promo_host, promo_url, target: '_blank',
    rel: 'noopener noreferrer')
    = _("Read more about Heptapod at %{link_to_heptapod}.").html_safe % {link_to_heptapod: link_to_heptapod}
    = _("Read more about GitLab at %{link_to_promo}.").html_safe % { link_to_promo: link_to_promo }

%p= link_to _('Check the current instance configuration '), help_instance_configuration_url
%hr

.row.gl-mt-3
  .col-md-8
    .documentation-index.md
      = markdown(@help_index)
  .col-md-4
    .card.links-card
      .card-header
        = _('Quick help')
      %ul.content-list
        %li= link_to _('See our website for getting help'), support_url
        %li
          %button.btn-blank.btn-link.js-trigger-search-bar{ type: 'button' }
            = _('Use the search bar on the top of this page')
        %li
          %button.btn-blank.btn-link.js-trigger-shortcut{ type: 'button' }
            = _('Use shortcuts')
        - unless Gitlab::CurrentSettings.help_page_hide_commercial_content?
          %li= link_to _('Get a support subscription'), 'https://about.gitlab.com/pricing/'
          %li= link_to _('Compare GitLab editions'), 'https://about.gitlab.com/features/#compare'
