hide 'View Live' button if no units have been published

This commit is contained in:
Chris Dodge
2012-10-17 16:08:16 -04:00
parent 6011d6d333
commit a88bb7caf3
2 changed files with 12 additions and 2 deletions

View File

@@ -95,7 +95,9 @@
<div class="row unit-actions">
<a href="#" class="save-button save-subsection" data-id="${subsection.location}">Save</a>
<a href="${preview_link}" target="_blank" class="preview-button">Preview Drafts</a>
%if can_view_live:
<a href="${lms_link}" target="_blank" class="preview-button">View Live</a>
%endif
</div>
</div>
</div>