<%= 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

<% if current_user %>

Parsed with GitHub Flavored Markdown

<% else %>
<%= link_to "Login in", login_path %> to comment.
<% end %>