Commit c5cd3114 authored by haseeb's avatar haseeb

button type and i18n support

parent 768c4c7a
...@@ -33,18 +33,18 @@ ...@@ -33,18 +33,18 @@
.embed-snippet .embed-snippet
.input-group .input-group
.input-group-btn .input-group-btn
%button.btn.embed-toggle{ 'data-toggle': 'dropdown' } %button.btn.embed-toggle{ 'data-toggle': 'dropdown', type: 'button' }
%span#embed-action Embed %span#embed-action= _("Embed")
= sprite_icon('angle-down', size: 12) = sprite_icon('angle-down', size: 12)
%ul.dropdown-menu.dropdown-menu-selectable.embed-toggle-list %ul.dropdown-menu.dropdown-menu-selectable.embed-toggle-list
%li %li
%button#embed-btn.btn.btn-transparent.is-active{ href: "#" } %button#embed-btn.btn.btn-transparent.is-active{ type: 'button' }
%strong.embed-toggle-list-item Embed %strong.embed-toggle-list-item= _("Embed")
%li %li
%button#share-btn.btn.btn-transparent{ href: "#" } %button#share-btn.btn.btn-transparent{ type: 'button' }
%strong.embed-toggle-list-item Share %strong.embed-toggle-list-item= _("Share")
%input#snippet-url-area.snippet-embed-input.form-control{ type: "text", autocomplete: 'off', value: snippet_embed } %input#snippet-url-area.snippet-embed-input.form-control{ type: "text", autocomplete: 'off', value: snippet_embed }
.input-group-btn .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) = sprite_icon('duplicate', size: 16)
.clearfix .clearfix
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment