templates/index.atom.ep
changeset 78 0ebef32c34af
parent 32 3e776f1b21d4
--- a/templates/index.atom.ep	Sun Sep 27 22:45:40 2015 +0200
+++ b/templates/index.atom.ep	Wed Nov 04 17:43:00 2015 +0100
@@ -4,22 +4,22 @@
   <link type="text/html" rel="alternate" href="<%= url_for()->to_abs =%>"/>
   <link type="application/atom+xml" rel="self" href="<%= url_for('current', format => 'atom')->to_abs =%>"/>
   <title>Recent Crashs</title>
-  <updated><%= @$files[0]->{date}->strftime("%FT%TZ") =%></updated>
+  <updated><%= date_with_tz_from_db_utc(@$crashs[0]->{crash_time}) =%></updated>
 
-% foreach my $file(@$files) {
+% foreach my $crash(@$crashs) {
   <entry>
-    <id>tag:crash,2014:uuid::<%= $file->{uuid} =%></id>
-    <link type="text/html" rel="alternate" href="<%= url_for('report', uuid => $file->{uuid})->to_abs =%>"/>
-    <title><%= $file->{product} =%>: <%= $file->{signature} =%></title>
-    <updated><%= $file->{date}->strftime("%FT%TZ") =%></updated>
-    <published><%= $file->{date}->strftime("%FT%TZ") =%></published>
+    <id>tag:crash,2014:uuid::<%= $crash->{uuid} =%></id>
+    <link type="text/html" rel="alternate" href="<%= url_for('report', uuid => $crash->{uuid})->to_abs =%>"/>
+    <title><%= $crash->{p_name} =%>&nbsp;<%= $crash->{p_version} =%>: <%= $crash->{uuid} =%></title>
+    <updated><%= date_with_tz_from_db_utc($crash->{crash_time}) =%></updated>
+    <published><%= date_with_tz_from_db_utc($crash->{crash_time}) =%></published>
     <author>
       <name></name>
     </author>
     <content type="html">
     %= xml_escape_block begin
-      %= t h3 => $file->{date}->strftime("%F %T")
-      %= t h3 => $file->{product} . " version " . $file->{version}
+      %= t h3 => date_from_db_utc($crash->{crash_time})
+      %= t h3 => $crash->{p_name} . " version " . $crash->{p_version}
     % end
     </content>
   </entry>