From c4184a227d80e94eb0ef8ac273d154ca67407da9 Mon Sep 17 00:00:00 2001 From: Srinivasan R Date: Sat, 2 Jul 2016 04:26:33 +0530 Subject: [PATCH] Change the numbering order in the proposal list page Fixes a minor annoyance in the proposal listing page, where the number next to the proposal title is numbered from the top. When a new proposal is submitted, the old proposals are shifted down and the entire numbering is changed. By using a revcounter in the forloop, we can show that the first talk submitted is always displayed the number 1 even if it is pushed to the bottom and the latest talk submitted will always be displayed the highest number. --- junction/templates/proposals/partials/proposal-list--items.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/junction/templates/proposals/partials/proposal-list--items.html b/junction/templates/proposals/partials/proposal-list--items.html index 7be08233..3b0886d2 100644 --- a/junction/templates/proposals/partials/proposal-list--items.html +++ b/junction/templates/proposals/partials/proposal-list--items.html @@ -34,7 +34,7 @@

{{ votes_count }}

- {{ forloop.counter}}. {{ proposal.title|capfirst }} + {{ forloop.revcounter}}. {{ proposal.title|capfirst }}