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

71 lines
2.2 KiB
Plaintext
Raw Normal View History

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
.col-md-8.col-xs-8
2013-11-18 12:01:35 +00:00
span.author-avatar = @asciicast.author_img_link
h2 = @asciicast.title
small by #{@asciicast.author_link} #{time_ago_tag @asciicast.created_at}
2013-11-18 12:01:35 +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
.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}"
.col-md-4.col-xs-4
- 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
= render 'other_by_user'