asciinema.org/app/views/asciicasts/show.html.slim

73 lines
2.3 KiB
Plaintext
Raw Normal View History

2014-01-18 10:44:13 +00:00
- content_for(:title, page.title)
2013-11-18 17:52:34 +00:00
2013-11-18 12:01:35 +00:00
.asciicast-page
section.cinema
.container
= player page.asciicast, page.playback_options
2013-11-18 12:01:35 +00:00
section.odd.info
.container
.row
.col-md-8.col-xs-8
2014-01-18 10:44:13 +00:00
span.author-avatar = page.author_img_link
h2 = page.asciicast_title
small by #{page.author_link} #{time_ago_tag page.asciicast_created_at}
2013-11-18 12:01:35 +00:00
.col-md-4.col-xs-4.text-right
2014-01-18 10:44:13 +00:00
= render 'shared/add_this', title: page.asciicast_title, url: asciicast_url(page.asciicast)
2013-11-18 12:01:35 +00:00
section.even.meta
.container
.row
.col-md-8.col-xs-8
2013-11-18 12:01:35 +00:00
ul.meta-list
li
span.glyphicon.glyphicon-info-sign
2014-01-18 10:44:13 +00:00
' #{page.asciicast_env_details}
2013-11-18 12:01:35 +00:00
li
span.glyphicon.glyphicon-eye-open
2014-01-18 10:44:13 +00:00
' #{page.views_count}
2013-11-18 12:01:35 +00:00
.col-md-4.col-xs-4
2014-01-18 10:44:13 +00:00
- if page.show_admin_dropdown?
2013-11-18 12:01:35 +00:00
.dropdown.actions-dropdown.pull-right
button.btn.btn-default.dropdown-toggle[type="button" data-toggle="dropdown"]
span.glyphicon.glyphicon-cog
'
span.caret
ul.dropdown-menu
li
2014-01-18 10:44:13 +00:00
= link_to edit_asciicast_path(page.asciicast) do
2013-11-18 12:01:35 +00:00
span.glyphicon.glyphicon-edit
' Edit
li
2014-01-18 10:44:13 +00:00
= link_to(asciicast_path(page.asciicast), method: :delete, data: { confirm: 'Really delete this asciicast?' }) do
2013-11-18 12:01:35 +00:00
span.glyphicon.glyphicon-remove
' Delete
ul.meta-list.actions-list
li
span.glyphicon.glyphicon-link
'
a href="#" id="embed-link" Embed
.container
.row
.col-md-6.col-md-offset-6
.embed-box.text-right
2014-01-18 10:44:13 +00:00
input[type="text" class="embed-script" value=page.embed_script(self) data-behavior="auto-select" readonly]
2013-11-18 12:01:35 +00:00
br
| See the #{link_to 'embedding docs', docs_path(:embedding)} for more options.
2014-01-18 10:44:13 +00:00
- if page.show_description?
2013-11-18 12:01:35 +00:00
section.even.description
.container
2014-01-18 10:44:13 +00:00
.content = page.description
2013-11-18 12:01:35 +00:00
2014-01-18 10:44:13 +00:00
- if page.show_other_asciicasts_by_author?
section.odd
.container
.other-asciicasts
h2 More by #{page.author_link}
= render 'previews', asciicasts: page.other_asciicasts_by_author, per_row: 3