|
|
@ -1,8 +1,8 @@
|
|
|
|
<div class="page-header asciicast-heading">
|
|
|
|
<div class="page-header asciicast-heading">
|
|
|
|
<h1>
|
|
|
|
<h1>
|
|
|
|
<%= asciicast_title(@asciicast) %>
|
|
|
|
<span class="title"><%= asciicast_title(@asciicast) %></span>
|
|
|
|
|
|
|
|
|
|
|
|
<% if @asciicast.user == current_user %>
|
|
|
|
<% if current_user && @asciicast.user == current_user %>
|
|
|
|
<% if @asciicast.title.blank? %>
|
|
|
|
<% if @asciicast.title.blank? %>
|
|
|
|
<%= link_to 'Add a title', edit_asciicast_path(@asciicast, :anchor => 'focus-title'),
|
|
|
|
<%= link_to 'Add a title', edit_asciicast_path(@asciicast, :anchor => 'focus-title'),
|
|
|
|
:class => 'edit-title' %>
|
|
|
|
:class => 'edit-title' %>
|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<%= render :partial => 'asciicasts/asciicast', :object => @asciicast %>
|
|
|
|
<%= render :partial => 'asciicasts/asciicast', :object => @asciicast %>
|
|
|
|
|
|
|
|
|
|
|
|
<% if @asciicast.user == current_user %>
|
|
|
|
<% if current_user && @asciicast.user == current_user %>
|
|
|
|
<% if @asciicast.description.blank? %>
|
|
|
|
<% if @asciicast.description.blank? %>
|
|
|
|
<%= link_to 'Add a description', edit_asciicast_path(@asciicast, :anchor => 'focus-desc'),
|
|
|
|
<%= link_to 'Add a description', edit_asciicast_path(@asciicast, :anchor => 'focus-desc'),
|
|
|
|
:class => 'edit-description' %>
|
|
|
|
:class => 'edit-description' %>
|
|
|
@ -67,4 +67,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
new AsciiIo.Views.CommentsIndex({ collection: comments });
|
|
|
|
new AsciiIo.Views.CommentsIndex({ collection: comments });
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
|
|
|
|
$('.asciicast .description, .asciicast-heading .title').linkify();
|
|
|
|
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|