Merged in [14884] from adam@nostrum.com:
Adding page count to last call page.
- Legacy-Id: 14907
Note: SVN reference [14884] has been migrated to Git commit e7b984dfa7
This commit is contained in:
commit
f48669a8e4
|
@ -410,9 +410,12 @@ def drafts_in_last_call(request):
|
|||
lc_state = State.objects.get(type="draft-iesg", slug="lc").pk
|
||||
form = SearchForm({'by':'state','state': lc_state, 'rfcs':'on', 'activedrafts':'on'})
|
||||
results, meta = prepare_document_table(request, retrieve_search_results(form), form.data)
|
||||
pages = 0
|
||||
for doc in results:
|
||||
pages += doc.pages
|
||||
|
||||
return render(request, 'doc/drafts_in_last_call.html', {
|
||||
'form':form, 'docs':results, 'meta':meta
|
||||
'form':form, 'docs':results, 'meta':meta, 'pages':pages
|
||||
})
|
||||
|
||||
def drafts_in_iesg_process(request, last_call_only=None):
|
||||
|
|
|
@ -10,7 +10,12 @@
|
|||
|
||||
{% block content %}
|
||||
{% origin %}
|
||||
<h1>Internet-Drafts in IETF last call</h1>
|
||||
<h1>
|
||||
Internet-Drafts in IETF last call
|
||||
{% if pages %}
|
||||
<small class="padded-left">{{ pages }} pages</small>
|
||||
{% endif %}
|
||||
</h1>
|
||||
|
||||
{% include "doc/search/search_results.html" %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue