2013-11-18 17:52:34 +00:00
|
|
|
- content_for(:title, @asciicast.title)
|
|
|
|
|
2013-11-18 12:01:35 +00:00
|
|
|
.asciicast-page
|
|
|
|
section.cinema
|
|
|
|
.container
|
|
|
|
= player @asciicast
|
|
|
|
|
|
|
|
section.odd.info
|
|
|
|
.container
|
|
|
|
.row
|
2013-11-24 09:49:29 +00:00
|
|
|
.col-md-8.col-xs-8
|
2013-11-18 12:01:35 +00:00
|
|
|
span.author-avatar = @asciicast.author_img_link
|
2013-11-23 19:43:17 +00:00
|
|
|
h2 = @asciicast.title
|
|
|
|
small by #{@asciicast.author_link} #{time_ago_tag @asciicast.created_at}
|
2013-11-18 12:01:35 +00:00
|
|
|
|
2013-11-24 09:49:29 +00:00
|
|
|
.col-md-4.col-xs-4.text-right
|
2013-12-03 19:09:18 +00:00
|
|
|
= render 'shared/add_this', title: @asciicast.title, url: asciicast_url(@asciicast)
|
2013-11-18 12:01:35 +00:00
|
|
|
|
|
|
|
section.even.meta
|
|
|
|
.container
|
|
|
|
.row
|
2013-11-23 18:15:15 +00:00
|
|
|
.col-md-8.col-xs-8
|
2013-11-18 12:01:35 +00:00
|
|
|
ul.meta-list
|
|
|
|
li
|
|
|
|
span.glyphicon.glyphicon-info-sign
|
|
|
|
'
|
|
|
|
' #{@asciicast.os} /
|
|
|
|
' #{@asciicast.shell} /
|
|
|
|
' #{@asciicast.terminal_type}
|
|
|
|
li
|
|
|
|
span.glyphicon.glyphicon-eye-open
|
|
|
|
= " #{@asciicast.views_count}"
|
|
|
|
|
2013-11-23 18:15:15 +00:00
|
|
|
.col-md-4.col-xs-4
|
2013-11-22 21:33:14 +00:00
|
|
|
- if @asciicast.managable_by?(current_user)
|
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
|
|
|
|
= link_to edit_asciicast_path(@asciicast) do
|
|
|
|
span.glyphicon.glyphicon-edit
|
|
|
|
' Edit
|
|
|
|
li
|
|
|
|
= link_to(asciicast_path(@asciicast), method: :delete, data: { confirm: 'Really delete this asciicast?' }) do
|
|
|
|
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
|
|
|
|
input[type="text" class="embed-script" value=@asciicast.embed_script data-behavior="auto-select" readonly]
|
|
|
|
br
|
|
|
|
| See the #{link_to 'embedding docs', docs_path(:embedding)} for more options.
|
|
|
|
|
|
|
|
- if @asciicast.description.present?
|
|
|
|
section.even.description
|
|
|
|
.container
|
|
|
|
.content = @asciicast.description
|
|
|
|
|
2013-11-22 21:38:40 +00:00
|
|
|
= render 'other_by_user'
|