_sidebar.html.haml 1.05 KB
Newer Older
1
%aside.right-sidebar.right-sidebar-expanded.wiki-sidebar.js-wiki-sidebar.js-right-sidebar{ data: { "offset-top" => "50", "spy" => "affix" } }
2
  .sidebar-container
3
    .block.wiki-sidebar-header.append-bottom-default.w-100
4
      %a.gutter-toggle.float-right.d-block.d-sm-block.d-md-none.js-sidebar-wiki-toggle{ href: "#" }
5
        = icon('angle-double-right')
6

7
      - git_access_url = project_wikis_git_access_path(@project)
8
      = link_to git_access_url, class: active_nav_link?(path: 'wikis#git_access') ? 'active' : '', data: { qa_selector: 'clone_repository_link' } do
9 10
        = icon('cloud-download', class: 'append-right-5')
        %span= _("Clone repository")
11

12
    .blocks-container
13
      .block.block-first.w-100
14
        - if @sidebar_page
15
          = render_wiki_content(@sidebar_page)
16 17 18
        - else
          %ul.wiki-pages
            = render @sidebar_wiki_entries, context: 'sidebar'
19
      .block.w-100
20
        - if @sidebar_limited
21 22
          = link_to project_wikis_pages_path(@project), class: 'btn btn-block' do
            = s_("Wiki|View All Pages")