{% extends 'sstreasury/base.html' %} {# Society Self-Service Copyright © 2018 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 %}{{ revision.name }}{% endblock %} {% block maincontent %}

{{ revision.name }}

{% if is_latest %}
Status: {{ revision.get_state_display() }} Edit
{% else %}

You are viewing an older version of this budget. To make any changes, click here to return to the current version.

{% endif %}
ID {{ revision.budget.id }}
Name {{ revision.name }}
Due date {{ revision.date or '' }}
Contributors
Comments {{ revision.comments }}
Revenue
{% if revision.revenue_comments %}
Revenue comments
{{ revision.revenue_comments }}
{% endif %}
Expenses {% if revision.expense_no_emergency_fund %}

No emergency fund required (please add a comment explaining why)

{% endif %}
{% if revision.expense_comments %}
Expense comments
{{ revision.expense_comments }}
{% endif %}
{% if is_latest %}
{% for item in history %} {% if item.__class__.__name__ == 'BudgetComment' %}
{{ item.author.first_name }} {{ item.author.last_name}} commented
{{ localtime(item.time) }}
{{ item.content }}
{% elif item.__class__.__name__ == 'BudgetRevision' %}
{{ item.author.first_name }} {{ item.author.last_name}} edited the budget (view)
{{ localtime(item.time) }}
{% endif %} {% endfor %}
{% endif %} {% endblock %} {% block head %} {{ super() }} {% endblock %} {% block script %} {{ super() }} {% endblock %}