diff --git a/nummi/main/templates/main/base.html b/nummi/main/templates/main/base.html
index 4672d76..ff91452 100644
--- a/nummi/main/templates/main/base.html
+++ b/nummi/main/templates/main/base.html
@@ -2,58 +2,66 @@
{% load i18n %}
-
-
-
-
- {% block title %}Nummi{% endblock %}
-
- {% block link %}
-
-
-
-
- {% endblock %}
-
-
- {% block nav %}
- {% spaceless %}
-
- {% endspaceless %}
- {% endblock %}
- {% block body %}
- {% endblock %}
-
+
+
+
+
+ {% block title %}Nummi{% endblock %}
+
+ {% block link %}
+
+
+
+
+ {% endblock %}
+
+
+ {% block nav %}
+ {% spaceless %}
+
+ {% endspaceless %}
+ {% endblock %}
+ {% block body %}{% endblock %}
+
diff --git a/nummi/main/templates/main/category.html b/nummi/main/templates/main/category.html
index 5ec8ab8..17c71fd 100644
--- a/nummi/main/templates/main/category.html
+++ b/nummi/main/templates/main/category.html
@@ -2,26 +2,28 @@
{% load static %}
{% load main_extras %}
{% load i18n %}
-
{% block link %}
-{{ block.super }}
-
-
+ {{ block.super }}
+
+
{% endblock %}
-
{% block body %}
- {{ category }}
-
-
-
-{% if transactions %}
-
-
-{% translate "Transactions" %}
-{% transaction_table transactions %}
-{% endif %}
-{% endblock %}
+
+ {{ category }}
+
+
+ {% if transactions %}
+
+ {% translate "Transactions" %}
+ {% transaction_table transactions %}
+ {% endif %}
+ {% endblock %}
diff --git a/nummi/main/templates/main/form.html b/nummi/main/templates/main/form.html
index e69f304..692f781 100644
--- a/nummi/main/templates/main/form.html
+++ b/nummi/main/templates/main/form.html
@@ -1,12 +1,10 @@
{% if form.non_field_errors %}
-
- {% for error in form.non_field_errors %}
- - {{ error }}
- {% endfor %}
-
+
+ {% for error in form.non_field_errors %}- {{ error }}
{% endfor %}
+
{% endif %}
{% for field in form %}
-{{ field.errors }}
-
-{{ field }}
+ {{ field.errors }}
+
+ {{ field }}
{% endfor %}
diff --git a/nummi/main/templates/main/index.html b/nummi/main/templates/main/index.html
index 3c68739..6dd6534 100644
--- a/nummi/main/templates/main/index.html
+++ b/nummi/main/templates/main/index.html
@@ -2,72 +2,69 @@
{% load static %}
{% load main_extras %}
{% load i18n %}
-
{% block link %}
-{{ block.super }}
-
-
+ {{ block.super }}
+
+
{% endblock %}
-
{% block body %}
-{% if transactions %}
-{% translate "Transactions" %}
-{% transaction_table transactions %}
-{% endif %}
-
-{% if categories %}
- {% translate "Categories" %}
-
- {% for cat in categories %}
-
{{ cat }}
- {% endfor %}
-
-{% endif %}
-
-{% if snapshots %}
- {% translate "Snapshots" %}
-
-
- {% for snap in snapshots %}
-
-
- {% if snap.file %}
-
-
-
- {% endif %}
-
-
- {{ snap.date|date:"Y-m-d" }}
-
-
{{ snap.value|value }}
-
- {{ snap.diff|pmvalue }}
-
- {% with sum=snap.sum %}
-
- {{ sum|pmvalue }}
-
-
- {% if snap.previous is not None %}
- {% if sum == snap.diff %}
-
- {% else %}
-
- {% endif %}
- {% endif %}
-
- {% endwith %}
-
- {% endfor %}
-
-{% endif %}
-
+ {% if transactions %}
+
+ {% translate "Transactions" %}
+
+ {% transaction_table transactions %}
+ {% endif %}
+ {% if categories %}
+ {% translate "Categories" %}
+
+ {% for cat in categories %}
+
{{ cat }}
+ {% endfor %}
+
+ {% endif %}
+ {% if snapshots %}
+ {% translate "Snapshots" %}
+
+
+ {% for snap in snapshots %}
+
+
+ {% if snap.file %}
+
+
+
+ {% endif %}
+
+
+ {{ snap.date|date:"Y-m-d" }}
+
+
{{ snap.value|value }}
+
{{ snap.diff|pmvalue }}
+ {% with sum=snap.sum %}
+
{{ sum|pmvalue }}
+
+ {% if snap.previous is not None %}
+ {% if sum == snap.diff %}
+
+ {% else %}
+
+ {% endif %}
+ {% endif %}
+
+ {% endwith %}
+
+ {% endfor %}
+
+ {% endif %}
{% endblock %}
diff --git a/nummi/main/templates/main/login.html b/nummi/main/templates/main/login.html
index cca26dd..67218e5 100644
--- a/nummi/main/templates/main/login.html
+++ b/nummi/main/templates/main/login.html
@@ -1,35 +1,30 @@
{% extends "main/base.html" %}
{% load static %}
{% load i18n %}
-
{% block link %}
-{{ block.super }}
-
+ {{ block.super }}
+
{% endblock %}
-
{% block body %}
-
-{% translate "Log In" %}
-
-
-
+ {% translate "Log In" %}
+
{% endblock %}
diff --git a/nummi/main/templates/main/snapshot.html b/nummi/main/templates/main/snapshot.html
index 7396a02..55d9b88 100644
--- a/nummi/main/templates/main/snapshot.html
+++ b/nummi/main/templates/main/snapshot.html
@@ -2,91 +2,81 @@
{% load static %}
{% load main_extras %}
{% load i18n %}
-
{% block link %}
-{{ block.super }}
-
-
-
+ {{ block.super }}
+
+
+
{% endblock %}
-
{% block body %}
-{% with sum=snapshot.sum %}
-
- {% if snapshot.previous is not None %}
- {% if sum == snapshot.diff %}
-
- {% else %}
-
- {% endif %}
- {% endif %}
- {{ snapshot }}
-
-
-
-
-{% if categories %}
-{% translate "Categories" %}
-
- {% for cat in categories %}
-
-
- {{ cat.sum_m|pmvalue }}
-
-
-
-
- {% if cat.sum < 0 %}
-
- {{ cat.sum|pmvalue }}
-
- {% endif %}
-
-
-
-
- {% if cat.sum >= 0 %}
-
- {{ cat.sum|pmvalue }}
-
- {% endif %}
-
-
- {{ cat.sum_p|pmvalue }}
-
- {% endfor %}
-
-{% endif %}
-
-{% if snapshot.transactions %}
-{% translate "Transactions" %} ({{ sum|pmvalue }} / {{ snapshot.diff|pmvalue }})
-
-{% transaction_table snapshot.transactions %}
-{% endif %}
-{% endwith %}
-{% endblock %}
+ {% with sum=snapshot.sum %}
+
+ {% if snapshot.previous is not None %}
+ {% if sum == snapshot.diff %}
+
+ {% else %}
+
+ {% endif %}
+ {% endif %}
+ {{ snapshot }}
+
+
+ {% if categories %}
+ {% translate "Categories" %}
+
+ {% for cat in categories %}
+
+
{{ cat.sum_m|pmvalue }}
+
+
+ {% if cat.sum < 0 %}
+
+ {{ cat.sum|pmvalue }}
+
+ {% endif %}
+
+
+
+ {% if cat.sum >= 0 %}
+
+ {{ cat.sum|pmvalue }}
+
+ {% endif %}
+
+
{{ cat.sum_p|pmvalue }}
+ {% endfor %}
+
+ {% endif %}
+ {% if snapshot.transactions %}
+ {% translate "Transactions" %} ({{ sum|pmvalue }} / {{ snapshot.diff|pmvalue }})
+ {% transaction_table snapshot.transactions %}
+ {% endif %}
+ {% endwith %}
+ {% endblock %}
diff --git a/nummi/main/templates/main/tag/form_buttons.html b/nummi/main/templates/main/tag/form_buttons.html
index 86cf785..54c39db 100644
--- a/nummi/main/templates/main/tag/form_buttons.html
+++ b/nummi/main/templates/main/tag/form_buttons.html
@@ -1,15 +1,13 @@
{% load i18n %}
diff --git a/nummi/main/templates/main/tag/pmvalue.html b/nummi/main/templates/main/tag/pmvalue.html
index 306aa87..db9eb45 100644
--- a/nummi/main/templates/main/tag/pmvalue.html
+++ b/nummi/main/templates/main/tag/pmvalue.html
@@ -1,8 +1,9 @@
{% extends "main/tag/value.html" %}
-
{% block "value" %}
- {% if value %}
- {% if value > 0 %}+{% endif %}
- {{ block.super }}
- {% else %}–{% endif %}
+ {% if value %}
+ {% if value > 0 %}+{% endif %}
+ {{ block.super }}
+ {% else %}
+ –
+ {% endif %}
{% endblock %}
diff --git a/nummi/main/templates/main/tag/transaction_table.html b/nummi/main/templates/main/tag/transaction_table.html
index 299c513..b1a1263 100644
--- a/nummi/main/templates/main/tag/transaction_table.html
+++ b/nummi/main/templates/main/tag/transaction_table.html
@@ -1,42 +1,39 @@
{% load main_extras %}
{% load i18n %}
-
-
- {% for trans in transactions %}
-
-
- {% for invoice in trans.invoices %}
- {% spaceless %}
-
-
-
- {% endspaceless %}
- {% endfor %}
-
-
{{ trans.date|date:"Y-m-d" }}
-
{{ trans.name }}
-
{{ trans.value|pmvalue }}
-
{{ trans.trader|default_if_none:"–" }}
-
- {% if trans.category %}
-
-
- {{ trans.category }}
-
- {% else %}
- –
- {% endif %}
-
-
{{ trans.description }}
-
- {% endfor %}
+
+ {% for trans in transactions %}
+
+
+ {% for invoice in trans.invoices %}
+ {% spaceless %}
+
+
+
+ {% endspaceless %}
+ {% endfor %}
+
+
{{ trans.date|date:"Y-m-d" }}
+
{{ trans.name }}
+
{{ trans.value|pmvalue }}
+
{{ trans.trader|default_if_none:"–" }}
+
+ {% if trans.category %}
+
+ {{ trans.category }}
+ {% else %}
+ –
+ {% endif %}
+
+
{{ trans.description }}
+
+ {% endfor %}
diff --git a/nummi/main/templates/main/tag/value.html b/nummi/main/templates/main/tag/value.html
index 9ba2cf7..3cdbb41 100644
--- a/nummi/main/templates/main/tag/value.html
+++ b/nummi/main/templates/main/tag/value.html
@@ -1,7 +1,5 @@
{% spaceless %}
-
- {% block "value" %}
- {{ value }} €
- {% endblock %}
-
+
+ {% block "value" %}{{ value }} €{% endblock %}
+
{% endspaceless %}
diff --git a/nummi/main/templates/main/transaction.html b/nummi/main/templates/main/transaction.html
index 0009651..fe34167 100644
--- a/nummi/main/templates/main/transaction.html
+++ b/nummi/main/templates/main/transaction.html
@@ -2,57 +2,62 @@
{% load static %}
{% load main_extras %}
{% load i18n %}
-
{% block link %}
-{{ block.super }}
-
-
+ {{ block.super }}
+
+
{% endblock %}
-
{% block body %}
-{{ transaction }}
-
-{% spaceless %}
-
-{% endspaceless %}
-
-
- {% if transaction.has_invoice %}
-
-
{% translate "Invoices" %}
-
-
- {% for inv in transaction.invoices %}
-
- {% endfor %}
-
-
- {% endif %}
-
-
-
{% translate "Add invoice" %}
-
-
-
-{% endblock %}
+ {{ transaction }}
+ {% spaceless %}
+
+ {% endspaceless %}
+
+ {% if transaction.has_invoice %}
+
+
{% translate "Invoices" %}
+
+
+ {% for inv in transaction.invoices %}
+
+ {% endfor %}
+
+
+ {% endif %}
+
+
{% translate "Add invoice" %}
+
+
+
+ {% endblock %}
diff --git a/nummi/main/templates/main/transactions.html b/nummi/main/templates/main/transactions.html
index edf421e..eeca920 100644
--- a/nummi/main/templates/main/transactions.html
+++ b/nummi/main/templates/main/transactions.html
@@ -2,34 +2,31 @@
{% load static %}
{% load main_extras %}
{% load i18n %}
-
{% block link %}
-{{ block.super }}
-
-
+ {{ block.super }}
+
+
{% endblock %}
-
{% block body %}
-{% translate "Transactions" %}
-{% transaction_table transactions %}
-
-{% if page_obj %}
-
-{% endif %}
+ {% translate "Transactions" %}
+ {% transaction_table transactions %}
+ {% if page_obj %}
+
+ {% endif %}
{% endblock %}