|
|
|
<section id="presentation" class="feature">
|
|
|
|
<div class="asciicast-wrapper">
|
|
|
|
<%= render :partial => 'asciicasts/player', :locals => {
|
|
|
|
:asciicast => @asciicast,
|
|
|
|
:speed => params[:speed],
|
|
|
|
:hud => true
|
|
|
|
} %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="supplimental">
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="main">
|
|
|
|
<h1><%= @asciicast.smart_title %></h1>
|
|
|
|
<div class="description">
|
|
|
|
<% if @asciicast.description.present? -%>
|
|
|
|
<%= @asciicast.formatted_description %>
|
|
|
|
<% else -%>
|
|
|
|
<em>No description.</em>
|
|
|
|
<% end -%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="extras">
|
|
|
|
<div class="author">
|
|
|
|
<%= render :partial => 'author' %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if @asciicast.user == current_user %>
|
|
|
|
<ul class="delimited">
|
|
|
|
<li>
|
|
|
|
<%= link_to 'Edit title & description',
|
|
|
|
edit_asciicast_path(@asciicast) %>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<%= link_to 'Delete', asciicast_path(@asciicast),
|
|
|
|
:method => :delete, :confirm => 'Really delete this asciicast?' %>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<h1>Info</h1>
|
|
|
|
|
|
|
|
<ul class="delimited">
|
|
|
|
<li>
|
|
|
|
Recorded: <%= timeago @asciicast.created_at %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
Viewed: <%= @asciicast.views_count %> times
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
OS: <%= @asciicast.os %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
SHELL: <%= @asciicast.shell_name %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
TERM: <%= @asciicast.terminal_type || '?' %>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<%# <h1>Share</h1> %>
|
|
|
|
|
|
|
|
<%# <ul class="delimited"> %>
|
|
|
|
<%# <li> %>
|
|
|
|
<%# Twitter %>
|
|
|
|
<%# </li> %>
|
|
|
|
<%# </ul> %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|