debian-mirror-gitlab/app/views/projects/wikis/_sidebar.html.haml

22 lines
985 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
%aside.right-sidebar.right-sidebar-expanded.wiki-sidebar.js-wiki-sidebar.js-right-sidebar{ data: { "offset-top" => "50", "spy" => "affix" } }
.sidebar-container
2019-12-04 20:38:33 +05:30
.block.wiki-sidebar-header.append-bottom-default.w-100
2018-11-08 19:23:39 +05:30
%a.gutter-toggle.float-right.d-block.d-sm-block.d-md-none.js-sidebar-wiki-toggle{ href: "#" }
2017-09-10 17:25:29 +05:30
= icon('angle-double-right')
2017-08-17 22:00:37 +05:30
2017-09-10 17:25:29 +05:30
- git_access_url = project_wikis_git_access_path(@project)
= link_to git_access_url, class: active_nav_link?(path: 'wikis#git_access') ? 'active' : '' do
2018-03-17 18:26:18 +05:30
= icon('cloud-download', class: 'append-right-5')
%span= _("Clone repository")
2017-08-17 22:00:37 +05:30
2017-09-10 17:25:29 +05:30
.blocks-container
2019-12-04 20:38:33 +05:30
.block.block-first.w-100
2018-11-18 11:00:15 +05:30
- if @sidebar_page
2019-03-02 22:35:43 +05:30
= render_wiki_content(@sidebar_page)
2018-11-18 11:00:15 +05:30
- else
%ul.wiki-pages
= render @sidebar_wiki_entries, context: 'sidebar'
2019-12-04 20:38:33 +05:30
.block.w-100
2017-09-10 17:25:29 +05:30
= link_to project_wikis_pages_path(@project), class: 'btn btn-block' do
2018-03-17 18:26:18 +05:30
= s_("Wiki|More Pages")