diff options
author | haseeb <haseebeqx@yahoo.com> | 2018-03-07 00:58:15 +0530 |
---|---|---|
committer | haseeb <haseebeqx@yahoo.com> | 2018-03-07 00:58:15 +0530 |
commit | c5cd31142bd40fe2529d2c5009cbb1ae664d9c1d (patch) | |
tree | c64b6bb2fc3ae7f2fde721102c7223f8cf456db6 /app | |
parent | 768c4c7a6098ef458cade312a720a142277e505b (diff) | |
download | gitlab-ce-c5cd31142bd40fe2529d2c5009cbb1ae664d9c1d.tar.gz |
button type and i18n support
Diffstat (limited to 'app')
-rw-r--r-- | app/views/shared/snippets/_header.html.haml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/shared/snippets/_header.html.haml b/app/views/shared/snippets/_header.html.haml index 6379dbc7b1b..43567bae619 100644 --- a/app/views/shared/snippets/_header.html.haml +++ b/app/views/shared/snippets/_header.html.haml @@ -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 |