From: Michael Hanke Date: Tue, 27 Apr 2010 15:16:45 +0000 (-0400) Subject: Rearange package page to place NITRC stats. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=07e1534e10c352051c834dbabec6211c021a6f6e;p=neurodebian.git Rearange package page to place NITRC stats. --- diff --git a/neurodebian/templates/pkg.rst b/neurodebian/templates/pkg.rst index b70f882..0738ee2 100644 --- a/neurodebian/templates/pkg.rst +++ b/neurodebian/templates/pkg.rst @@ -47,37 +47,31 @@ Citable reference: developement in the future. {% endif -%} -{% if db.blends or db.main.debian_popcon or db.main.ubuntu_popcon or +{% if db.nitrc or db.main.debian_popcon or db.main.ubuntu_popcon or db.main.recommends or db.main.suggests -%} Package Details =============== -{% if db.blends %} -`Debian Pure Blends `_ Status ----------------------------------------------------------------------- -Associated blends: -{% for blend, name, url in db.blends.tasks %} -* `{{ name }} ({{ blend }}) <{{ url }}>`_ -{% endfor %} -{% if db.blends.remark %} -.. note:: -{{ db.blends.remark | indent(width=2, indentfirst=true) }} -{% endif -%} -{% endif -%} - -{% if db.main.debian_popcon or db.main.ubuntu_popcon %} -Popularity statistics [#]_ --------------------------- +{% if db.nitrc or db.main.debian_popcon or db.main.ubuntu_popcon %} +Package popularity +------------------ {% if db.main.debian_popcon -%} -- Debian: {{ db.main.debian_popcon.insts }} (`more info `_) +- Debian [1]_: {{ db.main.debian_popcon.insts }} (`more info `_) {% endif -%} {% if db.main.ubuntu_popcon -%} -- Ubuntu: {{ db.main.ubuntu_popcon.insts }} +- Ubuntu [1]_: {{ db.main.ubuntu_popcon.insts }} +{% endif %} +{% if db.nitrc and db.nitrc.downloads -%} +- NITRC [2]_: {{ db.nitrc.downloads }} {% endif %} -.. [#] Due to the nature of this data, the reported number can only be +.. [1] Due to the nature of this data, the reported number can only be considered a conservative estimate of the lower bound of the true number of installations. + +.. [2] This is the total number of downloads from NITRC for this software, + comprising all releases for all platforms -- typically not Debian + packages. {% endif -%} {% endif -%} @@ -160,6 +154,10 @@ Please see the corresponding `intent-to-package bug report `_ for more information about its current status. {% endif %} +{% if db.blends and db.blends.remark %} +.. note:: +{{ db.blends.remark | indent(width=2, indentfirst=true) }} +{% endif -%} {% endfor %}