... | ... |
@@ -70,6 +70,13 @@ |
70 | 70 |
$commit->{updated} = $updated; |
71 | 71 |
} |
72 | 72 |
} |
73 |
+ |
|
74 |
+ # Set stash |
|
75 |
+ stash( |
|
76 |
+ user => $user, |
|
77 |
+ project => $project, |
|
78 |
+ rev => $rev |
|
79 |
+ ); |
|
73 | 80 |
#%> |
74 | 81 |
% if ($render_atom_feed) { |
75 | 82 |
<% |
... | ... |
@@ -1,5 +1,14 @@ |
1 | 1 |
<% |
2 | 2 |
my $stylesheets = stash('stylesheets') || []; |
3 |
+ my $user = stash('user'); |
|
4 |
+ $user = '' unless defined $user; |
|
5 |
+ my $project = stash('project'); |
|
6 |
+ $project = '' unless defined $project; |
|
7 |
+ my $rev = stash('rev'); |
|
8 |
+ if (length $user && length $project && !defined $rev) { |
|
9 |
+ $rev = app->manager->default_branch($user, $project); |
|
10 |
+ } |
|
11 |
+ $rev = '' unless $rev; |
|
3 | 12 |
%> |
4 | 13 |
<!DOCTYPE html> |
5 | 14 |
<html> |
... | ... |
@@ -16,6 +25,9 @@ |
16 | 25 |
%= javascript '/js/bootstrap.min.js'; |
17 | 26 |
|
18 | 27 |
<link rel="shortcut icon" href="<%= url_for('/git-favicon.png') %>" type="image/png" > |
28 |
+ % if (length $user && length $project && length $rev) { |
|
29 |
+ <link href="<%= url_for("/$user/$project/commits/$rev.atom")->to_abs %>" rel="alternate" title="Recent Commits to <%= "$project:$rev" %>" type="application/atom+xml"> |
|
30 |
+ % } |
|
19 | 31 |
</head> |
20 | 32 |
<body> |
21 | 33 |
%= stylesheet begin |