@ -61,15 +61,7 @@
li
span.glyphicon.glyphicon-link
'
a href="#" id="embed-link" Embed
.container
.row
.col-md-6.col-md-offset-6
.embed-box.text-right
input[type="text" class="embed-script" value=page.embed_script(self) data-behavior="auto-select" readonly]
br
| See the #{link_to 'embedding docs', docs_path(:embedding)} for more options.
a href="#" id="embed-link" data-toggle="modal" data-target="#embed-modal" Embed
- if page.show_description?
section.odd.description
@ -82,3 +74,28 @@
.other-asciicasts
h2 More by #{page.author_link}
= render 'previews', asciicasts: page.other_asciicasts_by_author, per_row: 3
.modal.fade id="embed-modal" tabindex="-1" role="dialog"
.modal-dialog.embed-modal
.modal-content
.modal-header
button type="button" class="close" data-dismiss="modal"
span ×
h4.modal-title id="myModalLabel" Embed this asciicast
.modal-body
h2 Player
p Paste this script tag where you want the player to be displayed on your page:
p
input[type="text" value=page.embed_script(self) data-behavior="auto-select" readonly]
p See the #{link_to 'embedding docs', docs_path(:embedding)} for additional options.
h2 Image link
p Use snippets below to display a screenshot linking to this asciicast. Useful in places where scripts are not allowed (e.g. in a project's README file).
p
span HTML:
br
input[type="text" value=page.embed_html_link(self) data-behavior="auto-select" readonly]
p
span Markdown:
br
input[type="text" value=page.embed_markdown_link(self) data-behavior="auto-select" readonly]