Add artist commentary, fixes #2024
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<% else %>
|
||||
<li><%= link_to "Add notes", "#", :id => "translate", :title => "Shortcut is N" %></li>
|
||||
<% end %>
|
||||
<%= link_to "Add artist commentary", "#", :id => "add-commentary" %>
|
||||
<% if CurrentUser.is_builder? && post.has_notes? %>
|
||||
<li><%= link_to "Copy all notes", "#", :id => "copy-notes" %></li>
|
||||
<% end %>
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
<li><%= fast_link_to "Notes", note_versions_path(:search => {:post_id => @post.id}) %></li>
|
||||
<li><%= fast_link_to "Flags", post_flags_path(:search => {:post_id => @post.id}) %></li>
|
||||
<li><%= fast_link_to "Appeals", post_appeals_path(:search => {:post_id => @post.id}) %></li>
|
||||
<li><%= fast_link_to "Commentary", artist_commentary_versions_path(:search => {:post_id => @post.id}) %></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
@@ -46,6 +47,12 @@
|
||||
<%= @post.presenter.image_html(self) %>
|
||||
</section>
|
||||
|
||||
<% if @post.artist_commentary && @post.artist_commentary.any_field_present? %>
|
||||
<div id="artist-commentary">
|
||||
<%= render "artist_commentaries/show", :artist_commentary => @post.artist_commentary %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if @post.presenter.has_nav_links?(self) %>
|
||||
<%= render "posts/partials/show/nav_links", :post => @post, :position => "bottom" %>
|
||||
<% end %>
|
||||
@@ -92,6 +99,10 @@
|
||||
<div id="add-to-pool-dialog" title="Add to pool" style="display: none;">
|
||||
<%= render "pool_elements/new" %>
|
||||
</div>
|
||||
|
||||
<div id="add-commentary-dialog" title="Add artist commentary" style="display: none;">
|
||||
<%= render "artist_commentaries/form", :artist_commentary => @post.artist_commentary %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
|
||||
Reference in New Issue
Block a user