Commit 7aa76036 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '230780-migrate-haml-nav-to-gltabs' into 'master'

Convert blob editor tabs to Pajamas

See merge request gitlab-org/gitlab!73993
parents 2f155a72 77f6de74
...@@ -16,14 +16,10 @@ ...@@ -16,14 +16,10 @@
%h3.page-title.blob-edit-page-title %h3.page-title.blob-edit-page-title
Edit file Edit file
.file-editor .file-editor
%ul.nav-links.no-bottom.js-edit-mode.nav.nav-tabs = gl_tabs_nav({ class: 'js-edit-mode nav-links gl-border-0'}) do
%li.active = gl_tab_link_to _('Write'), '#editor', { tab_class: 'active' }
= link_to '#editor' do
Write
%li = gl_tab_link_to editing_preview_title(@blob.name), '#preview', { data: { 'preview-url': project_preview_blob_path(@project, @id) } }
= link_to '#preview', 'data-preview-url' => project_preview_blob_path(@project, @id) do
= editing_preview_title(@blob.name)
= form_tag(project_update_blob_path(@project, @id), method: :put, class: 'js-quick-submit js-requires-input js-edit-blob-form', data: blob_editor_paths(@project)) do = form_tag(project_update_blob_path(@project, @id), method: :put, class: 'js-quick-submit js-requires-input js-edit-blob-form', data: blob_editor_paths(@project)) do
= render 'projects/blob/editor', ref: @ref, path: @path, blob_data: @blob.data = render 'projects/blob/editor', ref: @ref, path: @path, blob_data: @blob.data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment