X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=8b4a6e26389ce9d259a91a4dca22082a3ebbc40c;hb=1deb5ef4f37a6ccea16346836a7097a43a257978;hp=9738e7caa3f07af95ed6e2bb8452416f31120d9b;hpb=1cfc9378398a26874c65bcd1a2294dec48fa41f3;p=deb%2Fpackages.git
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index 9738e7c..8b4a6e2 100644
--- a/templates/html/show.tmpl
+++ b/templates/html/show.tmpl
@@ -56,13 +56,16 @@
[% ELSE %]
[% g('Links for %s', pkg) %]
+[% IF screenshots_url && screenshots_thumb_url && !is_source %]
+
+[% END %]
[% g('%s Resources:', organisation) %]
- [% g('Bug Reports') %]
@@ -92,14 +95,14 @@
[% IF patch_tracking_url && src %]
[% FOREACH src.downloads %]
- [% IF name.match('\.diff\.(gz|bz2|lzma)$') %]
- - [% g("%s Patch Tracking", organisation) %]
+ [% IF name.match('\.(debian\.tar|diff)\.(gz|xz|bz2|lzma)$') %]
+ - [% g("%s Patch Tracker", organisation) %]
[% END -%]
[% END -%]
[% ELSIF patch_tracking_url && is_source %]
[% FOREACH srcfiles %]
- [% IF filename.match('\.diff\.(gz|bz2|lzma)$') %]
- - [% g("%s Patch Tracking", organisation) %]
+ [% IF filename.match('\.(debian\.tar|diff)\.(gz|xz|bz2|lzma)$') %]
+ - [% g("%s Patch Tracker", organisation) %]
[% END -%]
[% END -%]
[% END -%]
@@ -265,7 +268,7 @@
[% ' [' _ a.arch_str _ ']' IF a.arch_str %]
[%- IF !t.is_old_pkgs -%]
[% PROCESS desc_i18n_dd no_end_tag=1 trans_desc=a.trans_desc desc=a.desc -%]
- [%- IF a.providers.pkgs.size > 0 -%]
+ [%- IF a.providers.pkgs && a.providers.pkgs.size > 0 -%]
[% IF a.providers.also;
'
' _ g('also a virtual package provided by');
ELSE;
@@ -319,7 +322,7 @@
version_class = 'vold';
END %]
[% "$d.version | " IF versions.multiple %]
-[% g('%s kB', num.format_number(d.pkgsize,1)) %] | [% g('%s kB', d.instsize) %] |
+[% g('%s kB', num.format_number(d.pkgsize,1)) %] | [% g('%s kB', num.format_number(d.instsize,1)) %] |
[% IF d.contents_avail %]
[[% g('list of files') %]]
|