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

33 lines
1.4 KiB
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2019-02-15 15:39:39 +05:30
- breadcrumb_title @page.human_title
2018-03-17 18:26:18 +05:30
- wiki_breadcrumb_dropdown_links(@page.slug)
2019-02-15 15:39:39 +05:30
- page_title @page.human_title, _("Wiki")
2019-02-02 18:00:53 +05:30
- add_to_breadcrumbs _("Wiki"), project_wiki_path(@project, :home)
2015-09-25 12:07:36 +05:30
2019-12-04 20:38:33 +05:30
.wiki-page-header.top-area.has-sidebar-toggle.flex-column.flex-lg-row
2017-09-10 17:25:29 +05:30
%button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
= icon('angle-double-left')
2017-08-17 22:00:37 +05:30
2019-09-30 21:07:59 +05:30
.nav-text.flex-fill
2019-02-15 15:39:39 +05:30
%h2.wiki-page-title= @page.human_title
2017-09-10 17:25:29 +05:30
%span.wiki-last-edit-by
2018-12-13 13:39:08 +05:30
- if @page.last_version
= (_("Last edited by %{name}") % { name: "<strong>#{@page.last_version.author_name}</strong>" }).html_safe
#{time_ago_with_tooltip(@page.last_version.authored_date)}
2015-09-11 14:41:01 +05:30
2019-12-04 20:38:33 +05:30
.nav-controls.pb-md-3.pb-lg-0
2017-09-10 17:25:29 +05:30
= render 'main_links'
2016-04-02 18:10:28 +05:30
2017-09-10 17:25:29 +05:30
- if @page.historical?
.warning_message
2018-03-17 18:26:18 +05:30
= s_("WikiHistoricalPage|This is an old version of this page.")
- most_recent_link = link_to s_("WikiHistoricalPage|most recent version"), project_wiki_path(@project, @page)
- history_link = link_to s_("WikiHistoricalPage|history"), project_wiki_history_path(@project, @page)
= (s_("WikiHistoricalPage|You can view the %{most_recent_link} or browse the %{history_link}.") % { most_recent_link: most_recent_link, history_link: history_link }).html_safe
2014-09-02 18:07:02 +05:30
2018-11-08 19:23:39 +05:30
.prepend-top-default.append-bottom-default
2020-04-08 14:13:33 +05:30
.md{ data: { qa_selector: 'wiki_page_content' } }
2019-03-02 22:35:43 +05:30
= render_wiki_content(@page)
2017-08-17 22:00:37 +05:30
= render 'sidebar'