{% load static %} {% with memberships|dictsortreversed:'date_submitted'|first as ms%} {% if not last_renewal == year %}
You have not submitted a membership renewal for {{year}} yet. {{member.last_renewal}} {% elif ms.state == 'approved'%}
Your membership is valid for {{year}}.
{% elif ms.state == 'rework'%} You have a submitted a membership for {{year}} however an administrator has flagged it as needing further action with the following comments: {% elif ms.state == 'rejected'%} Your membership application has been rejected with the following comments: {% else %}
You have submitted a membership application for {{year}} however it is still pending further actions. Your membership is currently: {% endif %} {% endwith %}