Showing 1 changed files with 2 additions and 8 deletions
+2 -8
templates/commits.html.ep
... ...
@@ -82,13 +82,9 @@
82 82
 <%
83 83
     $self->res->headers->content_type('application/atom+xml;charset=UTF-8');
84 84
     # Create atom feed
85
-    my $commit_title = $commit->{title};
86
-    $commit_title = Mojo::Util::xml_escape
87
-    
88 85
     my $alternate_url = url_with;
89 86
     my $alternate_url_path_parts = $alternate_url->path->parts;
90 87
     $alternate_url_path_parts->[-1] =~ s/\.atom$//;
91
-    
92 88
 #%>
93 89
 <?xml version="1.0" encoding="UTF-8" ?>
94 90
 <feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xml:lang="en-US">
... ...
@@ -99,18 +95,16 @@
99 95
   <updated><%= $commits->[0]->{updated} %></updated>
100 96
 
101 97
     % for my $commit (@$commits) {
102
-      % my $entry_alternate_url = url_for("/$user/$project/commit/$commit->{id}");
103
-      % my $author_url = url_for("/$user");
104 98
   <entry>
105 99
     <id>tag:gitprep,2008:Grit::Commit/<%= $commit->{id} %></id>
106
-    <link type="text/html" rel="alternate" href="<%= $entry_alternate_url->to_abs %>" />
100
+    <link type="text/html" rel="alternate" href="<%= url_for("/$user/$project/commit/$commit->{id}")->to_abs %>" />
107 101
     <title>
108 102
         <%= $commit->{title} %>
109 103
     </title>
110 104
     <updated><%= $commit->{updated} %></updated>
111 105
     <author>
112 106
       <name><%= $user %></name>
113
-      <uri><%= $author_url->to_abs %></uri>
107
+      <uri><%= url_for("/$user")->to_abs %></uri>
114 108
     </author>
115 109
     <content type="html">
116 110
       <%= "<pre style='white-space:pre-wrap;width:81ex'>$commit->{title}</pre>" %>