Skip to content

Commit

Permalink
Load guid instead of AbstractNode so digest will work for both a node…
Browse files Browse the repository at this point in the history
… and a preprint.
  • Loading branch information
pattisdr committed Oct 26, 2018
1 parent 7b6b9f2 commit f4ecdb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/templates/emails/digest.html.mako
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<thead class="block-head">
<th colspan="2" style="padding: 0px 15px 0px 15px;">
<h3 style="padding: 0 15px 5px 15px; margin: 30px 0 0 0;border: none;list-style: none;font-weight: 300; border-bottom: 1px solid #eee; text-align: left;">
<% from osf.models import AbstractNode %>
${AbstractNode.load(key).title}
<% from osf.models import Guid %>
${Guid.objects.get(_id=key).referent.title}
%if parent :
<small style="font-size: 14px;color: #999;"> in ${AbstractNode.load(parent).title}</small>
%endif
Expand Down

0 comments on commit f4ecdb8

Please sign in to comment.