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
bf3ba86e
Commit
bf3ba86e
authored
Sep 23, 2020
by
Jose Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gl-button class to the snippets haml views
parent
1d8d4a68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
app/views/shared/snippets/_form.html.haml
app/views/shared/snippets/_form.html.haml
+4
-4
app/views/shared/snippets/_header.html.haml
app/views/shared/snippets/_header.html.haml
+3
-3
No files found.
app/views/shared/snippets/_form.html.haml
View file @
bf3ba86e
...
...
@@ -46,11 +46,11 @@
.form-actions
-
if
@snippet
.
new_record?
=
f
.
submit
'Create snippet'
,
class:
"btn-success btn"
,
data:
{
qa_selector:
'submit_button'
}
=
f
.
submit
'Create snippet'
,
class:
"btn-success btn
gl-button
"
,
data:
{
qa_selector:
'submit_button'
}
-
else
=
f
.
submit
'Save changes'
,
class:
"btn-success btn"
,
data:
{
qa_selector:
'submit_button'
}
=
f
.
submit
'Save changes'
,
class:
"btn-success btn
gl-button
"
,
data:
{
qa_selector:
'submit_button'
}
-
if
@snippet
.
project_id
=
link_to
"Cancel"
,
project_snippets_path
(
@project
),
class:
"btn
btn-cancel
"
=
link_to
"Cancel"
,
project_snippets_path
(
@project
),
class:
"btn
gl-button btn-default
"
-
else
=
link_to
"Cancel"
,
snippets_path
(
@project
),
class:
"btn
btn-cancel
"
=
link_to
"Cancel"
,
snippets_path
(
@project
),
class:
"btn
gl-button btn-default
"
app/views/shared/snippets/_header.html.haml
View file @
bf3ba86e
...
...
@@ -31,15 +31,15 @@
.embed-snippet
.input-group
.input-group-prepend
%button
.btn.btn-svg.embed-toggle.input-group-text
{
'data-toggle'
:
'dropdown'
,
type:
'button'
}
%button
.btn.
gl-button.
btn-svg.embed-toggle.input-group-text
{
'data-toggle'
:
'dropdown'
,
type:
'button'
}
%span
.js-embed-action
=
_
(
"Embed"
)
=
sprite_icon
(
'angle-down'
,
size:
12
,
css_class:
'caret-down'
)
%ul
.dropdown-menu.dropdown-menu-selectable.embed-toggle-list
%li
%button
.js-embed-btn.btn.
btn-transparent
.is-active
{
type:
'button'
}
%button
.js-embed-btn.btn.
gl-button.btn-default-tertiary
.is-active
{
type:
'button'
}
%strong
.embed-toggle-list-item
=
_
(
"Embed"
)
%li
%button
.js-share-btn.btn.
btn-transparent
{
type:
'button'
}
%button
.js-share-btn.btn.
gl-button.btn-default-tertiary
{
type:
'button'
}
%strong
.embed-toggle-list-item
=
_
(
"Share"
)
=
snippet_embed_input
(
@snippet
)
.input-group-append
...
...
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