Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helios Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
9b4ca5d8
Commit
9b4ca5d8
authored
14 years ago
by
Ben Adida
Browse files
Options
Downloads
Patches
Plain Diff
Added votes in queue count
parent
281c4e41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
helios/stats_views.py
+2
-1
2 additions, 1 deletion
helios/stats_views.py
helios/templates/stats.html
+2
-0
2 additions, 0 deletions
helios/templates/stats.html
with
4 additions
and
1 deletion
helios/stats_views.py
+
2
−
1
View file @
9b4ca5d8
...
@@ -23,7 +23,8 @@ def require_admin(request):
...
@@ -23,7 +23,8 @@ def require_admin(request):
def
home
(
request
):
def
home
(
request
):
user
=
require_admin
(
request
)
user
=
require_admin
(
request
)
return
render_template
(
request
,
'
stats
'
,
{})
num_votes_in_queue
=
CastVote
.
objects
.
filter
(
invalidated_at
=
None
,
cast_at
=
None
).
count
()
return
render_template
(
request
,
'
stats
'
,
{
'
num_votes_in_queue
'
:
num_votes_in_queue
})
def
elections
(
request
):
def
elections
(
request
):
user
=
require_admin
(
request
)
user
=
require_admin
(
request
)
...
...
This diff is collapsed.
Click to expand it.
helios/templates/stats.html
+
2
−
0
View file @
9b4ca5d8
...
@@ -9,4 +9,6 @@
...
@@ -9,4 +9,6 @@
<li>
<a
href=
"{% url helios.stats_views.recent_votes %}"
>
recent votes
</a></li>
<li>
<a
href=
"{% url helios.stats_views.recent_votes %}"
>
recent votes
</a></li>
</ul>
</ul>
<p><b>
{{num_votes_in_queue}}
</b>
votes in queue.
</p>
{% endblock %}
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment