Skip to content

Commit

Permalink
Small bugfix if a user gets destoyed or revision breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bamnet committed Feb 5, 2010
1 parent 40bb84b commit 2d39367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/documents/show.html.erb
Expand Up @@ -47,7 +47,7 @@
<div style="padding-top:14px;float:right;width:75%;">
<div id="dl-link"><div id="dl-link-padding">
<%= link_to "Download File", download_document_revision_path(@document, 'current') unless @document.current_revision.blank? %>
<span class="details">from <%= @document.current_revision.user.full_name %> on <%= @document.current_revision.created_at.strftime('%D') %></span>
<span class="details">from <%= @document.current_revision.user.full_name unless @document.user.blank? %> on <%= @document.current_revision.created_at.strftime('%D') unless @document.current_revision.blank?%></span>
</div></div>
<div id="dl-revs">
<% if @document.revisions.size > 1 %>
Expand Down

0 comments on commit 2d39367

Please sign in to comment.