| Filename |
diff --git a/src/economy/templates/includes/expense_list_panel.html b/src/economy/templates/includes/expense_list_panel.html
index 31767e7b7..6ed214a52 100644
--- a/src/economy/templates/includes/expense_list_panel.html
+++ b/src/economy/templates/includes/expense_list_panel.html
@@ -8,9 +8,11 @@
Camp |
{% endif %}
Invoice Date |
- Created By |
- {% if not reimbursement %}
- Paid by |
+ {% if request.resolver_match.app_name == "backoffice" %}
+ Created By |
+ {% if not reimbursement %}
+ Paid by |
+ {% endif %}
{% endif %}
Creditor |
Amount |
@@ -34,9 +36,11 @@
{{ expense.camp.title }} |
{% endif %}
{{ expense.invoice_date }} |
- {{ expense.user.profile.get_name }} |
- {% if not reimbursement %}
- {% if expense.paid_by_bornhack %}BornHack{% else %}{{ expense.user.profile.get_name }}{% endif %} |
+ {% if request.resolver_match.app_name == "backoffice" %}
+ {{ expense.user.profile.get_name }} |
+ {% if not reimbursement %}
+ {% if expense.paid_by_bornhack %}BornHack{% else %}{{ expense.user.profile.get_name }}{% endif %} |
+ {% endif %}
{% endif %}
{{ expense.creditor.name }} |
{{ expense.amount }} DKK |
diff --git a/src/economy/templates/includes/reimbursement_detail_panel.html b/src/economy/templates/includes/reimbursement_detail_panel.html
index 3b2f05963..5c769d345 100644
--- a/src/economy/templates/includes/reimbursement_detail_panel.html
+++ b/src/economy/templates/includes/reimbursement_detail_panel.html
@@ -5,11 +5,11 @@
| Reimbursement User |
- {{ reimbursement.reimbursement_user }} |
+ {{ reimbursement.reimbursement_user.profile.get_name }} |
| Created By |
- {{ reimbursement.user }} |
+ {{ reimbursement.user.profile.get_name }} |
| Total Amount |
diff --git a/src/economy/templates/includes/revenue_detail_panel.html b/src/economy/templates/includes/revenue_detail_panel.html
index f80d9bc63..39350e108 100644
--- a/src/economy/templates/includes/revenue_detail_panel.html
+++ b/src/economy/templates/includes/revenue_detail_panel.html
@@ -2,10 +2,12 @@
-
- | Created By |
- {{ revenue.user }} |
-
+ {% if request.resolver_match.app_name == "backoffice" %}
+
+ | Created By |
+ {{ revenue.user.profile.get_name }} |
+
+ {% endif %}
| Amount |
{{ revenue.amount }} DKK |
diff --git a/src/economy/templates/includes/revenue_list_panel.html b/src/economy/templates/includes/revenue_list_panel.html
index 1ce389265..702766aee 100644
--- a/src/economy/templates/includes/revenue_list_panel.html
+++ b/src/economy/templates/includes/revenue_list_panel.html
@@ -8,7 +8,9 @@
Camp |
{% endif %}
Invoice Date |
- Created By |
+ {% if request.resolver_match.app_name == "backoffice" %}
+ Created By |
+ {% endif %}
Debtor |
Amount |
Description |
@@ -25,7 +27,9 @@
{{ revenue.camp.title }} |
{% endif %}
{{ revenue.invoice_date }} |
- {{ revenue.user.email }} |
+ {% if request.resolver_match.app_name == "backoffice" %}
+ {{ revenue.user.profile.get_name }} |
+ {% endif %}
{{ revenue.debtor }} |
{{ revenue.amount }} DKK |
{{ revenue.description }} |