2017-04-17 16:54:26 -04:00
|
|
|
%aside.right-sidebar.right-sidebar-expanded.wiki-sidebar.js-wiki-sidebar.js-right-sidebar{ data: { "offset-top" => "50", "spy" => "affix" } }
|
2017-08-02 19:13:16 -04:00
|
|
|
.sidebar-container
|
2019-08-23 06:21:05 -04:00
|
|
|
.block.wiki-sidebar-header.append-bottom-default.w-100
|
2018-05-24 16:25:18 -04:00
|
|
|
%a.gutter-toggle.float-right.d-block.d-sm-block.d-md-none.js-sidebar-wiki-toggle{ href: "#" }
|
2017-08-02 19:13:16 -04:00
|
|
|
= icon('angle-double-right')
|
2016-11-14 16:33:21 -05:00
|
|
|
|
2017-08-02 19:13:16 -04:00
|
|
|
- git_access_url = project_wikis_git_access_path(@project)
|
|
|
|
= link_to git_access_url, class: active_nav_link?(path: 'wikis#git_access') ? 'active' : '' do
|
2017-12-04 06:00:52 -05:00
|
|
|
= icon('cloud-download', class: 'append-right-5')
|
|
|
|
%span= _("Clone repository")
|
2016-11-14 16:33:21 -05:00
|
|
|
|
2017-08-02 19:13:16 -04:00
|
|
|
.blocks-container
|
2019-08-23 06:21:05 -04:00
|
|
|
.block.block-first.w-100
|
2018-01-04 17:10:17 -05:00
|
|
|
- if @sidebar_page
|
2019-01-31 03:58:23 -05:00
|
|
|
= render_wiki_content(@sidebar_page)
|
2018-01-04 17:10:17 -05:00
|
|
|
- else
|
|
|
|
%ul.wiki-pages
|
|
|
|
= render @sidebar_wiki_entries, context: 'sidebar'
|
2019-08-23 06:21:05 -04:00
|
|
|
.block.w-100
|
2020-03-23 11:09:36 -04:00
|
|
|
- if @sidebar_wiki_entries&.length.to_i >= 15
|
|
|
|
= link_to project_wikis_pages_path(@project), class: 'btn btn-block' do
|
|
|
|
= s_("Wiki|View All Pages")
|