diff options
author | Dan McGee <dan@archlinux.org> | 2010-03-27 16:15:20 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-03-27 16:15:20 -0500 |
commit | fe832ea845f07a79b4580f7bca1dcf44b2f215ee (patch) | |
tree | cbe8554621f84d4f40b4991b883571ad5d419888 /templates/devel/index.html | |
parent | f3b3117d1f0ee8862a0b47d6dfe9b20960dbb13e (diff) |
Move package maintainer off of package model
This is an attempt to fix our long-standing problems dealing with maintainer
information. Move the actual maintainer information off of the package model
into a PackageRelation object, which has some flexibility to later represent
more than just maintainership.
This solves multiple problems:
* If a package gets accidentally deleted, so did the maintainer info
* Testing packages have always shown up as orphans
* With split packages, it was easy to miss some of the sub-packages
This commit does not include the deletion of the original maintainer column;
that will come at a later time when I feel more confident that the data was
migrated correctly.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/devel/index.html')
-rw-r--r-- | templates/devel/index.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/devel/index.html b/templates/devel/index.html index 12c0791e..acbe90bf 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -65,18 +65,17 @@ <br /><br /> <div class="greybox"> + <div>Counts are by 'pkgbase' and not raw number of packages.</div> <h3 class="title" style="cursor: pointer" onclick="$(this).next().toggle();">Stats by Maintainer</h3> <table class="results" width="100%" style="display: none"> <tr> <th width="50%">Maintainer</th> <th># Packages</th> - <th># Flagged</th> </tr> {% for maint in maintainers %} <tr class="{% cycle pkgr2,pkgr1 %}"> <td><strong>{{ maint.get_full_name }}</strong></td> - <td><a href="/packages/?maintainer={{ maint.username }}"><strong>{{ maint.maintained_packages.count }}</strong> packages</a></td> - <td><a href="/packages/?maintainer={{ maint.username }}&flagged=Flagged"><strong>{{ maint.maintained_packages.flagged.count }}</strong> packages</a></td> + <td><a href="/packages/?maintainer={{ maint.username }}"><strong>{{ maint.package_relations.count }}</strong> packages</a></td> </tr> {% endfor %} </table> @@ -99,7 +98,7 @@ <th>Version</th> <th>Arch</th> </tr> - {% for pkg in user.maintained_packages.flagged %} + {% for pkg in flagged %} <tr class="{% cycle pkgr2,pkgr1 %}"> <td> <a href="{{ pkg.get_absolute_url }}">{{ pkg.pkgname }}</a> |