-
Notifications
You must be signed in to change notification settings - Fork 8
/
show.tt
53 lines (49 loc) · 1.52 KB
/
show.tt
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
47
48
49
50
51
52
53
[%- USE HTML -%]
<h2>[% release.name %]</h2>
[% license = release.license %]
<ul>
<li>
<b>Abstract:</b> [% HTML.escape(release.abstract) %]
</li>
<li>
<a href="[% HTML.escape(release.homepage) %]" rel="nofollow"><b>Homepage</b></a>,
<a href="http://wiki.catalyzed.org/cpan-modules/[% release.distribution.name %]" rel="nofollow"><b>Wiki</b></a>
</li>
<li>
<b>License:</b>
<a href="[% HTML.escape(license.url) %]">[% HTML.escape(license.name) %]</a>
</li>
<li>
<a href="[% HTML.escape(release.mailing_list) %]" rel="nofollow"><b>Mailing List</b></a>
</li>
<li>
<a href="[% HTML.escape(release.vcs_repository) %]" rel="nofollow"><b>Version Control Repository</b></a>
</li>
<li>
<b>Tags:</b>
[% FOREACH tag_proto = release.distribution.author_keywords %]
[%- tag = tag_proto.keyword.string_id -%]
<a href="[% HTML.escape(c.uri_for('/tag', tag)) %]">[% HTML.escape(tag) %]</a>[% UNLESS loop.last %], [% END %]
[% END %]
</li>
</ul>
[% author = release.author %]
<p>By <a href="[% c.uri_for( '/author', author.cpanid ) %]">[% author.name %]</a>, released on [% release.release_date.ymd %]</p>
<h3 id="graph">Graph</h3>
<img src="/dist/[% dist.name %]/release/[% release.version %]/graph.png" />
<h3 id="packages">Packages</h3>
<ul>
[% FOREACH pack = release.distribution.packages %]
<li>
<a href="[% c.uri_for( '/package', pack.name) %]">[% HTML.escape(pack.name) %]</a>
</li>
[% END %]
</ul>
<h3 id="dependencies">Dependencies</h3>
<ul>
[% FOREACH dep = uses %]
<li>
<a href="[% c.uri_for( '/dist', dep) %]">[% HTML.escape(dep) %]</a>
</li>
[% END %]
</ul>