Closed Bug 676266 Opened 13 years ago Closed 13 years ago

Challenge templates, views and urls are rather tied to the MOJO model

Categories

(Websites Graveyard :: drumbeat.org, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: boozeniges, Assigned: boozeniges)

References

Details

Challenges were created for MOJO and had three very distinct stages of life:
 - open for submissions
 - closed for voting
 - highlighting winners.

These all required sweeping changes to the templates and because of that we have three separate templates (challenge.html, challenge_voting.html and challenge_winners.html) and a couple of views challenges.views.show_challenge and challenges.views.show_challenge_winners that depending on a number of conditionals render the correct template.

For the required changes to be made to challenges - where they can be open for submissions, voting and showing 'winners' all at the same time the current structure is unfortunately rather broken.
We need a way to render the correct template from just the one URL - currently we need to switch between show_challenge and show_challenge_winners to display correctly for MOJO (and we need to keep that view or else we've introduced regression bugs).
We might need a better design/UX mind to help create one master template that will work for all the different possibilities that keeps both MOJO and Dees happy.
Blocks: 667628
Blocks: 668602
No longer blocks: 667628
Assignee: nobody → ross
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.