diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-18 09:29:28 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-18 09:29:28 +0100 |
commit | a1bf3577fb31c0bb73b39633a2aaeeb69b740abd (patch) | |
tree | 9dad37c75f7ce6a50b12d043fb2ef6b694ce0c8c | |
parent | d86661a9b31b9c86fd07999c2f455b01fd69c8f1 (diff) |
template for displaying updates
-rw-r--r-- | templates/web/default/report/updates.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/web/default/report/updates.html b/templates/web/default/report/updates.html new file mode 100644 index 000000000..2bacbde1d --- /dev/null +++ b/templates/web/default/report/updates.html @@ -0,0 +1,28 @@ +[% FOREACH update IN updates.all %] +[% IF loop.first %] +<div id="updates"> + <h2 class="problem-update-list-header">[% loc('Updates') %]</h2> +[% END %] + <div><div class="problem-update"><p><a name="update_[% update.id %]"></a><em> + [% IF update.name %] + [% tprintf( loc( 'Posted by %s at %s' ), update.name, prettify_epoch( update.confirmed ) ) | html -%] + [%- ELSE %] + [% tprintf( loc( 'Posted anonymously at %s' ), prettify_epoch( update.confirmed ) ) -%] + [%- END -%] + [%- # extra cobrand meta data -%] + [%- ", " _ loc( 'marked as fixed' ) IF update.mark_fixed %] + [%- ", " _ loc( 'reopened' ) IF update.mark_open %] + </em></p> + </div> + [%# update reporting %] + <div class="update-text"> + [% FOREACH line IN split_into_lines( update.text ) %] + <p> + [% line | html %] + </p> + [% END %] + </div> + [%# images %] + </div> +[% '</div>' IF loop.last %] +[% END %] |