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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
1b2d9c0e
Commit
1b2d9c0e
authored
Mar 03, 2018
by
haseeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
anchor changed to button
parent
9bac5c4a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
app/assets/javascripts/snippet/snippet_embed.js
app/assets/javascripts/snippet/snippet_embed.js
+0
-2
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+1
-1
app/assets/stylesheets/framework/snippets.scss
app/assets/stylesheets/framework/snippets.scss
+1
-1
app/views/shared/snippets/_header.html.haml
app/views/shared/snippets/_header.html.haml
+2
-2
No files found.
app/assets/javascripts/snippet/snippet_embed.js
View file @
1b2d9c0e
...
...
@@ -6,7 +6,6 @@ export default () => {
const
embedAction
=
document
.
querySelector
(
'
#embed-action
'
);
shareBtn
.
addEventListener
(
'
click
'
,
(
event
)
=>
{
event
.
preventDefault
();
shareBtn
.
classList
.
add
(
'
is-active
'
);
embedBtn
.
classList
.
remove
(
'
is-active
'
);
snippetUrlArea
.
value
=
`
${
protocol
}
//
${
host
+
pathname
}
`
;
...
...
@@ -14,7 +13,6 @@ export default () => {
});
embedBtn
.
addEventListener
(
'
click
'
,
(
event
)
=>
{
event
.
preventDefault
();
embedBtn
.
classList
.
add
(
'
is-active
'
);
shareBtn
.
classList
.
remove
(
'
is-active
'
);
const
scriptTag
=
`<script src="
${
protocol
}
//
${
host
+
pathname
}
.js"></script>`
;
...
...
app/assets/stylesheets/framework/dropdowns.scss
View file @
1b2d9c0e
...
...
@@ -481,7 +481,7 @@
.dropdown-menu-selectable
{
li
{
a
{
a
,
button
{
padding
:
8px
40px
;
position
:
relative
;
...
...
app/assets/stylesheets/framework/snippets.scss
View file @
1b2d9c0e
...
...
@@ -63,7 +63,7 @@
margin-left
:
-1px
;
}
.embed-toggle-list
li
a
{
.embed-toggle-list
li
button
{
padding
:
8px
40px
;
}
...
...
app/views/shared/snippets/_header.html.haml
View file @
1b2d9c0e
...
...
@@ -38,10 +38,10 @@
=
sprite_icon
(
'angle-down'
,
size:
12
)
%ul
.dropdown-menu.dropdown-menu-selectable.embed-toggle-list
%li
%
a
#embed-btn
.btn.btn-transparent.is-active
{
href:
"#"
}
%
button
#embed-btn
.btn.btn-transparent.is-active
{
href:
"#"
}
%strong
.embed-toggle-list-item
Embed
%li
%
a
#share-btn
.btn.btn-transparent
{
href:
"#"
}
%
button
#share-btn
.btn.btn-transparent
{
href:
"#"
}
%strong
.embed-toggle-list-item
Share
%input
#snippet-url-area
.snippet-embed-input.form-control
{
type:
"text"
,
autocomplete:
'off'
,
value:
snippet_embed
}
.input-group-btn
...
...
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