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
Boxiang Sun
gitlab-ce
Commits
c5cd3114
Commit
c5cd3114
authored
Mar 07, 2018
by
haseeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
button type and i18n support
parent
768c4c7a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
app/views/shared/snippets/_header.html.haml
app/views/shared/snippets/_header.html.haml
+7
-7
No files found.
app/views/shared/snippets/_header.html.haml
View file @
c5cd3114
...
...
@@ -33,18 +33,18 @@
.embed-snippet
.input-group
.input-group-btn
%button
.btn.embed-toggle
{
'data-toggle'
:
'dropdown'
}
%span
#embed-action
Embed
%button
.btn.embed-toggle
{
'data-toggle'
:
'dropdown'
,
type:
'button'
}
%span
#embed-action
=
_
(
"Embed"
)
=
sprite_icon
(
'angle-down'
,
size:
12
)
%ul
.dropdown-menu.dropdown-menu-selectable.embed-toggle-list
%li
%button
#embed-btn
.btn.btn-transparent.is-active
{
href:
"#"
}
%strong
.embed-toggle-list-item
Embed
%button
#embed-btn
.btn.btn-transparent.is-active
{
type:
'button'
}
%strong
.embed-toggle-list-item
=
_
(
"Embed"
)
%li
%button
#share-btn
.btn.btn-transparent
{
href:
"#"
}
%strong
.embed-toggle-list-item
Share
%button
#share-btn
.btn.btn-transparent
{
type:
'button'
}
%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
%button
#clipboard-btn
.btn.btn-default
{
title:
"Copy to clipboard"
,
data:
{
toggle:
"tooltip"
,
placement:
"bottom"
,
title:
"Copy source to clipboard"
,
container:
"body"
,
clipboard_target:
'#snippet-url-area'
}
}
%button
#clipboard-btn
.btn.btn-default
{
title:
"Copy to clipboard"
,
type:
"button"
,
data:
{
toggle:
"tooltip"
,
placement:
"bottom"
,
title:
"Copy source to clipboard"
,
container:
"body"
,
clipboard_target:
'#snippet-url-area'
}
}
=
sprite_icon
(
'duplicate'
,
size:
16
)
.clearfix
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