Display universe name on author content

This commit is contained in:
Andrew Brown 2016-09-06 00:31:50 -05:00
parent 96ca2a3304
commit 5333ddc975

View File

@ -10,7 +10,11 @@
<%= content.description %>
</p>
<p class='grey-text'>
<em>last edited <%= content.updated_at.strftime("%m/%d/%Y") %></em>
<% if content.respond_to?(:universe) && content.universe %>
<%= content.universe.name %>
<% else %>
<em>last edited <%= content.updated_at.strftime("%m/%d/%Y") %></em>
<% end %>
</p>
</li>
<% end %>