diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-27 22:52:06 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-27 22:52:06 +0100 |
commit | ca393af1d89f6ff98e6b0f44d506c8621e3b74cc (patch) | |
tree | eb9bf491894600235bbc7f6eed62691396fe5374 /templates/web/default | |
parent | 9593e182ca601d8b8a3b4564e9072fa74473823c (diff) |
Pull requests #103 and #107, clickable-urls-in-reports, done as a TT function.
Diffstat (limited to 'templates/web/default')
-rw-r--r-- | templates/web/default/report/_main.html | 6 | ||||
-rw-r--r-- | templates/web/default/report/updates.html | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/templates/web/default/report/_main.html b/templates/web/default/report/_main.html index 53dcb9a13..0c0c74b16 100644 --- a/templates/web/default/report/_main.html +++ b/templates/web/default/report/_main.html @@ -11,11 +11,7 @@ </em></p> -[% FOREACH line IN split_into_lines( problem.detail ) %] -<p> -[% line | html %] -</p> -[% END %] +[% add_links( problem.detail ) | html_para %] [% INCLUDE 'report/photo.html' object=problem center=1 %] diff --git a/templates/web/default/report/updates.html b/templates/web/default/report/updates.html index c23d1409d..b7f44c5ae 100644 --- a/templates/web/default/report/updates.html +++ b/templates/web/default/report/updates.html @@ -16,11 +16,7 @@ </div> [%# update reporting %] <div class="update-text"> - [% FOREACH line IN split_into_lines( update.text ) %] - <p> - [% line | html %] - </p> - [% END %] + [% add_links( update.text ) | html_para %] [% INCLUDE 'report/photo.html' object=update %] </div> |