templates/index.atom.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Thu, 07 Aug 2014 23:50:08 +0200
changeset 34 e0d6597078a5
parent 32 3e776f1b21d4
child 78 0ebef32c34af
permissions -rw-r--r--
Cleanup: Mojo-ize old code, simplifying perl OO code Make Sql Storage inherit Filesystem, since the DB is only used as an index and still stores on disk

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xml:lang="en-US">
  <id>tag:crash,2012,<%= url_for('index')->to_abs =%></id>
  <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>

% foreach my $file(@$files) {
  <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>
    <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}
    % end
    </content>
  </entry>
% }
</feed>