2014-01-18 10:44:13 +00:00
|
|
|
- content_for(:title, page.title)
|
2015-03-29 18:43:32 +00:00
|
|
|
- content_for(:head) do
|
2015-03-30 16:23:58 +00:00
|
|
|
= render 'discovery_tags', page: page
|
2015-09-16 22:01:18 +00:00
|
|
|
= render 'alternate_links', page: page
|
2013-11-18 17:52:34 +00:00
|
|
|
|
2013-11-18 12:01:35 +00:00
|
|
|
.asciicast-page
|
2015-04-22 15:22:20 +00:00
|
|
|
= render 'embed', page: page
|
|
|
|
|
2013-11-18 12:01:35 +00:00
|
|
|
section.cinema
|
|
|
|
.container
|
2014-01-18 13:12:10 +00:00
|
|
|
= player page.asciicast, page.playback_options
|
2013-11-18 12:01:35 +00:00
|
|
|
|
2014-07-02 16:37:40 +00:00
|
|
|
section.even.info
|
2013-11-18 12:01:35 +00:00
|
|
|
.container
|
|
|
|
.row
|
2013-11-24 09:49:29 +00:00
|
|
|
.col-md-8.col-xs-8
|
2014-01-18 10:44:13 +00:00
|
|
|
span.author-avatar = page.author_img_link
|
2015-05-15 17:36:12 +00:00
|
|
|
h2
|
|
|
|
= page.asciicast_title
|
|
|
|
- if page.show_private_label?
|
|
|
|
= render 'private_label'
|
|
|
|
- if page.show_featured_label?
|
|
|
|
= render 'featured_label'
|
2014-01-18 10:44:13 +00:00
|
|
|
small by #{page.author_link} #{time_ago_tag page.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
|
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
|
|
|
|
2014-07-02 16:37:40 +00:00
|
|
|
section.odd.meta
|
2013-11-18 12:01:35 +00:00
|
|
|
.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
|
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
|
|
|
|
2013-11-23 18:15:15 +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
|
2014-07-05 12:59:42 +00:00
|
|
|
- if page.show_edit_link?
|
|
|
|
li
|
|
|
|
= link_to edit_asciicast_path(page.asciicast) do
|
|
|
|
span.glyphicon.glyphicon-edit
|
|
|
|
' Edit
|
|
|
|
- if page.show_set_featured_link?
|
|
|
|
li
|
|
|
|
= link_to(asciicast_path(page.asciicast, 'asciicast[featured]' => 1), method: :put) do
|
|
|
|
span.glyphicon.glyphicon-eye-open
|
|
|
|
' Make featured
|
|
|
|
- if page.show_unset_featured_link?
|
|
|
|
li
|
|
|
|
= link_to(asciicast_path(page.asciicast, 'asciicast[featured]' => 0), method: :put) do
|
|
|
|
span.glyphicon.glyphicon-eye-close
|
|
|
|
' Make not featured
|
2014-11-15 18:30:05 +00:00
|
|
|
- if page.show_make_public_link?
|
|
|
|
li
|
|
|
|
= link_to(asciicast_path(page.asciicast, 'asciicast[private]' => 0), method: :put) do
|
|
|
|
span.glyphicon.glyphicon-eye-open
|
|
|
|
' Make public
|
|
|
|
- if page.show_make_private_link?
|
|
|
|
li
|
|
|
|
= link_to(asciicast_path(page.asciicast, 'asciicast[private]' => 1), method: :put) do
|
|
|
|
span.glyphicon.glyphicon-eye-close
|
|
|
|
' Make private
|
2014-07-05 12:59:42 +00:00
|
|
|
- if page.show_delete_link?
|
|
|
|
li
|
|
|
|
= link_to(asciicast_path(page.asciicast), method: :delete, data: { confirm: 'Really delete this asciicast?' }) do
|
|
|
|
span.glyphicon.glyphicon-remove
|
|
|
|
' Delete
|
2013-11-18 12:01:35 +00:00
|
|
|
|
|
|
|
ul.meta-list.actions-list
|
|
|
|
li
|
|
|
|
span.glyphicon.glyphicon-link
|
|
|
|
'
|
2015-03-27 17:10:03 +00:00
|
|
|
a href="#" id="embed-link" data-toggle="modal" data-target="#embed-modal" Embed
|
2013-11-18 12:01:35 +00:00
|
|
|
|
2014-01-18 10:44:13 +00:00
|
|
|
- if page.show_description?
|
2014-07-02 16:37:40 +00:00
|
|
|
section.odd.description
|
2013-11-18 12:01:35 +00:00
|
|
|
.container
|
2014-01-18 10:44:13 +00:00
|
|
|
.content = page.description
|
2013-11-18 12:01:35 +00:00
|
|
|
|
2015-04-26 13:30:42 +00:00
|
|
|
- unless page.other_asciicasts_by_author.empty?
|
2014-07-02 16:37:40 +00:00
|
|
|
section.even
|
2014-01-18 10:44:13 +00:00
|
|
|
.container
|
|
|
|
.other-asciicasts
|
|
|
|
h2 More by #{page.author_link}
|
|
|
|
= render 'previews', asciicasts: page.other_asciicasts_by_author, per_row: 3
|