Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
77f51431
Commit
77f51431
authored
Dec 30, 2007
by
eliott
Browse files
Feature for FS#8988
parent
ef8c17e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
devel/views.py
View file @
77f51431
...
...
@@ -31,8 +31,20 @@ def index(request):
else
:
pkgs
=
None
repo_stats
=
[]
for
repo
in
Repo
.
objects
.
all
():
repo_stats
.
append
({
'name'
:
repo
.
name
,
'count'
:
Package
.
objects
.
filter
(
repo__exact
=
repo
).
count
(),
'flagged'
:
Package
.
objects
.
filter
(
repo__exact
=
repo
).
filter
(
needupdate
=
True
).
count
()
})
return
render_response
(
request
,
'devel/index.html'
,
{
'stats'
:
stats
,
'pkgs'
:
pkgs
,
'todos'
:
todos
,
'maint'
:
thismaint
})
{
'stats'
:
stats
,
'pkgs'
:
pkgs
,
'todos'
:
todos
,
'maint'
:
thismaint
,
'repos'
:
repo_stats
})
@
login_required
#@is_maintainer
...
...
templates/devel/index.html
View file @
77f51431
...
...
@@ -21,9 +21,28 @@ <h3 class="title">Package ToDo Lists</h3>
</div>
<br
/><br
/>
{% endif %}
<div
class=
"greybox"
>
<h3
class=
"title"
>
Repository Package Stats
</h3>
<table
class=
"results"
width=
"100%"
>
<tr>
<th>
Repository
</th>
<th>
# Package
</th>
<th>
# Flagged
</th>
</tr>
{% for repo in repos %}
<tr>
<td><a
href=
"/packages/?repo={{ repo.name }}"
>
{{ repo.name }}
</a></td>
<td><strong>
{{ repo.count }}
</strong>
packages
</td>
<td><strong>
{{ repo.flagged }}
</strong>
packages
</td>
</tr>
{% endfor %}
</table>
</div>
<br
/><br
/>
<div
class=
"greybox"
>
<h3
class=
"title"
>
Flagged
Package Stats
</h3>
<h3
class=
"title"
>
Maintainer
Package Stats
</h3>
<table
class=
"results"
width=
"100%"
>
<tr>
<th>
Maintainer
</th>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment