Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing up the comments from @andrewhayward - and also cleaning up a f…

…ew things I noticed along the way
  • Loading branch information...
commit af0376f21279d219ac57e04f94e4626beab86b5a 1 parent 777649d
@rossbruniges rossbruniges authored
View
2  gameon/base/static/base/css/home.css
@@ -221,7 +221,7 @@ div[role=main] .big-picture .busta {
.participate article footer {
padding: 44px 40px 30px 40px;
border-radius: 0 0 16px 16px;
- background: #000a14 url('/static/base/img/css//homepage-footer_bg.gif') repeat-x top left;
+ background: #000a14 url('/static/base/img/css/homepage-footer_bg.gif') repeat-x top left;
position: absolute;
top: 100%;
left: 0;
View
3  gameon/static_site/templates/static_site/prizes.html
@@ -21,6 +21,7 @@ <h3 class="exclaim">Grand Champion</h3>
<li><span>Get the red carpet treatment! Roundtrip airfare, 7 nights of hotel accomodations in San Francisco, two all-access tickets to GDC 2013 -- which includes entry to the Indie Game Developer Conference -- and more</span></li>
<li><span>Dinner with EA's award-winning game developer Michael John</span></li>
<li><span>A tour of Mozilla's headquarters in Mountain View and lunch with the Mozilla games team</span></li>
+ <li><span>A Nvidia GeForce GTX690</span></li>
</ul></li>
</ul>
</div>
@@ -38,11 +39,11 @@ <h3 class="exclaim">Best Learning Game (Head of Class)</h3>
<h3 class="exclaim">Best Multi-Device Game (Mobileet)</h3>
<p>Awarded to the games that use the power of the mobile phones and cross-device play to enhance assymetric gameplay and location based mechanics.</p>
</div>
+ <p>All category winners will get a Nvidia GeForce GTX670</p>
</div>
<div class="mini-col meta">
<h3 class="whimper">All prizes will receive:</h3>
<ul class="checks">
- <li>Nvidia GeForce GTX670</li>
<li>The chance to have your game featured in the <a href="{{ url('static_site.faqs') }}#firefox-marketplace">Firefox Marketplace</a></li>
<li>The opportunity to show your game to the awesome folks at <a href="http://www.chillingo.com/">Chillingo</a> for a chance to have it published on their network</li>
<li>One year membership to top industry associations <a href="http://www.igda.org/">IGDA</a> and <a href="http://ukie.info/">UKIE</a></li>
View
3  gameon/submissions/templates/submissions/create.html
@@ -23,6 +23,9 @@ <h1 class="busta shout">{% block view_title %}Submit Your Game{% endblock %}</h1
<label for="id_title" class="announce">
Game name
{% for error in form.title.errors %}<em>{{ error }}</em>{% endfor %}
+ {% if mode == 'edit' %}
+ <span class="extra meta">If you change the game URL and if you or anyone is linking to the games page on Game On the URL be broken</span>
+ {% endif %}
</label>
{{ form.title }}
</div>
View
7 gameon/submissions/views.py
@@ -54,24 +54,25 @@ def edit_entry(request, slug, template='submissions/edit.html'):
form = EntryForm(request.POST, request.FILES, instance=entry)
if form.is_valid():
entry = form.save(commit=False)
- new_slug = slugify(entry.title)
- entry.slug = new_slug
+ entry.slug = slugify(entry.title)
form.save()
if entry.to_market == True:
return HttpResponseRedirect(settings.MARKETPLACE_URL)
else:
messages.success(request, _('<strong>Game edited!</strong>'))
return HttpResponseRedirect(reverse('submissions.entry_single',
- kwargs={'slug': new_slug}))
+ kwargs={'slug': slugify(entry.title)}))
else:
data = {
'categories': Category.objects.all(),
'form': form,
+ 'mode': 'edit',
}
else:
data = {
'categories': Category.objects.all(),
'form': EntryForm(instance=entry),
+ 'mode': 'edit',
}
return render(request, template, data)
Please sign in to comment.
Something went wrong with that request. Please try again.