File: edit.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (23 lines) | stat: -rw-r--r-- 943 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- @content_class = "limit-container-width" unless fluid_layout
- breadcrumb_title(@page.template? ? s_("Wiki|New template") : s_("Wiki|New page")) unless @page.persisted?
- wiki_page_title @page, @page.persisted? ? _('Edit') : _('New')
- add_page_specific_style 'page_bundles/wiki'
- @gfm_form = true
- @noteable_type = 'Wiki'
- templates = @templates.map { |t| wiki_page_basic_info(t) }

= form_errors(@page, truncate: :title)

#js-vue-wiki-edit-app{ data: {
  testid: 'wiki-page-edit-app',
  error: @error,
  page_heading: @page.title,
  page_info: wiki_page_info(@page, uploads_path: wiki_attachment_upload_url).to_json,
  is_page_template: @page.template?.to_s,
  page_persisted: (@page.persisted? && can?(current_user, :create_wiki, @wiki.container)).to_s,
  wiki_url: wiki_page_path(@wiki, @page),
  format_options: wiki_markup_hash_by_name_id.to_json,
  templates: templates.to_json,
} }

= render 'shared/wikis/sidebar', editing: true