Show chapter asset path properly in textbook show view

This commit is contained in:
David Baumgold
2013-06-11 09:24:03 -04:00
parent 7f2b82c49b
commit 22e325af86

View File

@@ -3,7 +3,7 @@
<% if(chapters.length > 1) {%>
<%= chapters.length %> PDF Chapters
<% } else if(chapters.length === 1) { %>
<%= chapters.at(0).asset_path %>
<%= chapters.at(0).get("asset_path") %>
<% } %>
<a href="#" class="view"><%= gettext("view in course") %></a>
<button class="edit"><%= gettext("Edit") %></button>