{% extends 'sstreasury/base.html' %} {# Society Self-Service Copyright © 2018-2019 Yingtong Li (RunasSudo) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . #} {% block title %}{{ claim.purpose }}{% endblock %} {% block maincontent %}

{{ claim.purpose }}

Status: {{ claim.get_state_display() }} {# TODO #}
ID {{ claim.id }}
Purpose {{ claim.purpose }}
Expenditure date {{ claim.date }}
Claimee
Comments {{ claim.comments }}
Items
{# TODO #}
{% for item in history %} {% if item.__class__.__name__ == 'ClaimComment' %}
{{ item.author.first_name }} {{ item.author.last_name }} commented
{{ localtime(item.time) }}
{{ item.content|markdown }}
{% elif item.__class__.__name__ == 'ClaimHistory' %}
{% if item.action == import('sstreasury.models').ClaimAction.CREATE.value %} {{ item.author.first_name }} {{ item.author.last_name }} created the claim {% elif item.action == import('sstreasury.models').ClaimAction.EDIT.value %} {{ item.author.first_name }} {{ item.author.last_name }} edited the claim {% elif item.action == import('sstreasury.models').ClaimAction.UPDATE_STATE.value %} {{ item.author.first_name }} {{ item.author.last_name }} changed the state to: {{ item.get_state_display() }} {% else %} {{ item.author.first_name }} {{ item.author.last_name }} modified the claim {% endif %}
{{ localtime(item.time) }}
{% endif %} {% endfor %}
{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block script %} {{ super() }} {% endblock %}