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

24 lines
1 KiB
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
.block.wiki-sidebar-header.append-bottom-default
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
.block.block-first
2018-11-18 11:00:15 +05:30
- if @sidebar_page
2018-11-20 20:47:30 +05:30
= render_wiki_content(@sidebar_page, legacy_render_context(params))
2018-11-18 11:00:15 +05:30
- else
%ul.wiki-pages
= render @sidebar_wiki_entries, context: 'sidebar'
2017-09-10 17:25:29 +05:30
.block
= link_to project_wikis_pages_path(@project), class: 'btn btn-block' do
2018-03-17 18:26:18 +05:30
= s_("Wiki|More Pages")
2017-08-17 22:00:37 +05:30
= render 'projects/wikis/new'