]> git.donarmstrong.com Git - neurodebian.git/blobdiff - neurodebian/templates/pkg.rst
Put icon links to extracts from DSCs (README, changelog, copyright)
[neurodebian.git] / neurodebian / templates / pkg.rst
index 5290b0a72e2717681515fc4c6ed18a773ab8d738..17af598d543c2247f94bd1d59690da281fc2dc99 100644 (file)
@@ -12,6 +12,20 @@ External links:
 
   <p><a href="{{ db.main.homepage }}">
   <img border="0" src="../_static/go-home.png" title="Go to {{ pkg }} homepage" /></a>
+  {%- if extracts_dir -%}
+    {%- if op.exists(op.join(extracts_dir, 'copyright')) -%}
+      <a href="../debian/extracts/{{ db.main.sv.split()[0] }}/copyright">
+      <img border="0" src="../_static/legal.png" title="Copyright information for this package" /></a>
+    {%- endif -%}
+    {%- if op.exists(op.join(extracts_dir, 'changelog')) -%}
+      <a href="../debian/extracts/{{ db.main.sv.split()[0] }}/changelog">
+      <img border="0" src="../_static/debian-changelog.png" title="Debian changelog of this software" /></a>
+    {%- endif -%}
+    {%- if op.exists(op.join(extracts_dir, 'README.Debian')) -%}
+      <a href="../debian/extracts/{{ db.main.sv.split()[0] }}/README.Debian">
+      <img border="0" src="../_static/info.png" title="Information on Debian-specific aspects of this software" /></a>
+    {%- endif -%}
+  {%- endif -%}
   {%- if cfg.has_option("nitrc ids", pkg) -%}
   <a href="http://www.nitrc.org/project?group_id={{ cfg.get("nitrc ids", pkg) }}">
   <img border="0" src="../_static/nitrc_listed.png" title="See the entry on nitrc.org" /></a>