Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Includes the submitter e-mail address on the ticket view
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Aug 31, 2015
1 parent 7d5906f commit 6488dcd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
Unreleased
~~~~~~~~~~

- Includes the submitter e-mail address on the ticket view.
[href]

0.4.0 (2015-08-28)
~~~~~~~~~~~~~~~~~~~

Expand Down
10 changes: 7 additions & 3 deletions onegov/town/locale/de/LC_MESSAGES/onegov.town.po
Original file line number Diff line number Diff line change
@@ -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 <fabian.reinhard@seantis.ch>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -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"
Expand All @@ -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 "
Expand Down
8 changes: 7 additions & 1 deletion onegov/town/templates/ticket.pt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<tal:block condition="ticket.user_id">
<div class="field-display-label" i18n:translate>Owner</div>
<div class="field-display-data ticket-owner">
${ticket.user.username}
<a href="mailto:${ticket.user.username}">${ticket.user.username}</a>
</div>
</tal:block>

Expand All @@ -43,6 +43,12 @@
${layout.format_date(ticket.created, 'relative')}
</div>

<tal:block define="submitter handler.email|ticket.snapshot.email|nothing" condition="submitter">
<div class="field-display-label" i18n:translate>Submitter</div>
<div class="field-display-data ticket-submitter">
<a href="mailto:${submitter}">${submitter}</a>
</div>
</tal:block>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion onegov/town/views/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down

0 comments on commit 6488dcd

Please sign in to comment.