templates/index.atom.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Sat, 12 Dec 2015 15:56:51 +0100
changeset 80 d33b5f6e0862
parent 78 0ebef32c34af
permissions -rw-r--r--
Display exceptions when loading Mojo DB drivers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     2
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xml:lang="en-US">
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     3
  <id>tag:crash,2012,<%= url_for('index')->to_abs =%></id>
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     4
  <link type="text/html" rel="alternate" href="<%= url_for()->to_abs =%>"/>
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     5
  <link type="application/atom+xml" rel="self" href="<%= url_for('current', format => 'atom')->to_abs =%>"/>
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     6
  <title>Recent Crashs</title>
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 32
diff changeset
     7
  <updated><%= date_with_tz_from_db_utc(@$crashs[0]->{crash_time}) =%></updated>
4
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     8
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 32
diff changeset
     9
% foreach my $crash(@$crashs) {
4
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    10
  <entry>
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 32
diff changeset
    11
    <id>tag:crash,2014:uuid::<%= $crash->{uuid} =%></id>
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 32
diff changeset
    12
    <link type="text/html" rel="alternate" href="<%= url_for('report', uuid => $crash->{uuid})->to_abs =%>"/>
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 32
diff changeset
    13
    <title><%= $crash->{p_name} =%>&nbsp;<%= $crash->{p_version} =%>: <%= $crash->{uuid} =%></title>
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 32
diff changeset
    14
    <updated><%= date_with_tz_from_db_utc($crash->{crash_time}) =%></updated>
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 32
diff changeset
    15
    <published><%= date_with_tz_from_db_utc($crash->{crash_time}) =%></published>
4
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    16
    <author>
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    17
      <name></name>
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    18
    </author>
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    19
    <content type="html">
32
3e776f1b21d4 Fix and improve atom/rss feed
Vincent Tondellier <tonton+hg@team1664.org>
parents: 4
diff changeset
    20
    %= xml_escape_block begin
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 32
diff changeset
    21
      %= t h3 => date_from_db_utc($crash->{crash_time})
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 32
diff changeset
    22
      %= t h3 => $crash->{p_name} . " version " . $crash->{p_version}
32
3e776f1b21d4 Fix and improve atom/rss feed
Vincent Tondellier <tonton+hg@team1664.org>
parents: 4
diff changeset
    23
    % end
4
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    24
    </content>
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    25
  </entry>
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    26
% }
7ffe7b48b8de Create atom feed
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    27
</feed>