Skip to content

Commit

Permalink
add first event description to transfers
Browse files Browse the repository at this point in the history
if no transfer.commitments
  • Loading branch information
bhaugen committed Jul 8, 2017
1 parent c150d63 commit 9c015bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions valuenetwork/templates/valueaccounting/exchange_logging.html
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,13 @@ <h3 id="xfer-label">{% trans "Change Transfer" %}</h3>
{% if xfer.description %}
<div class="notes"> {{ xfer.description|urlize|linebreaks }} </div>
{% endif %}
{% if xfer.events.all %}
{% with xfer.events.all|first as event %}
{% if event.description %}
<div class="notes"> {{ event.description|urlize|linebreaks }} </div>
{% endif %}
{% endwith %}
{% endif %}
{% endif %}
</div>
{% endfor %}
Expand Down

0 comments on commit 9c015bc

Please sign in to comment.