Skip to content

Commit

Permalink
drop recent/log - no one uses it and would need to use a different ba…
Browse files Browse the repository at this point in the history
…ckend mechanism as we are heading towards using the queue
  • Loading branch information
ranguard committed May 5, 2016
1 parent aeffe70 commit 898607f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 85 deletions.
5 changes: 0 additions & 5 deletions lib/MetaCPAN/Web/Controller/Recent.pm
Expand Up @@ -25,11 +25,6 @@ sub index : Path {
);
}

sub log : Local {
my ( $self, $c ) = @_;
$c->stash( { template => 'recent/log.html' } );
}

sub faves : Path('/recent/favorites') {
my ( $self, $c ) = @_;
$c->res->redirect( '/favorite/recent', 301 );
Expand Down
3 changes: 1 addition & 2 deletions root/inc/recent-bar.html
Expand Up @@ -6,7 +6,7 @@
<li><% INCLUDE inc/activity.html query = 'f=' _ c.req.params.f || 'l' %></li>
<li class="nav-header">Filter</li>
<form action="<% c.uri_for('/recent') %>" method="get" onchange="this.form.submit()">
<%-
<%-
filter = { l = 'Latest releases', n = 'New distributions', a = 'Including BackPAN' };
IF c.req.uri == "/recent"; c.req.params.f ||= 'l'; END;
FOR item IN ['l', 'n']; %>
Expand All @@ -17,7 +17,6 @@
<li class="nav-header">Other</li>
<li><a href="/favorite/recent">Recent Favorites</a></li>
<li><a href="/favorite/leaderboard">Popular Distributions</a></li>
<li><a href="/recent/log">Indexer Log</a></li>
<li class="nav-header">Top Uploaders</li>
<%-
categories = [
Expand Down
73 changes: 0 additions & 73 deletions root/recent/log.html

This file was deleted.

9 changes: 4 additions & 5 deletions t/html.t
Expand Up @@ -9,11 +9,10 @@ use Path::Tiny qw(path);
# files that have inline <script> tags
my %skip = map { $_ => 1 } (
'root/account/profile.html', 'root/account/turing.html',
'root/inc/dependencies-graph.html', 'root/recent/log.html',
'root/author.html', 'root/mirrors.html',
'root/source.html', 'root/wrapper.html',
'root/about/contributors.html', 'root/inc/favorite.html',
'root/about/stats.html',
'root/inc/dependencies-graph.html', 'root/author.html',
'root/mirrors.html', 'root/source.html',
'root/wrapper.html', 'root/about/contributors.html',
'root/inc/favorite.html', 'root/about/stats.html',
);

my $rule = Path::Iterator::Rule->new;
Expand Down

0 comments on commit 898607f

Please sign in to comment.