Skip to content

Commit

Permalink
Merge pull request #54 from wtg/productionFix
Browse files Browse the repository at this point in the history
Check for missing user
  • Loading branch information
gbprz committed Dec 10, 2015
2 parents 8e93ee5 + 2f245a6 commit 00f3df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/documents/list/_document_list_item.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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.