Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
77f6de74
Commit
77f6de74
authored
Nov 08, 2021
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert blob editor tabs to pajamas
Changelog: other
parent
c138caca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
app/views/projects/blob/edit.html.haml
app/views/projects/blob/edit.html.haml
+3
-7
No files found.
app/views/projects/blob/edit.html.haml
View file @
77f6de74
...
...
@@ -16,14 +16,10 @@
%h3
.page-title.blob-edit-page-title
Edit file
.file-editor
%ul
.nav-links.no-bottom.js-edit-mode.nav.nav-tabs
%li
.active
=
link_to
'#editor'
do
Write
=
gl_tabs_nav
({
class:
'js-edit-mode nav-links gl-border-0'
})
do
=
gl_tab_link_to
_
(
'Write'
),
'#editor'
,
{
tab_class:
'active'
}
%li
=
link_to
'#preview'
,
'data-preview-url'
=>
project_preview_blob_path
(
@project
,
@id
)
do
=
editing_preview_title
(
@blob
.
name
)
=
gl_tab_link_to
editing_preview_title
(
@blob
.
name
),
'#preview'
,
{
data:
{
'preview-url'
:
project_preview_blob_path
(
@project
,
@id
)
}
}
=
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment