Skip to content

Commit

Permalink
fix empty preview email display
Browse files Browse the repository at this point in the history
  • Loading branch information
alee committed Aug 21, 2019
1 parent 3b031e4 commit 98ba77b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions catalog/core/templates/publication/contact-authors.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ <h3>Other authors to be contacted</h3>
</ul>
{% endif %}
</div>
{% else %}
<div class='alert alert-primary' role='alert'>
No matching publications
</div>
{% endif %}


Expand Down
2 changes: 1 addition & 1 deletion catalog/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def form_valid(self, form):
return self.render_to_response(
self.get_context_data(
form=form,
preview_email='No matching publications')
preview_email='')
)

if ready_to_send:
Expand Down

0 comments on commit 98ba77b

Please sign in to comment.