Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #118 from rossbruniges/quick-bugs
Browse files Browse the repository at this point in the history
Quick bugs - including fix for #117
  • Loading branch information
rossbruniges committed Feb 13, 2013
2 parents 01740b5 + ea98b79 commit 3c70ae6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Binary file added gameon/base/static/base/img/judges/tom-kenyon.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions gameon/static_site/templates/static_site/judges.html
Expand Up @@ -166,6 +166,16 @@ <h2 class="fn exclaim">Lisa Brewster</h2> - <span class="org">Mozilla</span>
<img class="photo" src="{{ static('base/img/judges/LisaBrewster.jpg') }}" width="120" height="120" />
<p class="whimper">Lisa Brewster is the App Review Manager for the Firefox Marketplace, and was named one of LAPTOP Magazine¹s most influential women in mobile tech. Her favorite games are Dragon Warrior, Diablo, and Glitch, and she longs for more games with a rich universe and backstory yet don't require a huge time investment. Protip: She was a huge fan of the Game Genie, which isn't cheating if you discover the code yourself.</p>
</article>
<article class="vcard">
<header>
<h2 class="fn exclaim">Tom Kenyon</h2> - <span class="org">Nesta</span>
</header>
<img class="photo" src="{{ static('base/img/judges/tom-kenyon.jpg') }}" width="120" height="120" />
<p class="whimper">Tom is programme director of the education in a digital environment programme which is exploring ways that the proliferation of digital technologies can transform education.</p>
<p class="whimper">Tom joined Nesta in April 2012. Before joining Nesta he worked as a digital executive producer for broadcasters and production companies specialising in the development of innovative products for children and young people.</p>
<p class="whimper">As head of digital for Jamie Oliver's production company, Fresh One, Tom led a major partnership between Channel 4, Google and others to create an online educational resource building on the values of Jamie's Dream School.</p>
<p class="whimper">Tom also worked for the BBC where he led digital development teams at CBBC and CBeebies to create online games and learning products for brands such as Tracy Beaker, Live and Deadly and Blue Peter. He also worked for ITV.com where he executive produced the interactive drama Primeval Evolved which won an international EMMY award for Digital Fiction.</p>
</article>
<article class="vcard">
<header>
<h2 class="fn exclaim">Greg Trefry</h2> - <span class="org">NYU Game Studio</span>
Expand Down
12 changes: 9 additions & 3 deletions gameon/submissions/views.py
Expand Up @@ -2,7 +2,7 @@
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.conf import settings
from django.http import HttpResponseRedirect
from django.http import HttpResponseRedirect, Http404
from django.template.defaultfilters import slugify
from django.contrib.auth.decorators import login_required

Expand Down Expand Up @@ -79,7 +79,7 @@ def edit_entry(request, slug, template='submissions/edit.html'):

def list(request, category='all', template='submissions/list.html'):
page_number = get_page(request.GET)
if category == 'all':
if category == 'all':
entry_set = Entry.objects.all().order_by('-pk')
page_category = False
else:
Expand All @@ -97,7 +97,13 @@ def list(request, category='all', template='submissions/list.html'):


def single(request, slug, template='submissions/single.html'):
# throwing a 404 is MUCH better than a 500 eh?
try:
entry = Entry.objects.get(slug=slug)
except Entry.DoesNotExist:
raise Http404

data = {
'entry': Entry.objects.get(slug=slug),
'entry': entry,
}
return render(request, template, data)

0 comments on commit 3c70ae6

Please sign in to comment.