Skip to content
Snippets Groups Projects
Commit f56343ec authored by Todd Dembrey's avatar Todd Dembrey
Browse files

reduce number of rounds in the block to 5

parent 4fd092a9
No related branches found
No related tags found
No related merge requests found
<ul class="round-block"> <ul class="round-block">
{% for round in rounds %} {% for round in rounds %}
{% if forloop.counter0 < 10 %} {% if forloop.counter0 < 5 %}
<li class="round-block__item"> <li class="round-block__item">
<h4 class="round-block__title">{{ round }}</h4> <h4 class="round-block__title">{{ round }}</h4>
<p> {{ round.fund|default_if_none:"-" }} </p> <p> {{ round.fund|default_if_none:"-" }} </p>
......
...@@ -81,9 +81,9 @@ class SubmissionListView(AllActivityContextMixin, BaseAdminSubmissionsTable): ...@@ -81,9 +81,9 @@ class SubmissionListView(AllActivityContextMixin, BaseAdminSubmissionsTable):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
base_query = RoundsAndLabs.objects.with_progress().active().order_by('-end_date') base_query = RoundsAndLabs.objects.with_progress().active().order_by('-end_date')
open_rounds = base_query.open()[:11] open_rounds = base_query.open()[:6]
open_query = '?round_state=open&active=active' open_query = '?round_state=open&active=active'
closed_rounds = base_query.closed()[:11] closed_rounds = base_query.closed()[:6]
closed_query = '?round_state=closed&active=active' closed_query = '?round_state=closed&active=active'
return super().get_context_data( return super().get_context_data(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment