forked from metacpan/metacpan-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecent.tx
46 lines (45 loc) · 1.7 KB
/
recent.tx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%% cascade base {
%% rss => $rss || '/recent.rss',
%% rss_title => $rss_title || 'Recent CPAN Uploads - MetaCPAN',
%% title => $title || 'Recent',
%% }
%% override left_nav_content -> {
%% macro sidebar_group -> $selected, $group {
%% for $group -> $entry {
<li>
%% if $selected == $entry.0 {
<strong>[% $entry.1 %]</strong>
%% }
%% else {
<a href="[% $entry.2 %]">[% $entry.1 %]</a>
%% }
</li>
%% }
%% }
<li class="nav-header">Activity</li>
<li>
%% include inc::activity {
%% url => (($filter || 'l') == 'l' ? '/activity/releases.svg' : '/activity/distributions.svg'),
%% }
</li>
<li class="nav-header">Recent Uploads</li>
%% sidebar_group($filter, [
%% [ "l", "Latest releases", "/recent" ],
%% [ "n", "New distributions", "/recent?f=n" ],
%% ]);
<li class="nav-header">Favorites</li>
%% sidebar_group($favorite_type, [
%% [ "recent", "Recent Favorites", "/favorite/recent" ],
%% [ "leaderboard", "Popular Distributions", "/favorite/leaderboard" ],
%% ]);
<li class="nav-header">Top Uploaders</li>
%% sidebar_group($range, [
%% [ "weekly", "Weekly", "/recent/topuploaders/weekly" ],
%% [ "yearly", "Yearly", "/recent/topuploaders/yearly" ],
%% [ "all", "All Time", "/recent/topuploaders/all" ],
%% ]);
<li class="nav-header">Project Partners</li>
<li><a href="https://www.loadview-testing.com/api-testing/">LoadView API Testing</a></li>
<li><a href="https://webhostingbuddy.com/wordpress-hosting/">WordPress Hosting Buddy</a></li>
</ul>
%% }