Skip to content

Commit 310199c

Browse files
committed
Add a macro for "other links". Use it.
1 parent 83899ec commit 310199c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

share/tt_lib/page.tt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
<div class="col-3">
7171
<h2>Documentation</h2>
7272
[% doc_links %]
73+
<h2>Other links</h2>
74+
[% other_links %]
7375
</div>
7476
<div class="col-9">
7577
[% content %]

share/tt_lib/utils.tt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,18 @@
55
[% END -%]
66
</ul>
77
[% END -%]
8+
9+
[% MACRO other_links BLOCK -%]
10+
<ul>
11+
<li><a href="https://metacpan.org/release/[% release.distribution %]">MetaCPAN</a></li>
12+
<li><a href="http://matrix.cpantesters.org/?dist=[% release.distribution %]">CPAN testers</a></li>
13+
<li><a href="https://cpants.cpanauthors.org/release/[% release.author %]/[% release.name %]">CPANTS</a></li>
14+
<li><a href="[% release.download_url %]">Download</a></li>
15+
[% IF release.resources.bugtracker.web -%]
16+
<li><a href="[% release.resources.bugtracker.web %]">Bug tracker</a></li>
17+
[% END -%]
18+
[% IF release.resources.repository.web -%]
19+
<li><a href="[% release.resources.repository.web %]">Code repository</a></li>
20+
[% END -%]
21+
</ul>
22+
[% END -%]

0 commit comments

Comments
 (0)