Permalink
Browse files

Merge pull request #54 from wtg/productionFix

Check for missing user
  • Loading branch information...
gbprz committed Dec 10, 2015
2 parents 8e93ee5 + 2f245a6 commit 00f3df0fc3d83e161b8c2068e9e9c526537ef3c0
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/documents/list/_document_list_item.html.erb
@@ -5,10 +5,10 @@
<div> <%= image_tag "icons/#{small_document_icon(doc.current_revision.extension_type)}" %> </div>
<div class="document-title"> <%= doc.title %> </div>
<div class="upload-details"> <%= "Uploaded on #{doc.current_revision.updated_at.to_date}" %> <br />
- <% if !doc.user.name.nil? %>
+ <% if !doc.user.nil? and !doc.user.name.nil? %>
<%= "by #{doc.user.name}" %>
<% end %> </div>
</div>
</a>
<% end %>
-<% end %>
+<% end %>

0 comments on commit 00f3df0

Please sign in to comment.