<%= render :partial => 'asciicasts/asciicast', :object => @asciicast %>
<% if current_user && @asciicast.user == current_user %>
<% if @asciicast.description.blank? %>
<%= link_to 'Add a description', edit_asciicast_path(@asciicast, :anchor => 'focus-desc'),
:class => 'edit-description' %>
<% else %>
<%= link_to 'Edit description', edit_asciicast_path(@asciicast, :anchor => 'focus-desc'),
:class => 'edit-description' %>
<% end %>
|
<%= link_to 'Delete this asciicast', asciicast_path(@asciicast),
:method => :delete, :confirm => 'U SHURE?',
:class => 'asciicast-delete-link' %>
<% end %>
Comments