forked from metacpan/metacpan-web
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature request: What depends on this?, fixes metacpan#111
- Loading branch information
Showing
10 changed files
with
95 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package MetaCPAN::Web::Controller::Requires; | ||
|
||
use Moose; | ||
use namespace::autoclean; | ||
|
||
BEGIN { extends 'MetaCPAN::Web::Controller' } | ||
|
||
sub index : Chained('/') : PathPart('requires') : CaptureArgs(0) { | ||
} | ||
|
||
sub module : Chained('index') : PathPart : Args(1) { | ||
my ( $self, $c, $module ) = @_; | ||
my $cv = AE::cv; | ||
my $data = $c->model('API::Module')->requires($module, $c->req->page)->recv; | ||
$c->stash({%{$data}, module => $module, template => 'requires.html'}); | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<%- title = "Distributions depending on " _ module %> | ||
<div class="search-bar"> | ||
<% INCLUDE inc/activity.html query = "requires=" _ module %> | ||
<hr> | ||
<strong>Index</strong> | ||
<ul> | ||
<a href=""><li>Latest</li></a> | ||
<a href=""><li>CPAN</li></a> | ||
<a href=""><li>BackPAN</li></a> | ||
</ul> | ||
</div> | ||
|
||
<div class="content"> | ||
<% IF data.size > 0 %> | ||
<% INCLUDE inc/release-table.html releases = data, header = 1 %> | ||
<% INCLUDE inc/pager.html size = 50 %> | ||
<% ELSE %> | ||
<big><strong>No depedants for <% module %> could be found</strong></big> | ||
<% END %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters