From 6488dcd8008172164a307499d1c7eb22a7c64762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Krienb=C3=BChl?= Date: Mon, 31 Aug 2015 09:27:31 +0200 Subject: [PATCH] Includes the submitter e-mail address on the ticket view --- HISTORY.rst | 3 +++ onegov/town/locale/de/LC_MESSAGES/onegov.town.po | 10 +++++++--- onegov/town/templates/ticket.pt | 8 +++++++- onegov/town/views/ticket.py | 3 ++- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 376b1db..28f4bf4 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,6 +4,9 @@ Changelog Unreleased ~~~~~~~~~~ +- Includes the submitter e-mail address on the ticket view. + [href] + 0.4.0 (2015-08-28) ~~~~~~~~~~~~~~~~~~~ diff --git a/onegov/town/locale/de/LC_MESSAGES/onegov.town.po b/onegov/town/locale/de/LC_MESSAGES/onegov.town.po index df453d4..0e1f450 100644 --- a/onegov/town/locale/de/LC_MESSAGES/onegov.town.po +++ b/onegov/town/locale/de/LC_MESSAGES/onegov.town.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2015-08-27 16:48+0200\n" +"POT-Creation-Date: 2015-08-31 09:24+0200\n" "PO-Revision-Date: \n" "Last-Translator: Fabian Reinhard \n" "Language-Team: \n" @@ -723,8 +723,9 @@ msgstr "Eingabe Löschen" msgid "" "The record behind this ticket was removed. The following information is a " "snapshot kept for future reference." -msgstr "Der hinterlegte Datensatz wurde entfernt. Die folgenden Informationen " -"sind eine Momentaufnahme, erstellt vor der Löschung." +msgstr "" +"Der hinterlegte Datensatz wurde entfernt. Die folgenden Informationen sind " +"eine Momentaufnahme, erstellt vor der Löschung." msgid "Ticket Number" msgstr "Referenz" @@ -741,6 +742,9 @@ msgstr "Zuständig" msgid "Created" msgstr "Eingang" +msgid "Submitter" +msgstr "Antragsteller/in" + msgid "" "Your request will be processed shortly. To see the state of your process " "your may return to this page at any time. All information on this page has " diff --git a/onegov/town/templates/ticket.pt b/onegov/town/templates/ticket.pt index c2f4499..2b5a8ac 100644 --- a/onegov/town/templates/ticket.pt +++ b/onegov/town/templates/ticket.pt @@ -34,7 +34,7 @@
Owner
- ${ticket.user.username} + ${ticket.user.username}
@@ -43,6 +43,12 @@ ${layout.format_date(ticket.created, 'relative')} + +
Submitter
+ +
diff --git a/onegov/town/views/ticket.py b/onegov/town/views/ticket.py index f46062d..7943016 100644 --- a/onegov/town/views/ticket.py +++ b/onegov/town/views/ticket.py @@ -29,7 +29,8 @@ def view_ticket(self, request): 'layout': TicketLayout(self, request), 'ticket': self, 'summary': summary, - 'deleted': handler.deleted + 'deleted': handler.deleted, + 'handler': handler }