+[%- PROCESS marker text=g('essential') IF page.get_newest('essential') == 'yes' %]</h1>
+
+[% UNLESS is_virtual %]
+<div id="pmoreinfo">
+<h2>[% g('Links for %s', pkg) %]</h2>
+<h3>[% g('%s Resources:', organisation) %]</h3>
+<ul>
+<li><a href="[% launchpad_url _ (is_source ? pkg : src.pkg) _ '/+bugs' %]">[% g('Bug Reports') %]</a></li>
+
+[% IF files && (!archive or archive == main_archive or archive == 'security') %]
+<li><a href="[% changelogs_url _ files.changelog.path %]">[% g('%s Changelog', organisation) %]</a></li>
+<li><a href="[% changelogs_url _ files.copyright.path %]">[% g('Copyright File') %]</a></li>
+[% END %]
+
+[% IF vcs_link %]
+<li><a href="[% vcs_link %]" class="pvcslink">[% g('Debian Source Repository') %]</a>
+[%- FOREACH vcs IN known_vcs;
+ vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2;
+ vcs_info = page.get_newest("vcs-$vcs_id");
+ SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
+ IF vcs_info %]
+ (<a href="[% vcs_info %]" class="pvcslink">[% vcs_name %]</a>)
+[% END; END %]
+</li>
+[% END %]
+
+</ul>
+
+[% IF src %]
+ <p>[% g('Download Source Package <a href="%s">%s</a>:', src.url, src.pkg) %]
+ [% FOREACH src.downloads %]
+ [% '<ul>' IF loop.first %]
+ <li><a href="[% server _ path %]">[[% name %]]</a></li>
+ [% '</ul>' IF loop.last %]
+ [% END %]
+ [% IF src.downloads.size == 0 %]
+ [% g('Not found') %]
+ [% END %]
+[% END %]
+
+[%- BLOCK handle_maintainer;
+ mailarchiveurl = '';
+ IF (matches = mail.match('^(.*)@lists\.debian\.org$'));
+ mailarchiveurl = 'http://lists.debian.org/' _ uri_escape(matches.0) _ '/';
+ ELSIF (matches = mail.match('^(.*)@lists\.alioth\.debian\.org$'));
+ mailarchiveurl = 'http://lists.alioth.debian.org/pipermail/' _ uri_escape(matches.0) _ '/';
+ ELSIF (matches = mail.match('^(.*)@lists\.ubuntu\.com$'));
+ mailarchiveurl = 'http://lists.ubuntu.com/archives/' _ uri_escape(matches.0) _ '/';
+ END -%]
+ [% IF hide_mail %]
+ <li>[% name | html %]
+ [% ELSE %]
+ <li><a href="mailto:[% mail | html %]">[% name | html %]</a>
+ [% END %]
+ [%- IF mailarchiveurl %] (<a href="[% mailarchiveurl %]" title="[% g('Archive of the Maintainer Mailinglist') %]">[% g('Mail Archive') %]</a>)[% END %]
+ </li>
+[% END -%]
+
+[%- IF maintainers.size -%]
+[% IF maintainers.size == 1 -%]
+ <h3>[% g('Maintainer:') %]</h3>
+[%- ELSE -%]
+ <h3>[% g('Maintainers:') %]</h3>
+[%- END %]
+[%- FOREACH m IN maintainers;
+ '<ul>' IF loop.first;
+ PROCESS handle_maintainer name=m.name mail=m.mail;
+ '</ul>' IF loop.last;
+ END -%]
+<p>[% g('Please consider <a href="%s">filing a bug</a> or <a href="%s">asking a question</a> via Launchpad before contacting the maintainer directly.',
+ "https://bugs.launchpad.net/ubuntu/+source/$src.pkg/+filebug",
+ "https://answers.launchpad.net/ubuntu/+source/$src.pkg/+addquestion") %]</p>
+[%- END -%]
+
+[%- IF original_maintainers.size -%]
+[% IF original_maintainers.size == 1 -%]
+ <h3>[% g('Original Maintainer (usually from Debian):') %]</h3>
+[%- ELSE -%]
+ <h3>[% g('Original Maintainers (usually from Debian):') %]</h3>
+[%- END %]
+[%- FOREACH m IN original_maintainers;
+ '<ul>' IF loop.first;
+ PROCESS handle_maintainer name=m.name mail=m.mail hide_mail=1;
+ '</ul>' IF loop.last;
+ END -%]
+<p>[% g('It should generally not be necessary for users to contact the original maintainer.') %]</p>
+[%- END -%]
+
+[% url = page.get_newest('url');
+ SET url = page.get_newest('homepage') IF page.get_newest('homepage');
+ IF url %]
+<h3>[% g('External Resources:') %]</h3>
+<ul>
+<li><a href="[% url | html %]">[% g('Homepage') %]</a> [[% extract_host(url) | html %]]</li>
+</ul>
+[% END %]
+
+[% FOREACH sim IN similar %]
+ [% IF loop.first %]
+ <h3>[% g('Similar packages:') %]</h3>
+ <ul>
+ [% END %]
+ <li><a href="/[% sim %]">[% sim %]</a></li>
+ [% '</ul>' IF loop.last %]
+[% END %]
+
+</div> <!-- end pmoreinfo -->
+[% END %]